[p4] Disk allocation over time
Matt Janulewicz <matt.janulewicz <at> lucasfilm.com>
2009-09-08 20:28:06 GMT
I'm trying to determine, after the fact, the disk allocation of certain
projects over time (monthly for the past two years.) One of our groups
wants to trend their disk usage and try to predict what they'll need
over the next year.
Getting the current size of the physical disk allocation is easy enough.
It's a Windows server and right clicking on a folder and getting the
properties is no sweat. However, getting older data from Perforce seems
to be difficult, or at least not the data that I want.
I'm aware of 'p4 sizes' and the -s and -z switches but I believe that
this gives me the expanded, un-compressed sizes of the files once they
are synced locally. What I need is a rough idea of how much space these
archives took up on the server at certain times in the past. I'm aware
of how lazy copies can affect this calculation and I'm not looking to be
100% accurate, but I want to be more accurate than 'p4 sizes' because a
lot of our stuff can be, and is, compressed quite nicely on the server.
As an example, I have a certain tree that is taking up roughly 821 GB of
physical space on the server. When I report on it with 'p4 sizes -z -a'
it returns that it is taking up over 1400 GB, which seems like a
reasonable compression ratio. But is there a way to get that 821 GB
figure directly out of Perforce? Or should I assume a relatively
consistent compression ratio and extrapolate from there?
How have others tackled this question?
perforce-user mailing list - perforce-user <at> perforce.com