1
vote
0answers
68 views

How do I allow www-data to (negatively) change the niceness of a process in Linux?

So I'm running a website using django and sometimes I call scripts located on the server by spawning a subprocess in python. When looking at the processes with "top" I see these are called under the ...
1
vote
1answer
77 views

nice command - are other commands executed with script also niced?

A quick question about how nice works. Say if I have a script that runs in the crontab like so 0 4 * * * nice -n 19 /usr/local/admin/script.pl It is set to the lowest priority. This script will ...
1
vote
1answer
107 views

Why are my “nice” levels not reflected in CPU usage? [duplicate]

Given a VM with 1 CPU. I run two similar CPU intensive tasks in two terminals: /usr/bin/nice -n -20 perl -e 'while(1){$a=1+1;}' /usr/bin/nice -n 19 perl -e 'while(1){$a=1+1;}' I would expect that ...
2
votes
3answers
232 views

Is it possible to assign a nice and ionice priority to all scripts executed by cron daemon?

To be a bit more concrete: I have a Debian Squeeze Linux machine with a web application that should become available all over the planet. Until now I had a bunch of resource consuming cronjobs each ...
2
votes
4answers
586 views

Nice level not working on linux

I have some highly floating point intensive processes doing very little I/O. One is called "xspec", which calculates a numerical model and returns a floating point result back to a master process ...
5
votes
1answer
543 views

Use cases for having different process priority for CPU and IO?

Linux processes can have different CPU and IO priority (nice and ionice). Why is there a need to have different CPU and IO priority? Is there any real world usage for having them different? What ...
1
vote
1answer
554 views

“nice” for memory management

Before the question I give you a bit of background : I am running a website on a VPS. The VPS itselmf runs the apache web server, the PHP code that produce the pages with acvces to a SQLite DB, and ...
2
votes
1answer
75 views

nice cpu usage showing, but process wasn't explicitly run with nice

About 25% of my CPU usage is attributed to "nice" which is all coming from one process. The process in question was not started with nice(1) nor was it adjusted with renice(1) -- at least not ...
1
vote
1answer
131 views

Process niceness value

I was just looking for some clarification about the niceness value of a process, or perhaps some advice if I'm going about this all wrong. Say I have a couple dozen web server processes on a single ...
2
votes
2answers
413 views

ionice process group?

Is there an easy way to change the I/O priority of a whole group of processes the way renice -g does? It seems like only changing the I/O priority of a single process is supported by ionice. If this ...
4
votes
2answers
944 views

Renice: How to change all threads?

When I renice a multithreaded process in Ubuntu 10.04, then view the results in top, it seems that only the main thread actually gets reniced. All the other threads retain their old nice value. ...
3
votes
1answer
110 views

How “nice” determines amount of cpu resource to give

Is there a particular formula to calculate the amount of cpu resources that is allocated for a process when you "nice" it?
1
vote
3answers
500 views

Limiting maximum cpu time for user-launched programs

We have a cluster running CentOS with Sun Grid Engine for research simulations. However, some users who aren't too familiar with the system end up running jobs on the head node, which of of course ...
1
vote
3answers
278 views

VLC video encoding produces high 'nice' load

There is a server with vlc process for real-time video encoding. Here is output of top with 1(show processors) and H(show threads) top - 15:50:26 up 42 min, 1 user, load average: 2.64, 2.60, 2.45 ...