On Sun, Jan 07, 2007 at 09:22:25PM -0500, Vladimir wrote: > Carlo Marcelo Arenas Belon wrote: > >where you using the cygwin1.dll from the installer as well (version > >1.5.11)?, > >just went and install that package and wasn't able to reproduce the > >problem you reported in a Windows XP Home SP2 box. > > > I was using cygwin1.dll from the installer.
and there was no other cygwin1.dll in your system anywhere?, where you running gmond as a service or from the command line? > >what systems were you running gmond on? > I have run it on XP Pro SP2 and Windows 2003 Server with same result. presuming you got cygwin installed at least in one of them (the one where you were doing your builds), can you run the following from a cygwin shell? $ cat /proc/stat && sleep 1 && echo && cat /proc/stat if you have cygwin installed on both the XP Pro SP2 and Windows 2003 Server then get one sample from each of them. > 100% CPU WAIT goes away if I replace the binaries with the latest > cygwin1.dll and 3.0.3 binaries I compiled. I didn't test 3.0.3 binaries > with 1.5.11 DLL. I did test the 3.0.0 binaries with both the latest cygwin1.dll (1.5.23-2) and the one provided with the installer (1.5.11) and was always getting 0.0 for cpu_wio. both cpu_idle and cpu_aidle are the most significant metrics though with values close to 100%. Indeed there is only 1 patch in between 3.0.0 and 3.0.3 for the cygwin metrics and I can't hardly believe that to fix this issue, as all it is doing is just moving the definition for the size of a buffer used to process this metrics from and old common include file into the metrics source file and as shown below: diff -urb ganglia-3.0.0/srclib/libmetrics/cygwin/metrics.c ganglia-3.0.3/srclib/libmetrics/cygwin/metrics.c --- ganglia-3.0.0/srclib/libmetrics/cygwin/metrics.c 2005-02-02 10:24:14.000000000 -0800 +++ ganglia-3.0.3/srclib/libmetrics/cygwin/metrics.c 2006-04-17 07:42:55.000000000 -0700 @@ -17,6 +17,9 @@ #define OSNAME_LEN strlen(OSNAME) /* Never changes */ +#ifndef BUFFSIZE +#define BUFFSIZE 8192 +#endif char proc_cpuinfo[BUFFSIZE]; char proc_sys_kernel_osrelease[BUFFSIZE]; > I was gonna see if I could make a quick distribution using the NSIS > (Nullsoft Installer). That will be great, I'd been working on adding an MSI target for 3.0.5 using WiX but I am still not sure of how that is going to work out with cygwin and the service wrapper. Having an installer for 3.0.4 will be probably better as there is 1 extra change in 3.0.4 to increase the frequency (and therefore the granularity) of the CPU percentage metrics (read from /proc/stat); please follow the instructions for that in this list and you should be able to get one. of course, if you are willing to do some extra testing and want some more metrics that the ones you currently have, I am more than happy to provide you with snapshots for 3.0.5 as well. Carlo

