nice

How to get a command line process to use less processing power

I am wondering how to get a process run at the command line to use less processing power. The problem I'm having is the the process is basically taking over the CPU and taking MySQL and the rest of the server with it. Everything is becoming very slow. I have used nice before but haven't had much luck with it. If it is the answer, how wo...

How could I 'nice' Capistrano deployment ?

How could I set a nice indice on cap:deploy ? I want the remote server nice the cp commands like that : nice -n 19 cp ... Thenk you ...

sudo nohup nice <-- in what order?

So I have a script that I want to run as root, without hangup and nicely. What order should I put the commands in? sudo nohup nice foo.bash & or nohup nice sudo foo.bash & etc. I suspect it doesn't matter but would like some insight from those who really know. ...

How do I make php nicer to the CPU?

I'm running on a shared *NIX server (run by Site5). I have a php script that runs in the background occasionally doing some offline calculations. It uses around 100% CPU while it runs. I've tried nice-ing it, like this: nice -n 19 php script.php but that doesn't seem to make any difference. Can anyone help? Thanks, Ben ...

the Nice programming language as an alternative to Java generics

I've been reading Bruce Eckel's Thinking In Java and in the chapter on generics, he briefly mentions the Nice programming language as something that handles parametrized types better than Java, but compiles into Java bytecode. Does anyone have any experience with this? Generics make my head hurt, so the prospect of an alternative that i...

Does renice on a parent renice the child?

I know if I nice a shell script (ie: before it runs) all processes that start from the shell script will also be niced. What if I start a shell script and the renice it, do all the child processes become reniced as well? Looked in the renice man pages and there are no mention of child processes. ...

Eclipse dev tools for Nice

I'd like to evaluate Nice. For reasons of familiarity of the development environment, I'd like to stick with Eclipse, so I would like to find something like JDT/CDT for Nice in Eclipse. Anyone any idea whether and if so, where, that can be found ? ...

Python: ulimit and nice for subprocess.call / subprocess.popen ?

I need to limit the amount of time and cpu taken by external command line apps I spawn from a python process using subprocess.call , mainly because sometimes the spawned process gets stuck and pins the cpu at 99%. nice and ulimit seem like reasonable ways to do this, but I'm not sure how they'd interact with subprocess. The limits lo...

Application(hellanzb) is a system hog and nice 19 does nothing.

I am both a contributor and user of the nntp nzb leecher called hellanzb for Unix like systems. It is written in python and works quite well. Though when the transmission rate is high and the program is utilizing app's like par and unrar, most systems come to a standstill. If you are downloading a dvd rip at 10MB/s while unraring the ...

Does PHP proc_nice leave Apache threads at new priority setting?

When executing proc_nice(), is it actually nice'ing Apache's thread? If so, and if the current user (non-super user) can't renice to its original priority is killing the Apache thread appropriate (apache_child_terminate) on an Apache 2.0x server? The issue is that I am trying to limit the impact of an app that allows the user to run Ad...

On-The-Fly Image Generation in PHP

I'm developing a script that will allow people to generate a banner for them to use. It's customizable. During the customization process, I'd like to be able to have the banner reload on the spot. So they could see the changes. Once they create the banner and are completely done with it I would give them a link for them to use. This link...

Is it possible to renice a subprocess ?

I know about os.nice() it works perfect for parent process, but I need to do renice of my child subprocesses. I found way to do this, but it seems to be not very handy and too excessive: os.system("renice -n %d %d" % ( new_nice, suprocess.pid ) ) And it isn't return resulting nice level after renicing. Is there more clean way to reni...

Is there some way to "nice" my JavaScript execution?

I'd like to run some calculations in a browser window, but I don't want it to slow the client computer down for user interaction, especially for single core machines. Is there some way to adjust the nice level of my executing JavaScript so that it will execute as fast as possible without detracting from the responsiveness of the machine...

How do i create nice looking controls?

hi guys, I found a nice controls used by a software so wanted to use or build similar nice looking controls for my applications in vb.net First Sample control is nice rounded cornor group box [ i guess so ]: http://sachicomputer.com/kabin/samples/control1.jpg and second control is nice looking tab control: http://sachicomputer.com/ka...