Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2004 18:31:15 +0000
From:      Bosko Milekic <bmilekic@FreeBSD.org>
To:        Alfred Perlstein <alfred@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c uipc_syscalls.c src/usr.bin/netstat mbuf.c src/lib/libc/sys sendfile.2
Message-ID:  <20040617183115.GA41663@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

  This is not fair.  This change ADDs lines to netstat -m's output,
  but does not/should not modify existing ones.  Furthermore, the
  person who writes scripts to parse netstat(1)'s output should
  stop doing that and read the sysctls directly, doing similar to
  what netstat(1) itself does, instead of relying on its output,
  which is subject to change.

  Anyway, if you were going to argue against this MFC, you would have
  been better off pointing out that it merges to RELENG_4 something
  that shouldn't even be in HEAD.  Namely, the sendfile(2) stats have
  no business in being in the mbstat struct and should have been moved
  out of there before this was MFC'd (you should consider fixing that,
  by the way, since you put them there). :-)

  Despite all this, since the change has already been made and it is
  clearly non-fatal, there is no reason for it to be backed out now,
  just please take caution when/if doing this sort of thing again
  next time. A better approach would be to:

  1) Fix HEAD, move the sendfile(2) stats OUT of mbstat, and introduce
     new flag to netstat(1) to report sendfile(2) stats, as you suggest.

  2) MFC (1), instead of backing this out first, because this change
     should not be a problem to anyone with enough clue to not write
     flaky scripts.

  Regards,
  Bosko

Alfred Perlstein wrote:
>
>MFC'ing a change to netstat -m's output is not acceptable.
>
>This will break scripts.
>
>Please back out the netstat change.
>
>Why are sfbuf/sendfile stats being put under mbuf stats?
>
>This is bogus, please use a different flag instead of cluttering
>the mbuf stats.
>
>
>* Max Khon <fjoe@FreeBSD.org> [040616 17:08] wrote:
>> fjoe        2004-06-17 00:08:23 UTC
>>
>>   FreeBSD src repository
>>
>>   Modified files:        (Branch: RELENG_4)
>>     sys/sys              mbuf.h
>>     sys/kern             uipc_mbuf.c uipc_syscalls.c
>>     usr.bin/netstat      mbuf.c
>>     lib/libc/sys         sendfile.2
>>   Log:
>>   MFC:
>>
>>   sendfile(2)-related statistics that can be viewed through netstat -m:
>>   - The number of times sendfile() had to do disk I/O
>>   - The number of times sfbuf allocation failed
>>   - The number of times sfbuf allocation had to wait
>>   and three sysctl's: kern.ipc.nsfbufs, kern.ipc.nsfbufspeak,
>>   kern.ipc.nsfbufsused that also can be viewed through netstat -m.
>>
>>   Submitted by:   Igor Sysoev <is (at) rambler-co.ru>
>>
>>   Revision   Changes    Path
>>   1.6.2.9    +50 -1     src/lib/libc/sys/sendfile.2
>>   1.51.2.37  +8 -0      src/sys/kern/uipc_mbuf.c
>>   1.65.2.20  +6 -0      src/sys/kern/uipc_syscalls.c
>>   1.44.2.26  +6 -1      src/sys/sys/mbuf.h
>>   1.17.2.4   +16 -2     src/usr.bin/netstat/mbuf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040617183115.GA41663>