LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-09-2010, 12:03 PM   #1
neworder
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
I/O limits - howto


Hi,

I have to implement a patch on the kernel that will enable users to limit I/O rate (this is a homework assignment). Basically, for every process and device we want to be able to set maximum average read/write rates (e.g. 5 KB/s). We may also want to implement a scheduling policy.

I've never done any kernel programming before, so I'd be grateful if anyone could give me links to relevant resources (how I/O operations are implemented on the kernel level, where should I make changes in the kernel, general stuff on how to modify the kernel etc.).
 
Old 01-10-2010, 08:48 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by neworder View Post
I've never done any kernel programming before
Start by actually using your GNU/Linux system. Recompile some vanilla kernels. Add a patch cleanly like Openwall (if you run 2.4) Dazuko, Sysmask, TOMOYO, IP personality. Read the kernel source code. Have different physical disks, run 'stress' and bonnie and play with schedulers. Use your favourite searchengine and simply search for "linux scheduler" and read docs that reference the "Understanding the Linux Kernel" book, search for "scheduling algorithms" and about anything on schedulers on the LKML. Learn how to code. Read kernel source code some more. Learn how to add your own driver to the kernel without making it OOPS. Get on the LKML and ask if any schedulers need improvement. Read the docs again. Discuss things on the LKML some more. Understand kernel source code. Submit your patch, get flamed, improve and resubmit. Arduous task at it may seem, time flies when you're having fun! So don't be surprised (in three measly years) to find you've already completed your assignment! (OK, provided you don't shower, live on only coffee and your head didn't explode already.)

Good luck.
 
  


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
internet limits - what do you think? kuser:) General 15 09-26-2008 08:11 PM
CPU Limits Harlin Linux - General 4 05-18-2008 02:18 AM
Linux VM limits debulu Linux - Kernel 3 07-06-2007 10:38 AM
limits are not working (limits.conf) PkerC Red Hat 3 06-22-2006 10:14 AM
no /etc/limits ? Mig21 Slackware 7 07-25-2005 11:18 PM

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

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