Martin, To be honest, 3.0.2 is the first version I have deployed on this scale. Before work started on 3.0.3, I actually couldn't get clean data back from many clusters due to the xml truncation issues with gmond (fixed 3/20) so it was unclear to me whether the issue existed within gmetad or because gmond was returning bad data. I did not realize that the approach Brooks and Jason elaborated on earlier in the thread were well known. I will attempt the tmpfs solution for now - perhaps as Eli noted it would be a worthwhile exercise to analyze the i/o routines and try to make gmetad more efficient.
Gil ----- Original Message ---- From: Martin Knoblauch <[EMAIL PROTECTED]> To: Gilad Raphaelli <[EMAIL PROTECTED]>; ganglia-developers@lists.sourceforge.net Sent: Friday, April 14, 2006 8:19:36 PM Subject: Re: [Ganglia-developers] RE: [Ganglia-general] New (final?) tarball for ganglia-3.0.3 Gilad, the code seems not very clean to me. One would have to check whether it is more efficient to first stat the directory. Just to be sure: this also happens with 3.0.2 and before? Thanks Martin --- Gilad Raphaelli <[EMAIL PROTECTED]> wrote: > Bernard, > > The failed directories are the ones to hold the rrds for each > individual host like 'ganglia/grid/rrds/cluster/host/' and > 'ganglia/grid/rrds/cluster/__SummaryInfo__/' > > This seems normal based on rrd_helpers.c where: > > my_mkdir ( const char *dir ) > { > pthread_mutex_lock( &rrd_mutex ); > if ( mkdir ( dir, 0755 ) < 0 && errno != EEXIST) > { > pthread_mutex_unlock(&rrd_mutex); > err_sys("Unable to mkdir(%s)",dir); > } > pthread_mutex_unlock( &rrd_mutex ); > } > > I assume that this is more efficient then checking for directory > existence and then conditionally creating it. A smaller setup on the > same box also has the 'gmetad RET mkdir -1 errno 17 File exists' > in ktrace but not on scale where it is noticeable. > > Please let me know if you would like any additional information. > > Gil > ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers