On Tue, Mar 19, 2002 at 12:16:47PM +0100, Patrick Schaaf wrote:
> > I'd rather like to have this information to be gathered at runtime within
> > the kernel, where one could read out the current hash occupation via /proc
> > or some ioctl.
> 
> OK, that's what I wanted to hear :-)

Well, it's IMHO the right way to do this :)

> That's 10 values, and will at most double when I think more about it.
> I propose to gather these stats on the fly, and simply printk() them
> at a chosen interval:
> 
>       echo 300 >/proc/net/ip_conntrack_showstat

please make it /proc/sys/net/ipv4/ip_conntrack_stat_interval or something
more descriptive.

> would generate one printk() every 300 seconds. Echoing 0 would disable
> the statistics gathering altogether.
> 
> I think I can hack this up, today. Having the flu must be good for
> something...

Thanks, no need to hurry.  We have lived without this for multiple years,
you know ;)

Thanks in advance.

BTW: Gute Besserung.

> later
>   Patrick

-- 
Live long and prosper
- Harald Welte / [EMAIL PROTECTED]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Reply via email to