Re: reducing perl cpu usage

2013-01-16 Thread budi pearl
Hi Jim, On Tue, Jan 15, 2013 at 12:51 AM, Jim Gibson wrote: > > On Jan 13, 2013, at 8:22 PM, budi pearl wrote: > > > Why do you want to reduce your CPU usage? > > That may seem like a silly question (who wouldn't want to reduce their CPU > usage), but the answer to that question will affect the

Re: reducing perl cpu usage

2013-01-14 Thread Jim Gibson
On Jan 13, 2013, at 8:22 PM, budi pearl wrote: > Hi All, > > Is there any way to reduce the processor usage by perl? > I am trying to use nice -19 but proc usage is still 100% > > Tasks: 189 total, 2 running, 187 sleeping, 0 stopped, 0 zombie > Cpu(s): 0.0%us, 0.5%sy, 26.0%ni, 73.5%id,

Re: reducing perl cpu usage

2013-01-14 Thread Shawn H Corey
On Mon, 14 Jan 2013 11:22:18 +0700 budi pearl wrote: > Is there any way to reduce the processor usage by perl? > I am trying to use nice -19 but proc usage is still 100% According to the man page, you should try: nice 19 See http://linux.about.com/library/cmd/blcmdl1_nice.htm -- Don't stop w

Re: reducing perl cpu usage

2013-01-14 Thread David Precious
On Mon, 14 Jan 2013 11:22:18 +0700 budi pearl wrote: > Is there any way to reduce the processor usage by perl? > I am trying to use nice -19 but proc usage is still 100% Depends what your code is doing. If you're doing a continuous loop or something, yes, you'll eat up CPU. Devel::NYTProf can

reducing perl cpu usage

2013-01-13 Thread budi pearl
Hi All, Is there any way to reduce the processor usage by perl? I am trying to use nice -19 but proc usage is still 100% Tasks: 189 total, 2 running, 187 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.5%sy, 26.0%ni, 73.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4042684k total, 34635