How to determine the used size of device associated's buffer
- by dubbaluga
Hi,
when mounting a device without the "sync" option, e. g. by invoking the following:
mount -o async /dev/sdc1 /mnt
a buffer is associated with a device to optimize (speed) read/write operations. Is there a way to determine the size of this buffer? Another question that comes into my mind is, if it's possible to find out how much of it is used currently. This can be interesting to determine the time it would take to "sync" or "umount" slow devices, such as flash-based media.
Thanks in advance for your answers,
Rainer