LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-15-2007, 07:41 PM   #1
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Question Setting priorities on individual processes


Hi.

I am wondering if there's any way to set priorities on individual processes running on Linux? Here's the reason why I need to do it.

I need to copy a large file (500+ MB) from my local machine (FC6) to my server (FC3) over the home network (100 Mbps Intranet) every day. It just so happens that I want to be able to do other things on the local machine while copying the file. However, durinrg the copying process (either using "cp" on konsole or using KDE GUI), my Firefox will come to a complete halt. Opening a new page often takes more than half a minute, so does opening a new tab, refreshing an existing page, etc. Other apps face the same problem. Essentially, the copy process seems to be holding up everything else.

So what I want to do is prioritize the processes so the copy operation yields to processes of higher priority, such as firefox-bin, whenever they are activated. How is it possible?

I'm really hoping that Linux will let me do that. I don't want to resort to an RTOS just for this.

TIA!
Dai

Last edited by daihard; 08-15-2007 at 07:43 PM.
 
Old 08-15-2007, 08:14 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'nice' does that
 
Old 08-16-2007, 02:18 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You might also want to look at rsync. By default, it'll only copy over differences, so if you just want an updated copy,after the first copy you'll just get the 'updates'.
Also does compression on the fly and can use ssh protocol if you want.
 
Old 08-16-2007, 07:38 PM   #4
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by digiot View Post
'nice' does that
Thanks for the info! I will try it tonight.

Quote:
Originally Posted by chrism01 View Post
You might also want to look at rsync. By default, it'll only copy over differences, so if you just want an updated copy,after the first copy you'll just get the 'updates'.
Also does compression on the fly and can use ssh protocol if you want.
Unfortunately, the files I copy are different every day so rsync would be of little help. I certainly appreciate your input, though.

Dai
 
  


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
yum | setting priorities for repositories the_gripmaster Fedora 2 03-04-2007 12:45 PM
Viewing and setting processes to run on startup? Infernal211283 Linux - General 3 04-24-2006 07:38 AM
oom-killer: How to set priorities to kill processes guarriman Linux - Security 1 01-31-2006 09:03 AM
setting up VSFTP for individual users and directories filch Linux - Software 0 05-12-2004 11:35 PM
Setting and killing processes? KendersPlace Linux - Newbie 3 03-15-2003 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:42 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
Open Source Consulting | Domain Registration