Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old August 15th, 2006   #1
Lunar_Lamp
Quad Shot of Ubuntu
 
Lunar_Lamp's Avatar
 
Join Date: May 2006
Beans: 414
Ubuntu 6.10 Edgy
Limit CPU usage of process

I wrote a script to convert a few thousand music files from one file to another, and have started it going and don't want to stop it now really. However, after leaving it running for a while I realise that I forgot to start it with the 'nice' command, to make it have a low priority on CPU usage. Is there a way to lower a processes priority once it has started?

The script uses lots of sequential ffmpeg instances, and each one has a different PID, so I suspect this may not be possible. Also, would the 'nice' command have done what I wanted it to do seeing as the script itself doesn't do much, other that tell ffmpeg which files to convert. That is, it's ffmpeg that is using the resources. Or does 'nice' make all the children of a script have the same priority as the parent process?

Last edited by Lunar_Lamp; August 15th, 2006 at 06:13 AM..
Lunar_Lamp is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:08 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry