A tcpdump-like tool for disk I/O?


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory A tcpdump-like tool for disk I/O?
# 1  
Old 12-14-2009
A tcpdump-like tool for disk I/O?

Hi, can anyone please suggest a tool to dump i/o packets just like tcpdump does for network traffic. Basically I have a complex dataflow that needs to be optimized and I want to see how packets go to/from disk - what goes randomly and sequentially.

Thanks
# 2  
Old 12-14-2009
have you checked the iostat command? here is a man page.

in ubuntu, iostat is part of the sysstat package under synaptic
# 3  
Old 12-14-2009
Yogesh, thanks for your reply. Afaik iostat and the like (sar, vmstat, ...) only report statistics, but do not dump i/o packets (pls let me know if i'm wrong). Of course you can do something like (number-of-io-bytes)/(number-of-io-request) and get a geenral idea of io ratio. However this kind of analysis cannot answer the questions like - am i accessing a file in the most efficient manner, or do I have unnecessary random seeks, etc...
# 4  
Old 12-14-2009
I'm not sure how useful this information would be without direct I/O. Reordering, read-ahead, commit intervals, and plentiful cache can permit a variety of poor I/O practices to run almost optimally, not to mention make correlating I/O with software a headache -- it becomes so random it's used as seed for the system's "secure" RNG.

Last edited by Corona688; 12-14-2009 at 03:28 PM..
# 5  
Old 12-14-2009
well, w/o seeing data access paths it's hard to say whether data access patterns are optimal or close to optimal and make any decisions regarding direct i/o. next, lets assume i decided to implement direct i/o - how do i tell whether my implementation is the optimal one. my case not about comparison or achieving certain kbps, it rather about getting best from disk.
# 6  
Old 12-14-2009
Assuming raw I/O, I'd use strace and grep for read and write calls to the appropriate FD.
# 7  
Old 12-14-2009
Corona688, thanks for your input. But I think you agree with me that that's not exaclty it. With strace I cannot see how exactly read/write API calls are mapped into block devide requests, next - a very important one - I cannot see how efficiently I utilize FS. For example on some filesystems I have to allocate file in large chunks and then fseek, on others I have to append, so on... - all these choises become obvious once I can see what's going on under the hood...

PS
I think once I found a tool that did exactly what I need by installing a driver under /proc but now I can't find it anymore...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

TCPdump

I've recently started learning to use TCPdump, and I find it pretty interesting. There's one thing I don't understand. When I tell it to capture packets on, say, the WiFi interface en1, it often captures packets sent or received by other hosts on the network. How can it do this? My... (3 Replies)
Discussion started by: Ultrix
3 Replies

2. Debian

Tcpdump Help !

Hi. Need Help with TcpDump Trying to sniff associatio-request with tcpdump but when i run this tcpdump -i eth0 wlan subtype assoc-req i get this error can anyone help me with this error ? Thanks alot !!:) (1 Reply)
Discussion started by: SoulZB
1 Replies

3. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

4. Solaris

iostat as a tool for generating disk IO

Hi All Currently i had a server directly connect to the EMC box. The EMC storage is a FC Direct Attached Storage to the server without going through SAN switches And i had download the Daily data file in /var/adm/sa/sardd But i not sure which one in /var/adm/sa/sardd is the correct... (14 Replies)
Discussion started by: SmartAntz
14 Replies

5. IP Networking

tcpdump -w: how to reduce disk space ?

Hello ! I am using tcpdump -w /tr.cap -p -n -s 0 "udp" to trace my network trafic. (analysing later) I want to reduce the size of the trace files. Firtst i can use the great -C option but old files are not deleted... Second I don't want trace RTP packet but i can't find how to use... (1 Reply)
Discussion started by: Calimero90
1 Replies

6. AIX

AIX 5.2 5.3 disk performance exerciser tool

I'm search for a disk exerciser / load tool like iometer, iozone, diskx for IBM AIX 5.2 and 5.3 Because of a very bad disk performance on several AIX systems, I need to have a tool which is able to generate a disk load on my local and SAN disks. Does somebody knows a kind of tool which is... (5 Replies)
Discussion started by: funsje
5 Replies

7. IP Networking

i would like to know about tcpdump

i would like to know about tcpdump i would like to use tcpdump to get information about these - Date - time - source hostname - source mac address - source ip address - destination ip address - see outbound only then i use command like this tcpdump -i le0 -n -q -tttt -e src net... (2 Replies)
Discussion started by: chamnanpol
2 Replies

8. Cybersecurity

i would like to know about tcpdump

i would like to know about tcpdump i would like to use tcpdump to get information about these - Date - time - source hostname - source mac address - source ip address - destination ip address - see outbound only then i use command like this tcpdump -i le0 -n -q -tttt -e src net... (0 Replies)
Discussion started by: chamnanpol
0 Replies

9. UNIX for Dummies Questions & Answers

tcpdump

does anybody know what the -d -dd and -ddd options are used for ? thanks (2 Replies)
Discussion started by: ant04
2 Replies

10. Programming

How To Use tcpdump

I have two net-card. one is 172.16.24.99(ENG) ,another is 172.16.25.99(ENG-B). Both masks is 255.255.255.0. I will monitor data on the tcp port 8055 in ENG, How do I set option of tcpdump command (2 Replies)
Discussion started by: chenhao_no1
2 Replies
Login or Register to Ask a Question