LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2010, 02:42 AM   #1
koshihaku
Member
 
Registered: Aug 2010
Posts: 50

Rep: Reputation: 0
Question a question about running script`s priority


I run a script monitoring the memory of apache server processes, and the script will putput the data to log file every 20 seconds. But maybe becaused the server is saturated, sometimes the time interval of records in output log file is not stable, sometimes several minutes, sometimes longer than one hour.

I tried to use renice the process of the script, but it didn't get well much. Is there a better way to highten the priority of the running script or other way to make it work well?

Thank you !
 
Old 09-10-2010, 03:38 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
There might be something odd about your script, but in any case, only root can raise the priority of a process above the default for the non-root user.
In some cases, if the amt of data in each rec is small, you may be 'suffering from buffering' eg http://perl.plover.com/FAQs/Buffering.html. That page talks about Perl, but the principle is the same regardless of language.
 
1 members found this post helpful.
  


Reply



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
Regarding changing priority of current active running process sekhar Linux - Software 1 06-01-2007 01:26 AM
How can i change the priority of a running process. ZAMO Linux - Enterprise 3 04-23-2007 03:31 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM
Question on running a script zael Programming 1 09-30-2003 01:59 PM
running script question BajaNick Programming 8 09-29-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration