LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 04-15-2011, 12:41 PM   #1
rgupta52
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Rep: Reputation: 0
Question Setting Up Auto Priority Level For A Process


Is it possible to set a priority level for a particular process permanently?

Whenever I run skype, it keeps becoming not-responding at a regular interval. I have to quit it completely and re-login to make it working agan. The default priority for skype is 0 but it works perfectly when I assign a priority level of 10 at the time I log-in.

What I wanted to know is that anyway I can set its default priority level to 10 so that whenever it will start it will be at 10 only and I dont have to assign the value each and every time I want to login?
 
Old 04-15-2011, 02:51 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
What do you mean by "0" and "10"? Priorities in Linux don't work on a scale from 0 to 10.

http://en.wikipedia.org/wiki/Nice_(Unix)
 
Old 04-15-2011, 03:09 PM   #3
rgupta52
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Original Poster
Rep: Reputation: 0
If I run top I can see that the priority for skype is 0.

I change the priority to 10 by issuing the command -> renice 10 pid


Hope your understand now what i mean to say,
 
Old 04-15-2011, 03:15 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
What does "->" mean?

Anyway, I misunderstood you and thought you said that Skype doesn't work good and raising the priority to 10 would fix it, so I said that the higher the number, the less the priority.
 
Old 04-15-2011, 03:21 PM   #5
rgupta52
LQ Newbie
 
Registered: Mar 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, the higher the number, the less the priority. That exactly means that after setting skype to a lower priority level(10), it works smooth and do not become a non-responsive program.

I want some command so that it can be assigned with this value(priority level 10) automatically whenever the program is opened. Currently, I have to set this value by giving the renice command every time I log-in to skype.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Processor priority level for Algorithm for Buffer Allocation manavendra Programming 1 01-09-2010 07:21 PM
Fedora9 chkconfig priority level woes TheFueley Fedora 1 06-08-2009 10:36 PM
Nice level set but process gets wrong priority akring Linux - Kernel 3 11-03-2008 10:20 AM
Nice level set but process gets wrong priority akring Linux - General 7 10-29-2008 05:25 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 11:22 AM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration