| To: | Nathan Scott <nathans@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] Linux PMDA fd leak metric |
| From: | David Disseldorp <ddiss@xxxxxxx> |
| Date: | Mon, 25 Jul 2011 10:59:53 +0200 |
| Cc: | pcp@xxxxxxxxxxx |
| In-reply-to: | <701497997.156382.1311555145837.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <1311549243-10986-1-git-send-email-ddiss@xxxxxxx> <701497997.156382.1311555145837.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxx> |
On Mon, 25 Jul 2011 10:52:25 +1000 (EST) Nathan Scott <nathans@xxxxxxxxxx> wrote: > Awesome - thanks David. Couple minor suggestions - would the name > "proc.fd.count" be slightly clearer? Also, with the readdir loop Yes, agreed. > (where cpu time is proportional to number of dirents, which in the > case of some java apps I've come across, will often number in the > thousands) - it might be quicker to remove the if-symlink branch in > there, and instead just always bump the counter. Then subtract two > at the end of the loop, to remove the current and parent entries. Thanks for the feedback Nathan, I'll make both of these changes and resend. Cheers, David |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] Linux PMDA fd leak metric, Nathan Scott |
|---|---|
| Next by Date: | Linux PMDA fd count metric, David Disseldorp |
| Previous by Thread: | Re: [pcp] Linux PMDA fd leak metric, Nathan Scott |
| Next by Thread: | [pcp-announce] pcp-3.5.6 released, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |