LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-08-2011, 09:20 PM   #1
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 92

Rep: Reputation: 6
Limiting Processor Use to a Process


Hi,

I'm using Fedora 15, 64 bit, and have realized that for a half hour each night, when I back up the system, (it's used as a database server), gzip (which I'm using to zip the archives) gobbles up inordinate amounts of CPU - enough to make the database itself inaccessible from other machines.

So, I'm just wondering, is there a way that I can limit the resources that gzip (or whatever) consumes, such that it doesn't have such an adverse effect on other services?

Many thanks in advance for any suggestions!
 
Old 11-08-2011, 09:44 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,885
Blog Entries: 18

Rep: Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347Reputation: 3347
You might look at "nicing" it.

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

Read the nice man pages first (man nice in a terminal will bring them up). The nice command is a little counter-intuitive--more (+) nice means less priority.
 
Old 11-08-2011, 09:55 PM   #3
cheddarcheese
Member
 
Registered: Aug 2011
Location: Massachusetts, USA
Distribution: Fedora; Centos; Puppy
Posts: 92

Original Poster
Rep: Reputation: 6
Thanks Frank ... I'll check that out.

Best regards.
 
  


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
Limiting CPU usage of a multithreaded process in Linux reshika ag Linux - Software 1 10-12-2010 06:39 AM
how can two process can be scheduled in two different processor in multi processor ? bishalpoudyal Programming 4 08-31-2006 03:22 PM
Limiting a process CPU usage therandomthing Linux - Software 1 06-07-2005 10:00 PM
Limiting memory use by a process fpmc Programming 14 06-26-2004 06:45 AM
limiting cpu and memory usage by user process amitkush Linux - Security 2 07-04-2003 01:21 AM

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

All times are GMT -5. The time now is 03:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration