From: John Johnson Date: 2006-07-18T04:27:18+09:00 Subject: [Fwd: Re: How to speed up ruby and make it as fast as possible] > I have a server that is dedicated solely for running a single ruby > application. Is there a ruby configuration file that I can change to > help speed ruby up and take as much resources as it needs? Basically > make sure there is no memory limit, processing limit, and give it the > highest priority process as possible. Also is there anything else I > can do to get the most speed out of ruby? If you're using a UNIX like server, you might try running the process at a higher priority using the 'nice' command, or have the ruby program change it's priority before and after the critical section of code: #!/usr/bin/env ruby ruby_pid = $$ ... %x{ renice -20 #{ ruby_pid } } # critical code %x{ renice 0 #{ ruby_pid } } Of course you'll have to run it as root to be able to change your priority higher (more negative) than 0. I would be interested to hear your results. Regards, JJ