LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-20-2009, 11:01 PM   #1
gnanam
LQ Newbie
 
Registered: Jul 2009
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
How do I find out maximum I/O request size?


Hi,

How do I find out maximum I/O request size in Linux?

I'm using CentOS release 5.2

I know that the default size is 128 K, how do I find out/confirm this in my OS?

Regards,
Gnanam
 
Old 11-22-2009, 07:09 AM   #2
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
I'm not sure if you're asking what size an application can hand to the O/S or what size the O/S can hand to the driver or what size the driver can hand to the device. Then there's the question of network or disk. I know I've done disk I/O with record sizes in the 10s of MB, which are ultimately handed off to the disks in blocks that the disk is willing to accept. This sounds the the 128 you're referring to, but I'm not sure that's an O/S limit as opposed to the driver. As for networks, if you're doing ethernet you're limited to the packet size which is about 1500 bytes or 9K if you're doing jumbo frames. On the other hand if you're doing InfiniBand, I've seen record sizes of 1M but that may have also gone up with higher speeds.

On easy way to see the disk I/O sizes is with a tool like iostat or collectl and there are probably others. Here's an example of what collectl shows when I write a 1G file using my favorite load generator, Robin Miller's dt tool, which you can find at http://home.comcast.net/~SCSIguy/SCS..._Tools/dt.html. The command I'm using is:

./dt of=/tmp/test limit=1g bs=1m

The I watch what the disk is doing with my own collectl tool (it can also a whole slew of other devices as well), which you can get at: http://collectl.sourceforge.net/. In this case I'm using:

[root@poker ~]# collectl -sd --iosize -oT
waiting for 1 second sample...
# <---------------Disks---------------->
#Time KBRead Reads Size KBWrit Writes Size
08:06:35 8 2 4 12348 139 89
08:06:36 12 3 4 37480 148 253
08:06:37 8 2 4 38402 125 308
08:06:38 0 0 0 38768 133 291
08:06:39 0 0 0 51712 104 497
08:06:40 0 0 0 50688 107 474

and since my write I/O size is close to 500 I'm betting on this system I can do 512KB requests. This is a CentOS 5.3.

Does this help?

-mark
 
Old 11-23-2009, 07:33 AM   #3
gnanam
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Hi Mark,

To be frank, I couldn't understand your explanation completely. But let me go ahead and explain my requirement clearly.

I'm uploading a 10 GB file size from my local Windows machine to a Linux CentOS machine thro' Internet bandwidth, I would like to approximately calculate the I/O requests made to Linux machine, so that I can validate & confirm this with my ISP provider monthly bill.

Regards,
Gnanam
 
Old 11-23-2009, 09:16 AM   #4
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
>>>I'm uploading a 10 GB file size from my local Windows machine to a Linux CentOS machine thro' Internet bandwidth, I would like to approximately calculate the I/O requests made to Linux machine, so that I can validate confirm this with my ISP provider monthly bill.

This seems different from your original question, but I guess I'm confused too. If the 10G file got there, you obviously used 10G of bandwidth. Is it perhaps the I/O *rate* you're trying to verify to see if you're getting the bandwidth you're paying for? eg KBytes/second?

Is so there are websites you can connect to that will do that for you, though their names escape me at the moment. I'm sure google can help.

-mark

Last edited by markseger; 11-23-2009 at 09:24 AM.
 
  


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
Which File consuming maximum Size??? linuxshadow Linux - Server 2 06-13-2008 02:24 AM
Maximum packet size mrtcn Linux - Security 15 08-07-2007 03:43 PM
Maximum file size Hiran Joseph Programming 7 11-24-2006 07:54 AM
Maximum DVD iso size jhoderd Linux - General 1 05-04-2005 10:26 PM
maximum size for crontab? JakeS Linux - Software 6 01-18-2005 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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