LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-30-2013, 04:20 PM   #1
jeffwang6668
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
change OS quantum


Hello,

I just would like to ask how I can change OS quantum (time slice) in Linux? For example, smaller value makes context switch be more frequent.


Thanks,

Jeff
 
Old 05-30-2013, 07:19 PM   #2
2ck
Member
 
Registered: Mar 2010
Location: /home/twock
Distribution: Debian
Posts: 74
Blog Entries: 9

Rep: Reputation: 21
There's the nice level, the default time quantum, which you can set with `nice' (or `renice' if the command is already running).

Of course, there's more to the story --> http://oreilly.com/catalog/linuxkern...pter/ch10.html see "Scheduling Algorithm"
 
Old 05-30-2013, 07:38 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
To change the frequency of context switches you have to recompile the kernel with the changed value. You can find the value under Processor type and features -> Timer frequency when configuring the kernel with
Code:
make menuconfig
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] quantum lto 4 hh and linux napata Linux - Hardware 3 05-17-2013 01:46 AM
Quantum physics poll H_TeXMeX_H General 36 06-08-2011 04:14 AM
Quantum computer ronlau9 General 7 05-19-2008 03:29 PM
LXer: Quantum Cryptography and the XO laptop LXer Syndicated Linux News 0 01-03-2008 02:20 PM
Quantum xt 2000 tape drive ockertom Linux - Hardware 3 05-12-2006 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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