Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RoR delay
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Mon Dec 10, 2007 11:36 am    Post subject: RoR delay Reply with quote

hi there,

i have too nearly same boxes - both running apache on newest up to date gentoo with RoR via suPHP.
On Server1 everything runs fine. Server2 has a delaytime about 2 seconds before executing a RoR file.
This doesnt only occur when the dispatch file is interpreted - only calling /usr/bin/ruby18 results in a 2 second delay before actually starting the interpreter.

do you have any ideas what could be wrong? maybe the server goes into some kind of suspension mode and this can be dropped with a newer / better configured kernel?

i'm totally happy for any comments - thanks in advance and kind regards
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Mon Dec 10, 2007 11:40 am    Post subject: Reply with quote

is DMA enabled?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Mon Dec 10, 2007 12:02 pm    Post subject: Reply with quote

is there any command to find that out or do i have to look into the kernel config?
Back to top
View user's profile Send private message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Fri Dec 14, 2007 10:14 am    Post subject: Reply with quote

DMA is not the problem - i tried to strace the whole delaying process and RoR is searching for about 5 seconds many files. every lookup takes time and so the small steps summed up are a big delay.

for example:
Quote:
cat abc | grep attribute.rb
30656 20:32:12.744748 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/vendor/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.744954 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.745137 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/../../activesupport/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.746918 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/../builtin/rails_info/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.747113 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.747282 stat64("/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.747451 stat64("/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.747619 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.747794 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.747970 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.748148 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.748323 stat64("/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.748499 stat64("/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.748675 stat64("/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.748850 stat64("/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.749029 stat64("/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.6/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.749224 stat64("/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.6/lib/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.749403 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/bin/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.749573 stat64("/usr/lib/ruby/site_ruby/1.8/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.749726 stat64("/usr/lib/ruby/site_ruby/1.8/i686-linux/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.749890 stat64("/usr/lib/ruby/site_ruby/rexml/attribute.rb", 0xbfc37c9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.750042 stat64("/usr/lib/ruby/1.8/rexml/attribute.rb", {st_mode=S_IFREG|0644, st_size=5167, ...}) = 0
30656 20:32:12.750159 open("/usr/lib/ruby/1.8/rexml/attribute.rb", O_RDONLY|O_LARGEFILE) = 3
30656 20:32:12.750317 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/vendor/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.750415 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.750500 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/../../activesupport/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.751643 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/../builtin/rails_info/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.751738 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.751820 stat64("/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.751902 stat64("/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752008 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752094 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752180 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752265 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752350 stat64("/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752435 stat64("/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752521 stat64("/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752606 stat64("/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752692 stat64("/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.6/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752779 stat64("/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.6/lib/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752866 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/bin/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.752948 stat64("/usr/lib/ruby/site_ruby/1.8/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.753025 stat64("/usr/lib/ruby/site_ruby/1.8/i686-linux/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.753105 stat64("/usr/lib/ruby/site_ruby/rexml/attribute.rb", 0xbfc37cac) = -1 ENOENT (No such file or directory)
30656 20:32:12.753177 stat64("/usr/lib/ruby/1.8/rexml/attribute.rb", {st_mode=S_IFREG|0644, st_size=5167, ...}) = 0
30656 20:32:12.753294 open("/usr/lib/ruby/1.8/rexml/attribute.rb", O_RDONLY|O_LARGEFILE) = 3
30656 20:32:12.753423 open("/usr/lib/ruby/1.8/rexml/attribute.rb", O_RDONLY|O_LARGEFILE) = 3
30656 20:32:12.753546 open("/usr/lib/ruby/1.8/rexml/attribute.rb", O_RDONLY|O_LARGEFILE) = 3
30656 20:32:12.753667 open("/usr/lib/ruby/1.8/rexml/attribute.rb", O_RDONLY|O_LARGEFILE) = 3
30656 20:32:12.957102 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/vendor/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.957299 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.957472 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/../../activesupport/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.959230 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/../builtin/rails_info/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.959419 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.959585 stat64("/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.959755 stat64("/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.959928 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.960104 stat64("/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.960281 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.960457 stat64("/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.960649 stat64("/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.960822 stat64("/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.6/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.960998 stat64("/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.961171 stat64("/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.6/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.961344 stat64("/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.6/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.961520 stat64("/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.6/lib/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.961698 stat64("/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/bin/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.961864 stat64("/usr/lib/ruby/site_ruby/1.8/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.962017 stat64("/usr/lib/ruby/site_ruby/1.8/i686-linux/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.962178 stat64("/usr/lib/ruby/site_ruby/rexml/attribute.rb", 0xbfc35e9c) = -1 ENOENT (No such file or directory)
30656 20:32:12.962324 stat64("/usr/lib/ruby/1.8/rexml/attribute.rb", {st_mode=S_IFREG|0644, st_size=5167, ...}) = 0
30656 20:32:12.962438 open("/usr/lib/ruby/1.8/rexml/attribute.rb", O_RDONLY|O_LARGEFILE) = 3


i havent found any configuration files for paths where RoR should look into. this file (attribute.rb) is located at my system here:
Quote:
locate attribute.rb
/usr/lib/ruby/1.8/wsdl/xmlSchema/attribute.rb
/usr/lib/ruby/1.8/rexml/attribute.rb
/usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/rails_generator/generated_attribute.rb



so how can rails be configured so that those file searching stops?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum