Checking for sequential write

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I wrote(sequential) 10Gb data with transfer size of 64Kb to my external hard drive and used blktrace & blkparse to check whether these writes are 100% sequential or not.I used below command with %S to watch sequential view of writes.



blkparse sdX -f “%5T.%9t, %p, %C, %a, %d,%S, %Nn” -a complete –o output.txt


But my result is strange. Does anyone know why my result does not show sequential write? Can it be related to bad formating and mounting the disk in Linux?
Starting LBA of each transfer







share|improve this question


















  • 1




    Does your external hard drive have a filesystem on it?
    – Andy Dalton
    Jan 30 at 15:07










  • Yes, I formatted with ext4. With other file systems like xfs and btrfs also the plot shows two separate lines! My expectation was a continuous line in the figure.
    – ati
    Jan 31 at 2:02










  • With a filesystem, you'll have to update the superblock eventually. The elevator algorithm also comes into play.
    – Andy Dalton
    Jan 31 at 14:34










  • @AndyDalton Would you please tell me, which option of ext4 formatting I should add to my command? In order to update the superblock.
    – ati
    Jan 31 at 14:40










  • You misunderstand. There's metadata on disk about what disk blocks are allocated. As the OS writes data, it'll update that metadata. I don't know the details of when, exactly, you'd expect that to happen.
    – Andy Dalton
    Jan 31 at 17:13















up vote
0
down vote

favorite












I wrote(sequential) 10Gb data with transfer size of 64Kb to my external hard drive and used blktrace & blkparse to check whether these writes are 100% sequential or not.I used below command with %S to watch sequential view of writes.



blkparse sdX -f “%5T.%9t, %p, %C, %a, %d,%S, %Nn” -a complete –o output.txt


But my result is strange. Does anyone know why my result does not show sequential write? Can it be related to bad formating and mounting the disk in Linux?
Starting LBA of each transfer







share|improve this question


















  • 1




    Does your external hard drive have a filesystem on it?
    – Andy Dalton
    Jan 30 at 15:07










  • Yes, I formatted with ext4. With other file systems like xfs and btrfs also the plot shows two separate lines! My expectation was a continuous line in the figure.
    – ati
    Jan 31 at 2:02










  • With a filesystem, you'll have to update the superblock eventually. The elevator algorithm also comes into play.
    – Andy Dalton
    Jan 31 at 14:34










  • @AndyDalton Would you please tell me, which option of ext4 formatting I should add to my command? In order to update the superblock.
    – ati
    Jan 31 at 14:40










  • You misunderstand. There's metadata on disk about what disk blocks are allocated. As the OS writes data, it'll update that metadata. I don't know the details of when, exactly, you'd expect that to happen.
    – Andy Dalton
    Jan 31 at 17:13













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I wrote(sequential) 10Gb data with transfer size of 64Kb to my external hard drive and used blktrace & blkparse to check whether these writes are 100% sequential or not.I used below command with %S to watch sequential view of writes.



blkparse sdX -f “%5T.%9t, %p, %C, %a, %d,%S, %Nn” -a complete –o output.txt


But my result is strange. Does anyone know why my result does not show sequential write? Can it be related to bad formating and mounting the disk in Linux?
Starting LBA of each transfer







share|improve this question














I wrote(sequential) 10Gb data with transfer size of 64Kb to my external hard drive and used blktrace & blkparse to check whether these writes are 100% sequential or not.I used below command with %S to watch sequential view of writes.



blkparse sdX -f “%5T.%9t, %p, %C, %a, %d,%S, %Nn” -a complete –o output.txt


But my result is strange. Does anyone know why my result does not show sequential write? Can it be related to bad formating and mounting the disk in Linux?
Starting LBA of each transfer









share|improve this question













share|improve this question




share|improve this question








edited Jan 30 at 15:43









Weijun Zhou

1,434119




1,434119










asked Jan 30 at 14:29









ati

12




12







  • 1




    Does your external hard drive have a filesystem on it?
    – Andy Dalton
    Jan 30 at 15:07










  • Yes, I formatted with ext4. With other file systems like xfs and btrfs also the plot shows two separate lines! My expectation was a continuous line in the figure.
    – ati
    Jan 31 at 2:02










  • With a filesystem, you'll have to update the superblock eventually. The elevator algorithm also comes into play.
    – Andy Dalton
    Jan 31 at 14:34










  • @AndyDalton Would you please tell me, which option of ext4 formatting I should add to my command? In order to update the superblock.
    – ati
    Jan 31 at 14:40










  • You misunderstand. There's metadata on disk about what disk blocks are allocated. As the OS writes data, it'll update that metadata. I don't know the details of when, exactly, you'd expect that to happen.
    – Andy Dalton
    Jan 31 at 17:13













  • 1




    Does your external hard drive have a filesystem on it?
    – Andy Dalton
    Jan 30 at 15:07










  • Yes, I formatted with ext4. With other file systems like xfs and btrfs also the plot shows two separate lines! My expectation was a continuous line in the figure.
    – ati
    Jan 31 at 2:02










  • With a filesystem, you'll have to update the superblock eventually. The elevator algorithm also comes into play.
    – Andy Dalton
    Jan 31 at 14:34










  • @AndyDalton Would you please tell me, which option of ext4 formatting I should add to my command? In order to update the superblock.
    – ati
    Jan 31 at 14:40










  • You misunderstand. There's metadata on disk about what disk blocks are allocated. As the OS writes data, it'll update that metadata. I don't know the details of when, exactly, you'd expect that to happen.
    – Andy Dalton
    Jan 31 at 17:13








1




1




Does your external hard drive have a filesystem on it?
– Andy Dalton
Jan 30 at 15:07




Does your external hard drive have a filesystem on it?
– Andy Dalton
Jan 30 at 15:07












Yes, I formatted with ext4. With other file systems like xfs and btrfs also the plot shows two separate lines! My expectation was a continuous line in the figure.
– ati
Jan 31 at 2:02




Yes, I formatted with ext4. With other file systems like xfs and btrfs also the plot shows two separate lines! My expectation was a continuous line in the figure.
– ati
Jan 31 at 2:02












With a filesystem, you'll have to update the superblock eventually. The elevator algorithm also comes into play.
– Andy Dalton
Jan 31 at 14:34




With a filesystem, you'll have to update the superblock eventually. The elevator algorithm also comes into play.
– Andy Dalton
Jan 31 at 14:34












@AndyDalton Would you please tell me, which option of ext4 formatting I should add to my command? In order to update the superblock.
– ati
Jan 31 at 14:40




@AndyDalton Would you please tell me, which option of ext4 formatting I should add to my command? In order to update the superblock.
– ati
Jan 31 at 14:40












You misunderstand. There's metadata on disk about what disk blocks are allocated. As the OS writes data, it'll update that metadata. I don't know the details of when, exactly, you'd expect that to happen.
– Andy Dalton
Jan 31 at 17:13





You misunderstand. There's metadata on disk about what disk blocks are allocated. As the OS writes data, it'll update that metadata. I don't know the details of when, exactly, you'd expect that to happen.
– Andy Dalton
Jan 31 at 17:13
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f420689%2fchecking-for-sequential-write%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f420689%2fchecking-for-sequential-write%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?