Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > weighted average summary of file size + age

Thread Tools

weighted average summary of file size + age

Bil Kleb
Posts: n/a

Do any system admins have a utility lying around to
compute some sort of weighted average summary of
file size and age?

Our cluster home space needs some cleaning and I suspect
some of the files folks are keeping on there are quite old
and would like to drive the point home with more than
just a `du -h /users/*` listing.

So something like,

User Usage <Age> Hog score

kleb 102GB 195 19.9GB-Kdays
frank 56GB 32 1.8GB-Kdays
hamly 354GB 454 160.7GB-Kdays

where <Age> is the average age in days, something like,

sum( file.size * file.age ) / ( total_size * total_age )

and Hog Score is Usage x <Age> in GB-kilodays.

Bil Kleb
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
weighted mean; weighted standard error of the mean (sem) C Barrington-Leigh Python 1 09-10-2010 02:03 AM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
Need To Find average response time and response Size Meena Lalwani ASP .Net 1 08-31-2005 11:37 AM
Weighted Fair-Queuing Martin Bilgrav Cisco 8 11-03-2003 09:08 PM
Can cout do like printf("Name: %s, Age: %d\n",name,age)? cylin C++ 6 08-19-2003 09:03 PM