LinuxQuestions.org
Visit Jeremy's Blog.
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


Closed Thread
  Search this Thread
Old 03-26-2014, 07:00 AM   #1
momersaleem
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Rep: Reputation: Disabled
Linux Kernel Programming Project - How to implement a IO/disk scheduling algorithm?


Hello All,

I am new to this forum and newbie to Linux as well. I want to implement an IO/disk scheduling algorithm (e.g. FCFS, SSTF, SCAN etc) for Linux kernel. I have my own algorithm approach which I want to implement for Linux. I have installed VMware and Fedora on my machine. But I have no idea where to start implementing the algorithm now. I don't even know how to compile the Linux kernel code in fedora. This is all what I know about Linux right now.

So my questions are:
1 - How to compile Linux kernel code in fedora?
2 - How shall I implement disk scheduling algorithm and what will be involved from start to finish implementing the disk algorithm for Linux Kernel?
3 - What are the complexities involved to implement it?
4 - Also share any good reading and video material for it?

I'll be very grateful to you for any help.

Thanks in advance,
momersaleem
Software Engineer
 
Old 03-26-2014, 11:26 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,226

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
There are plenty of tutorials for building and installing a kernel on the net. The general steps are:
  1. Set up an rpmbuild environment in your home directory
  2. Install required build tools
  3. Install the kernel source rpm
  4. Make sure you can build, install and run the unmodified kernel before making any changes
  5. Add your new disk scheduler to the code. You can look at the existing ones: noop, deadline and cfq for help.
Its easy to test, since you can change schedulers without rebooting. Not sure how well a disk scheduler will run in a VM, but its definitely the best way to debug finicky kernel code before testing on real hardware.
 
Old 03-26-2014, 05:11 PM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,613

Rep: Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

--jeremy
 
  


Closed Thread


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
Linux Kernel Programming Project - How to implement a IO/disk scheduling algorithm? momersaleem Programming 5 04-04-2014 02:38 PM
Change Linux scheduling algorithm sandeshgv Linux - Kernel 1 11-16-2010 01:28 PM
linux kernel scheduling algorithm gsatish.linux Linux - Newbie 1 09-08-2010 05:02 PM
linux scheduling algorithm? Ranti Linux - General 1 06-08-2009 05:56 AM
Scheduling Algorithm in linux Arshina Linux - Software 1 02-27-2007 08:12 AM

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

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