LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2011, 04:50 AM   #1
grap
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
Coalescing of disk io requests during merging


How does coalescing of requests takes place during merging if the following scenario occurs...
say request for sector number 3 and 5 already exists...and a new request for sector 4 arrives, then if it front merges with 5, will it also back merge (i.e coalesce in this case) with 3 ?
if it happens ..which functions are called? and how do we get to know whether a single merge or multiple merges have taken place?

references : blk-core.c, elevator.c, deadline_iosched.c all under /block.
 
Old 03-02-2011, 10:08 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by grap View Post
if it happens ..which functions are called?
I'm pretty sure the merging attempts to create as large a consolidated unit as possible. Don't know where it's done though - haven't bothered to look
Quote:
... and how do we get to know whether a single merge or multiple merges have taken place?
For ext, have a look at blktrace - mighty handy for this.
 
  


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
ethernet driver coalescing pararmeters changes /retriving problem bhrugu Linux - Networking 2 08-25-2008 04:23 AM
Hard disk partition merging krishidc Linux - Server 1 07-23-2007 02:18 PM
Merging partitions? Jorophose Linux - Newbie 3 04-05-2007 06:23 PM
how do i listen in on another devices disk requests? jwn7 Programming 2 11-02-2005 07:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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