You are not logged in.
Subject says it all. Short of an alias or script, how can I get makepkg to run with a nice level of 19?
Last edited by graysky (2012-03-21 18:37:03)
Offline
And why don't you want to use either?
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
And why don't you want to use either?
I want to learn how Linux sets the default nice level. For example, on my workstation at home:
$ nice
-2But on my workstation at work:
$ nice
0Why the difference? What configuration file would dictate this bwhavior? My .bashrc is on my github site in my sig under 'dotfiles'
Offline
ngoonee wrote:And why don't you want to use either?
I want to learn how Linux sets the default nice level. For example, on my workstation at home:
In that case shouldn't your thread ask that question rather than specify makepkg? ![]()
(and no, I have no idea what the answer is, but the thread title and location probably won't bring it to the attention of those interested in such things. A quick google tells me its related to your user)
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
In /etc/security/limits.conf add
username - priority -2for your whole user to change the nice level to -2 and above root a little bit.
You could also renice the program with the pid of the program on the fly with
sudo renice n -19 -p (pid of program)Or start makepkg with nice just the one time.
nice -2 makepkgOffline
Sorry, meant to say
nice -n -2 makepkgBTW, if you want to renice with a higher priority, you have to use sudo. (As in -)
I hope you mean 19 and not -19, it will freeze your system.
Offline
In /etc/security/limits.conf ...
THAT was my problem. For some reason, all my users had the following in that file:
user1 - priority -2
user2 - priority -2
user3 - priority -2I removed them, logged out and back in and now:
$ nice
0Wonder what modified it because I sure as hell did not.
Offline
Lol. You did do it yourself and because of me. That's how I know. ![]()
https://bbs.archlinux.org/viewtopic.php?id=134440
Plus remember I'm using all defaults here, no ck or deadline or whatever. That's why it works great for me. I never understood fixing a problem like responsivness with installing more packages instead of fixing the existing.
Offline