A tool to change the priority of a process, giving it more or less CPU time.

learn more… | top users | synonyms

1
vote
1answer
34 views

init process' nice level

The init process on a Debian server (VPS) I've inherited has its nice value set to +10. There's nothing particularly obscure installed on the system. It has a LAMP stack and does a lot of IO and will ...
0
votes
0answers
34 views

Logstash from RPM fails to run under nice command

I downloaded the Logstash RPM logtsash-1.4.2-1_2c0f5a1.noarch from the official site, but have been having problems getting it to run from the init script. I get no log data passed to ...
0
votes
0answers
38 views

How to Prioritise ssh logins (nice)

Exact duplicate of this question, which has an accepted answer that doesn't solve the problem. How do I set sshd to run with a higher priority, so that even if the system is massively overloaded ...
1
vote
0answers
81 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
88 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
174 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
300 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 ...
0
votes
0answers
102 views

postgres process priority

We've noticed on our CentOS PostgreSQL database servers that every postgres process is no longer running at the default nice priority of '0'. They are running at a lower priority (2). Is Linux ...
2
votes
1answer
714 views

Changing priorities of background vs foreground processes?

The commends nice/renice have no effect between processes started as foreground process and processes started as background processes. Even with maximum niceness on the foreground processes they get ...
3
votes
1answer
564 views

Change nice level of currently running script

I would like to change the nice level of the currently running script: #!/bin/bash nice_it ( ) { nice ps -o "%p %r %y %x %n %c %a" } nice_it That does not work, since nice tries to change ...
2
votes
4answers
716 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 ...
2
votes
1answer
158 views

slow down processes (cpu usage)

I found out that an imagemagick/convert application on my VPS is causing troubles due to high load on my box. Now i added renice with priority 10 to all of these convert-processes for throttling each ...
5
votes
1answer
587 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
87 views

Guideline for `nice` priority number?

I'd like a more systematic way for prioritizing my tasks with nice(1). Obviously 0 is "normal", 19 is "lowest priority" and -19 is "highest priority", but what about all the other numbers? If I have ...
1
vote
0answers
352 views

Running Hudson builds with a higher nice level

I want to run build jobs in Jenkins with minimal cpu usage. I've tried this: Created the directory "jenkinsJdk".Jenkins is configured to use this dir as JDK "testJdk". A sample job uses "testJdk" ...
6
votes
2answers
916 views

Prioritise ssh logins (nice)

Is there a preferred way to set "nice" for sshd? I need priority given to sshd such that I can login and easily fix stuff when something has gone wrong (eg DoS, badly behaved processes, etc)
1
vote
1answer
671 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
76 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 ...
2
votes
1answer
512 views

Running Hudson builds with a lower process priority

At my office we have an older server running Hudson (1.395) and a collection of other things (JIRA and SVN being the important two). When Husdon is running builds, the slowdown on the server is very ...
4
votes
2answers
818 views

What is the impact of increasing the httpd process priority (negative nice)?

Renicing a process to a negative nice level increases the process's scheduling priority. High priority processes are run before low-priority processes. They are also allowed to run longer before being ...
1
vote
1answer
144 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
447 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
1k 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. ...
0
votes
2answers
157 views

Linux Host: Background Jobs + VM + Prioritization?

I'm running a setup consisting of a Linux host OS and a Windows 7 guest (VMware Workstation). I'm trying to run 16 CPU-bound background jobs on the Linux host at nice values of 19 (the lowest ...
6
votes
2answers
1k views

How to set i/o priority for nfs client processes?

The configuration is: A linux server and a nas box (netgear) acting as nfs server. It is easy for a single process on the linux server to use all i/o bandwidth by simply copying a file from the nfs ...
3
votes
1answer
169 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?
2
votes
2answers
1k views

nice renice and ionice

I've read about nice renice and ionice to control the scheduling priority of running processes. However, I still don't understand when and how are they useful for. For instance doing something like: ...
1
vote
3answers
529 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 ...
2
votes
2answers
411 views

How do I run Postgres under “nice”?

I usually start Postgres with pg_ctl -D /db start How can I make it start under "nice", so it runs at a lower priority?
0
votes
1answer
576 views

What's the effect of the nice param in the mysqld_safe settings

We have a server that only runs MySQL. I'm trying to increase its performance to the maximum, and I was wondering whether changing the nice setting in my.cnf would have any favorable effect. Anyone?
0
votes
2answers
956 views

Webalizer causing high CPU load

We use webalizer to generate reports on our Apache access logs - it is useful in conjunction with Google Analytics. The problem is that webalizer uses ALOT of CPU when running. If I run top I can see ...
1
vote
3answers
289 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 ...
4
votes
2answers
1k views

Equivalent of `nice` for filesystem IO?

When I'm running an rsync backup job which involves copying over large files, the machine running the backup (both Mac desktops and Linux servers) grinds to a halt and the load average goes through ...