Operating System - HP-UX
1833451 Members
3064 Online
110052 Solutions
New Discussion

Is buffer cache used in 'dd' command?

 
SOLVED
Go to solution
Mei Jiao
Respected Contributor

Is buffer cache used in 'dd' command?

Just would like to check that when I run:
# dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=1024

Is buffer cache used here? If yes, is it used upto block size of 1024 only?

Thank you.
3 REPLIES 3
Muthukumar_5
Honored Contributor

Re: Is buffer cache used in 'dd' command?

Hai,

You are not using conv formats in dd command. So it won't use the buffer cache for this. When there is no conv method,the in-core memory is not needed.

Check the dd man page for bs option informations.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Con O'Kelly
Honored Contributor
Solution

Re: Is buffer cache used in 'dd' command?

Hi

If you are using raw devices then buffer cache will not be used.

Here is a discussion on dd that may provide further info.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=190078

Cheers
Con
Robert-Jan Goossens
Honored Contributor

Re: Is buffer cache used in 'dd' command?

by the way, add the k to the bs=1024

# dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=1024k

it will speed up the process.

Regards,
Robert-Jan