LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-24-2011, 11:04 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
Running proces on 1 core


Hi Gurus,

I`m looking for solution. Is it possible to run process on 1 core in UNIX ?

From time to time I must start some very CPU consuming process and unfortunately this process is running on all cores... so at this time working on PC is very hard.


is it possible to manage in linux ?
 
Old 01-24-2011, 02:51 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Rather than reduce efficiency, just reduce the priority. For example:

Code:
nice -n19 someCpuIntensiveCommand
 
Old 01-25-2011, 04:01 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by dlugasx View Post
unfortunately this process is running on all cores...
Do you mean by this its running in parallel automatically, and giving a load equivalent to the number of installed cores?
 
Old 01-25-2011, 04:12 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You can force application to run on specified cores or one core by "taskset" tool. But macemoneta remark is better, unless you must have one core always available to another process. As I known since the kernel v2.6 scheduler is trying to bind one process to one core for performance reason, to minimalize core switches.
 
  


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
Get process running CPU core and the utilisation on that core... chamila1986 Programming 5 04-28-2010 05:00 PM
Listing active proces delhiris Linux - Newbie 3 09-13-2009 04:25 PM
On which core is Linux kernel running on Dual-core machine? kushalkoolwal Linux - Hardware 22 01-05-2009 02:33 PM
User proces limit webserve Linux - Security 7 08-12-2005 07:52 PM
Error Proces Booting After Compiling Kernel 2.6.3 Gijet Red Hat 7 06-04-2004 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:59 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