Questions tagged [process-priority]
23 questions
54
votes
4 answers
nice sudo or sudo nice?
is there any difference between running an intensive task over sudo with the following commands?:
nice sudo [intensive command here]
sudo nice [intensive command here]
BTW this is for Linux 3.x.

Nicolas Laplante
- 651
- 5
- 5
12
votes
3 answers
Guaranteeing SSH access on a stressed server
I had an issue some time ago with a server in which Apache and Snort was occupying 100% of the processor, making the sshd unresponsive through remote access. I had to go physically to the server to log on a local TTY and then stop apache/snort.
I'm…

Renato Todorov
- 233
- 1
- 10
11
votes
3 answers
Setting default nice value for a program on linux
Strange as it seems, I can't find information how I can set a default nice value for a program (not for a user or a group!). I would like to start all chrome and firefox instances with a nice value of 10. What would be the most appropriate solution?

helcim
- 273
- 2
- 6
- 13
6
votes
3 answers
When is sustained 100% CPU utilization not a worry?
Please help refine a discussion going on in our shop.
Consider the following scenario. There is a Microsoft VPC running several apps and services (Windows 2003 server). The server has two or three critical roles. Every so often, CPU utilization goes…

Eldergriffon
- 87
- 1
- 7
5
votes
1 answer
KVM + cgroups: Dom0 process best practice?
I am transitioning from Xen to KVM, and will be using Fedora 14. I plan to use cgroups to assign priorities to VMs.
My question is as follows: If I place VMs in various cgroups, should I also put all other Domain-0 (physical host) processes in a…

BigChief
- 398
- 1
- 2
- 12
4
votes
2 answers
Allow user modify nice without giving root permisions
Is there any way to allow user modify process niceness without giving root permisions?
OS: Ubuntu 14.04.1 LTS

user31027
- 141
- 2
4
votes
2 answers
Does process priority in task manager affect network traffic?
I'm running a database server that's under moderately heavy load. I just kicked off xcopy on that box to copy a database backup to a remote server.
I see that xcopy is using almost all my available bandwidth. I'm worried that it will hog bandwidth…

Jesse
- 1,910
- 3
- 23
- 28
3
votes
3 answers
How to set a low process priority for everything spawned from a command prompt in XP?
As a developer, once or twice a week I run a full build on my XP dev machine.
This will run at 100% cpu for 30 or 40 minutes, making my machine useless for anything other than basic browsing & email.
Is there anyway I can specify that for a given…

Binary Worrier
- 133
- 1
- 6
3
votes
2 answers
Run PowerShell script with Service Start
I'd like to set the Affinity and Priority of a service process when it is started (without modifying the service/process code, I don't own the code, it's a 3rd party service).
I know I can do:
$Process = Get-Process…

XyberICE
- 141
- 1
- 8
3
votes
1 answer
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?

Flint
- 631
- 5
- 10
- 18
2
votes
2 answers
getting an application to run with the same priority as cpu idle
I have a solaris server that needs to run a timecritical application as fast as possible, although setting it to the RT priority class doesnt seem like a good idea since it may need 100 CPU for prolonged periods.
I would like to use the idle cpu…

camelccc
- 255
- 1
- 15
2
votes
3 answers
CentOS server priority of root services and non root services
Is there any priority difference between root user process and non root process on CentOS?
When I run on a nodejs server as root user, it goes smooth and after some time (say after weeks) it hangs the entire server and needs a hard reboot.
Why…

vimalpt
- 73
- 7
2
votes
3 answers
Change Windows Service Priority
I have a windows service that needs to run with High Priority.
At the end of the day I want to use this script to modify the priority after service startup:
Const HIGH = 256
strComputer = "."
strProcess = "BntCapi2.exe"
Set objWMIService =…

Jürgen Steinblock
- 316
- 1
- 4
- 16
1
vote
1 answer
Priority of DNS servers
I actually have 2 DNS providers and 3 DNS server.
The first and is from CloudFlare - primary, and the third is from BuddyNS - this one should be used only for backup.
Backup: the server should be only when are primary server unavailable.
Is this…

Vilican
- 129
- 1
- 21
1
vote
1 answer
How to configure the niceness or priority of service started on boot
I want to increase the niceness of an service (decrease the CPU priority) started as an dedicated user or group during the boot process. I'm not able to define the niceness or priority in the /etc/security/limits.conf or ./limits.d/ directory for…

devnox
- 11
- 1
- 2