SAR -b interpretation


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users SAR -b interpretation
# 1  
Old 10-25-2005
SAR -b interpretation

I have used SAR -b to get some Unix cache / buffer metrics and the results are confusing me a bit.

The pread/s & pwrit/s are showing 0. However the lread/s and lwrit/s are showing figures. I note also that the bread/s and bwrit/s are showing figures. I believe that pread/s and pwrit/s is not used in SAR but rather bread/s and bwrit/s are used instead - is this correct ?

What is the difference between logical read/writes and physical read/writes to the Unix cache / buffer ? I though a logical read / write was to the buffer but a physical one was to the disk itself ?

Also why is bread/s & bwrit/s considerably less that lread/s and lwrit/s ? Does the bread and bwrit figures indicate the nos of unix blocks and hence encapsulate a number of the logical reads & writes reported by the lread and lwrite figures ?
# 2  
Old 10-25-2005
pread & pwrite are for raw I/O to character devices.

lread & lwrit are I/O to the buffer, not disk

logical read/write means that the I/O was done to a buffer, ie., memory.

Physical I/O is to a device - tty, disk, tape.

The more use the system gets from buffers, the more efficient overall I/O throughput becomes.
# 3  
Old 10-26-2005
thanks for the reply.

Do you know know how the unix buffer / cache is set ? ( I presume it is a kernel based setting )

I notice from SAR -d that my read cache is consistently at 100% but my write cache frequently falls below 65%. What does this mean. Should I be tuning the write cache and if so, how ?

Is there a single buffer / cache or separate ones for read & write ?

Last edited by jimthompson; 10-26-2005 at 06:17 AM..
# 4  
Old 10-26-2005
Actually - what are you doing?

Unless you really have I/O problems - or disk thrashing - or some clearly defined problem, like every process is totally I/O bound, you should probably leave things alone.

It appears to me like you do not know what you are looking at, so your changing things could lead to big trouble.

Process space can also have file caches or buffers. Applications control caching (buffering) and that's where control of buffers usually should start, not at the kernel level. Look for applications that have called setvbuf() to turn off buffering, for example.

In general, disks have pretty big on-board caches, so you don't have to worry too much about the kernel cache if things are working reasonably well.

The write thing is the number of cache hits/misses - misses caused by writing new data to files; hits are a write updating an existing record in the cache, like a row in a database table.

Generally, the best thing to do is called load-leveling - placing really active directories on physically separate disks. This mostly applies to writes, but if there are lots of reports running you may also have a problem with reads bombing one disk, so move directories around in that case as well. The I/O request queue indicates the magnitude of this problem.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Interpretation of Ping behaviour

hi, working on Solaris 10. need your help on ping behaviour that I encountered. I ping from source to destination -bash-3.2# ping -s -t 128 10.10.10.200 PING 10.10.10.200: 56 data bytes <===== stops here for 2 minutues before getting reply back 64 bytes from 10.10.10.200:... (9 Replies)
Discussion started by: ghostdog74
9 Replies

2. UNIX for Advanced & Expert Users

Truss output interpretation

hi, anyone can help on this piece of truss output? 8094: 0.7028 write(4, 0x0043BE90, 236) = 236 8094: T S H \0\0\0EC020101\0\0\0\0\0\0\0\0\0 "02\0\0 303\0\0 I D 8094: \f %\0\0\0\0 2\0F67F\0\0\0\0 @06FFC99A ; 8094: L D6\0 303 8094: ... (6 Replies)
Discussion started by: ghostdog74
6 Replies

3. AIX

lspath output interpretation

On my VIo I see the following for my disks: $ lspath | grep hdisk6 Enabled hdisk6 fscsi0 200600a0b82193f7,4000000000000 Enabled hdisk6 fscsi0 200700a0b82193f7,4000000000000 Enabled hdisk6 fscsi2 200600a0b82193f8,4000000000000 Failed hdisk6 fscsi2 200700a0b82193f8,4000000000000 $ lspath |... (8 Replies)
Discussion started by: petervg
8 Replies

4. Shell Programming and Scripting

Negating shell interpretation

I'm writing a Korn script but am having trouble because the shell interprets the asterisk in this case. Can anyone tell me if there is a way to fix this so that grep takes in STDIN without the interpretation? line="30 09 * * 1-4 /home/user01/bin/start" echo "$line" | grep 'start' (16 Replies)
Discussion started by: sprucio
16 Replies

5. Solaris

solaris versions interpretation

Hi What means Solaris 10 5/09 and Solaris 10 10/09, I mean the suffix 5/09 and 10/09 ? thx for help. (1 Reply)
Discussion started by: presul
1 Replies

6. UNIX for Dummies Questions & Answers

No Space Message Interpretation

Hi, I get the message NOTICE HTFS :No Space on dev hd (1/104), What does (1/104) mean? Is there any link, I can get material on understanding unix message log? thanks. (4 Replies)
Discussion started by: scomrade
4 Replies

7. IP Networking

DNS ENUM RR interpretation

Hi Guys, This is really really urgent. Am looking out for some quick answers. I'm developing a DNS Resolver client that interprets DNS Query repsonses & pass on the needful to DNS applications. When an ENUM query(modified to an nslookup naptr query) is issued & an NAPTR RR(Resource Record)... (1 Reply)
Discussion started by: smanu
1 Replies

8. AIX

interpretation of sar

hello with a sar i have this result: System configuration: lcpu=48 ent=4.00 14:06:37 %usr %sys %wio %idle physc %entc 14:06:39 26 9 3 62 1.63 40.7 14:06:41 26 9 3 63 1.58 39.4 14:06:43 ... (0 Replies)
Discussion started by: pascalbout
0 Replies

9. UNIX for Dummies Questions & Answers

shell interpretation

I executed the following command in the korn shell: $ variable1="qwerty" ls | sort and the shell executed the 'ls | sort' command. I would have expected an error message from the shell, but instead of that the shell ran the 'ls | sort' command and didn't realize the variable assignement. ... (1 Reply)
Discussion started by: PhilippeCrokaer
1 Replies
Login or Register to Ask a Question