Re: [LONG] vmstat: What I/O is blocked and how to fix it?



On Tue, Dec 13, 2005 at 03:52:44PM -0500, Mark Bucciarelli wrote:

> On two occasions recently, vmstat has showed me that a
> number of processes are blocked due to I/O. At the same
> time, the number of disk transactions per second reported is
> a small fraction of the disk's capability.

I did a lot of reading to try and understand what was happening to this
heavily loaded box. The most helpful resources I found were posts by
Andrew Kinney [1][2], Terry Lambert [3][4], and Daniel Lang [5], as well
as the VM design elements doc written by Mathew Dillon [6].

I figure the kernel did not have enough memory to operate efficiently.
I set KDA_PAGES = 512 and the new kernel didn't show any blocked
processes for the spamd-setup test. :)

A first question:

There were notes that the kernel auto-sizes things like memory for
files and other things based on the amount of memory available.

In this context, does "memory available" = RAM + swap?

So now I should monitor things. I think I know how to watch network
buffers and paging, are there any other stats I should watch?

- network buffers (netstat -m)

- vm page pointers
(vmstat -z, PV_ENTRY "free" + "used" >= 90% of "limit")

- anything else?

Any other recommended reading?

Thanks for any pointers.

m

[1] http://lists.freebsd.org/pipermail/freebsd-hackers/2004-February/005528.html
[2] http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2003-12/0221.html
[3] http://lists.freebsd.org/pipermail/freebsd-current/2003-June/005691.html
[4] http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2003-12/0229.html
[5] http://freebsd.hanirc.org/holyboard/holyboard.cgi?db=hackers&mode=view&now=55&no=26202&jd=-1
[6] http://ezine.daemonnews.org/200001/freebsd_vm.html

_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [LONG] vmstat: What I/O is blocked and how to fix it?
    ... I figure the kernel did not have enough memory to operate efficiently. ... I think I know how to watch network ... Thanks for any pointers. ...
    (freebsd-performance)
  • Re: user malloc from kernel
    ... > I'm not sure if newly allocated memory will overwrite memory allocated ... > in kernel, but for sure process is able to write to this memory. ... and one R/W in both user and kernel space. ... pointers, and it doesn't really matter where you get the pointers ...
    (freebsd-hackers)
  • Re: QLarge?= contiguous memory area in kernel mode
    ... > reserved some memory at kernel boot with mem=30M, ... > Now I read that you should not use pointers, ... the kernel calls can handle all the specific memory stuff that you ...
    (comp.os.linux.development.system)
  • [UNIX] Linux Kernel do_brk() Vulnerablility (Explained)
    ... Get your security news from a reliable source. ... A critical security bug has been found in the Linux kernel 2.4.22 (and ... earlier) memory management subsystem. ... for the code working at the lowest privilege level. ...
    (Securiteam)
  • Re: Cached memory never gets released
    ... Stock linux 2.4.26 kernel. ... Due to flash bug 3M of memory gets lost due to font memory getting lost ... The output of "free" cache number steadily grows. ... longer to exhaust all of system memory with the cache. ...
    (Linux-Kernel)