LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-24-2008, 07:29 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

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


Hello!
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?

Regards,
Martin.
 
Old 06-24-2008, 12:02 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 703

Rep: Reputation: 80
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, 12:13 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,309

Rep: Reputation: 139Reputation: 139
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:

http://www.computerhope.com/unix/unice.htm

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, 12:35 PM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,380

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
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, 12:52 PM   #5
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

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

Thanks for the replies.
Regards,Martin
 
Old 06-24-2008, 02:08 PM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,896

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
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.
 
  


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


All times are GMT -5. The time now is 07:24 PM.

Main Menu
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