You are not logged in.

#1 2012-03-21 01:07:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

always running makepkg as if `nice -19 makepkg -s` [SOLVED]

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

#2 2012-03-21 01:14:30

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

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

#3 2012-03-21 04:19:53

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

vim /usr/bin/makepkg

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#4 2012-03-21 09:12:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

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:

$ nice
-2

But on my workstation at work:

$ nice
0

Why the difference?  What configuration file would dictate this bwhavior?  My .bashrc is on my github site in my sig under 'dotfiles'

Offline

#5 2012-03-21 09:58:47

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

graysky wrote:
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? smile

(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

#6 2012-03-21 10:26:42

defears
Member
Registered: 2010-07-26
Posts: 218

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

In /etc/security/limits.conf add

username - priority -2

for 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 makepkg

Offline

#7 2012-03-21 10:48:17

defears
Member
Registered: 2010-07-26
Posts: 218

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

Sorry, meant to say

nice -n -2 makepkg

BTW, 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

#8 2012-03-21 18:36:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

defears wrote:

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 -2

I removed them, logged out and back in and now:

$ nice
0

Wonder what modified it because I sure as hell did not.

Offline

#9 2012-03-21 20:51:20

defears
Member
Registered: 2010-07-26
Posts: 218

Re: always running makepkg as if `nice -19 makepkg -s` [SOLVED]

Lol. You did do it yourself and because of me. That's how I know. tongue

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

Board footer

Powered by FluxBB