lkml.org 
[lkml]   [2002]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectvmstat

While going over the vmstat man page, I spotted this:

All linux blocks are currently 1k, except for CD-ROM
blocks which are 2k.

This doesn't seem to be true. I need help determining when
things changed so that I can update the documentation.
I've been checking kernels with commands like this:

dd bs=1024k count=1 if=/dev/cdrom of=/dev/null

Linux 2.4.16 and 2.5.42 both seem to use units of 1024 bytes.
Linux 2.2.18 does something weird, but NOT what is described in
the vmstat man page. With 2.2.18, non-CD blocks are 4096 (!!!)
bytes and CD blocks are indeed 2048 bytes.

I suppose there was an even older kernel, perhaps 2.0.xx,
that did the non-CD blocks in units of 1024 bytes. I can
no longer compile 2.0.xx, so I need some help testing that.

Also, am I right about 2.2.xx kernels? Are any of these
kernels affected by block size of a mounted filesystem?
Does it matter if I use a /dev/raw* device? Does any
kernel use different units for file bodies and metadata?

--
http://procps.sf.net/
http://procps.sf.net/procps-3.0.5.tar.gz
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.430 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site