LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-15-2004, 08:20 AM   #1
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Making process priority "stick"?


Hey all,

Per some recommendations on the mysql site about optimizing for a dual processor system, I'm trying to set the nice value of the mysqld_safe process. Since this box is used only for MySQL, I'm trying to set the nice value to -20, as it's supposed to give a fairly hefty performance increase. However, I'm having some issues trying to get the value to stick. I can run that command from a terminal window just fine, and it sets the value as it should. However, as soon as I close the window or session, the value resets to 0 again.

The exact wording that they used was this:

Quote:
This can be done by adding a renice -20 $$ command to mysqld_safe.
The mysqld_safe is a shell script, but they give no advice on where to add this command. I put it in at the start and at the end of the script, but it didn't appear to make any difference.

So, I guess I'm hoping there's a way to set the process priority in such a way that it will stick. If anyone has any suggestions, I'd appreciate them.

Thanks.
 
Old 07-15-2004, 08:33 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Try invoking disown before closing the terminal session.

This command will allow you to close a shell without killing all the child processes. Information about disown can be found in the bash man page.
 
  


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
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM
USB stick, "losing space" - filesystem inconsistensies? iskrem Linux - Hardware 1 11-26-2004 06:01 PM
Priority: script to run on boot vs. "service iptables save" iheardrain Linux - General 5 09-30-2004 09:53 PM
How do i disable a "broken" pointing stick on a Compaq Armada M700? Klas Linux - Hardware 1 05-02-2004 07:31 PM
Warning: font renderer for ".pcf" already registered at priority 0 ???? Miky Linux - General 0 04-12-2004 08:09 PM


All times are GMT -5. The time now is 11:02 AM.

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