Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-24-2008, 08:29 AM   #1
Registered: Jul 2006
Location: Gießen, Germany
Distribution: Slackware64-14.2
Posts: 791

Rep: Reputation: 49
how to make a particular application run faster?

I would like to ask if there is some way to make a particular application run faster (at the expense of other running slower, of course). I am running kile (it is my work now) and I also run some other heavy (resource eating) programs that are not so important to me. Is it possible to make kile run faster, just as if no other heavy applications are on? I tried with setting it to niceness -20, but kile does not seem to run faster; when I type letters they appear a second or two after being typed. Is there a remedy to this? Or is the only remedy turning off the applications that are not that important to me?

Old 06-24-2008, 01:02 PM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 979

Rep: Reputation: 118Reputation: 118
I think you should rather increase the niceness level of the other un-important apps, than setting your app to -20. This because if you set it to -20, your app will be considered more critical than other critical processes that belong to the kernel and which are usually set to 0 or ~-5, like pdflush and kthreadd.
Old 06-24-2008, 01:13 PM   #3
Senior Member
Registered: Oct 2003
Posts: 2,586

Rep: Reputation: 221Reputation: 221Reputation: 221
I think you have to be root to set a negative nice or the nice command will be ignored. At least that is what it says here:

I also agree that upping the nice on the other unimportant apps is the way to go, particularly if kile runs well when the other non-critical apps are shut down.
Old 06-24-2008, 01:35 PM   #4
Senior Member
Registered: May 2008
Posts: 4,564
Blog Entries: 9

Rep: Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057
nice -19 task makes the task least important relative to the others
nice --20 task makes the task most important relative to the others

(the first one is a positive value even though it looks like a negative, the second is not a double negative(making it positive) as you'd expect, its just a negative. This is why I prefer the 'nice -n value' syntax to the shorter 'nice -value').

Also, remember its all relative. if everything else is already running at nice -n 10 and you start a new process, it won't run any faster at nice -n -20 than it would at nice -n 9.

Nice values are one of those stupidly non-intuitive things about unix that you can only put down to the fact that unix was first written in the late 60s/early 70s and everyone was probably high at the time. It would be far more understandable if you just set a value between 0 and 39, which is what actually happens under the covers.

Pearlseattle is correct, make your heavy hitters nice, don't try and make your important task 'nasty'. You can actually end up making things much worse than they were to start with by using negative nice values if you're not very careful.
Old 06-24-2008, 01:52 PM   #5
Registered: Jul 2006
Location: Gießen, Germany
Distribution: Slackware64-14.2
Posts: 791

Original Poster
Rep: Reputation: 49
Ok, I will do some experimentation with the nices and inform you.

Thanks for the replies.
Old 06-24-2008, 03:08 PM   #6
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,064

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Firstly, is there any sign of swapping occuring? If so, try to reduce the amount resident in memory so swapping doesn't occur. Or add memory. There may also be some mileage in reducing swappiness.

You may also be able to get something out of playing with schedulers, but it would be an interesting journey.

It would be worthwhile to say something about the system that you've got (processor, amount of ram, what you are trying to run, which distro, probably vmstat output) and then it would be easier to form a judgement.


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
LXer: Parallelize Application for Faster Linux Booting LXer Syndicated Linux News 0 03-13-2007 02:31 PM
tips to make Le2005 run faster...?? thinhla Mandriva 14 07-23-2005 03:49 PM
i need to applications to run faster paimpozhil General 22 06-02-2004 01:05 PM
is there a way to make vmware run faster? spyghost Linux - General 4 01-16-2004 02:20 PM
Can I make Linux run faster?? justiceisblind Linux - Newbie 3 06-17-2002 02:25 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:41 PM.

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