Hi Michael,
the fix for a overrun looks good to me. But your code still has the
problem that loop back traffic is counted, too.
perfstat_netinterface_total is the sum of all network devices including
lo0, etc.
Best regards
Andreas
Michael Perzl schrieb:
Andreas,
thank you for taking
@lists.sourceforge.net; [EMAIL PROTECTED]
*Subject:* Re: [Ganglia-general] Help! I have a petabyte/s network
(Martin Knoblauch)
Andreas,
thank you for taking the blame but you are off the hook here. ;-)
If I understood David correctly, he is using my AIX Ganglia RPM
packages with POWER5 extensions. Here
Hi Andreas,
please see my other email with regards to the overrun.
The problem that the loopback traffic is counted also is part of the
perfstat_netinterface_total() routine. When looking at some of the
metric implementations for bytes_in I found the following:
- AIX, your version and my
have a petabyte/s network
(Martin Knoblauch)
Andreas,
thank you for taking the blame but you are off the hook here. ;-)
If I understood David correctly, he is using my AIX Ganglia RPM
packages with POWER5 extensions. Here most if not all implementation
of how the metrics are collected under
Hi Michael,
to subtract the traffic on lo0: will do for lost installations of cause.
But if the loop back device has an other name or if there is more then
one, it wont fit.
An more flexible way would be to loop over all network devices with
collecting perfstat_netinterface and sum all that have
Hi Andreas,
I went for the easy way first but you are right. Here is a version which
loops over all network interfaces and omits all loopback devices:
g_val_t
bytes_in_func( void )
{
g_val_t val;
perfstat_id_t name;
perfstat_netinterface *nif_buf, *p;
static u_longlong_t last_bytes_in
Hi David and Martin,
I suppose the network code is still the code I wrote, so there are two
problems I know of:
1. yes there is a problem with owerflows
2. the shown network traffic is the sum of all network interfaces
including local loopback devices (lo0...).
Both Problems could lead to
Andreas,
thank you for taking the blame but you are off the hook here. ;-)
If I understood David correctly, he is using my AIX Ganglia RPM packages
with POWER5 extensions. Here most if not all implementation of how the
metrics are collected under AIX have been changed. Everything is
8 matches
Mail list logo