On 02/17/2015 06:08 PM, John Andersen wrote:
On 02/17/2015 02:43 PM, auxsvr@gmail.com wrote:
On Tuesday 17 of February 2015 14:35:27 Anton Aylward wrote:
What I'm wondering is this: If I know the overall characteristics of the files in the file system can I set the ratios sensibly?
Or, to ask this another way, is there a utility that will walk though a file system and tell me things like average file size as well as, perhaps, graph the curve of sizes, and recommend the best setting for a ext4FS?
About the statistics of file sizes, you could run:
as.numeric(system("find DIR -type f -printf '%s\n'", intern=T)) -> fs_sizes barplot(table(cut(fs_sizes, breaks=c(0,2^(1:ceiling(log2(max(fs_sizes))))) )))
in R (package R-base), to display a bar plot.
This is essentially the same answer as the one I had given you 5 years ago.
Hmmmmm,
as.numeric(system("find DIR -type f -printf '%s\n'", intern=T)) -> fs_sizes barplot(table(cut(fs_sizes, breaks=c(0,2^(1:ceiling(log2(max(fs_sizes))))) ))) Error: unexpected symbol in "as.numeric(system("find DIR -type f -printf '%s\n'", intern=T)) -> fs_sizes barplot"
Maybe that's why he's asking again?
Maybe I can handle, and debug, in a script language I know like Perl, awk, Ruby or something like that. Five years? What's the URL? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org