Checking for sequential write
Clash 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?
linux performance
add a comment |Â
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?
linux performance
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
add a comment |Â
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?
linux performance
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?
linux performance
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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