Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-16-2008, 03:59 AM   #1
Registered: Jul 2004
Posts: 56

Rep: Reputation: 15
Storage unit and IO unit

I have two questions if some one could help me find out for my red had advance server 4.
1. How could i find out the storage unit of my Linux. I mean operating system block size.
2. How could i find out that what is the unit of I/O on my Linux system. I mean, when data is requested from the disk for read, how much data is read in one I/O. How do we set it at OS level?

Old 06-17-2008, 07:05 PM   #2
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
1. If you mean filesystem block size, you can get that on a per-filesystem basis. For ext2/3, use tune2fs -l /dev/XXX|grep "Block size"

2. I suspect the answer depends on what exactly you mean by "one I/O" and on the hardware you are using. A good place to start looking would be in the source code for your hard drive controller. Note that the size of one transfer isn't fixed. It may be anywhere between 0 and a max limit imposed by your hardware.

I would be interested in hearing from someone more knowledgeable on this aspect.
Old 06-17-2008, 11:11 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,756

Rep: Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973Reputation: 3973
Unless you are doing direct I/O the concept of "blocksize" is a bit nebulous.
Regardless of what you (as handled by the fs driver) request, the I/O schedulers are designed to consolidate (and sort) the physical I/Os to optimize hard disk usage.
To all intents and purposes I/O is handled as a convenient (to the VFS) multiple of sector size - generally 512 Bytes.
Then the physical bits (the card and device itself) may well get in on the act - especially for large (on-board) caches or any sort of RAID. Who knows what they do to the actual (physical) I/Os.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount a remote storage unit in Gnome? werner1975 Linux - Software 1 09-27-2007 05:14 PM
All bells should be sent on the definite unit ukrainet Linux - Newbie 0 11-26-2004 06:45 AM
bandwidth control unit booyah Linux - Networking 3 06-14-2004 09:17 AM
problems with my CD-RW unit devit Linux - General 4 02-02-2004 11:53 AM
Linux members, unit! LinuxMilitia General 6 09-22-2003 11:35 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration