Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Someone I know just made the following statement:

"I have 140.7 TB worth of files on my system"

Someone else said something along the lines of "how?" and the response was:

"Virtual RAM, Ubuntu has its quirks. /proc/core file"

I don't know much about Linux and wondered if someone could explain what the above is all about. I don't get how anyone could have 140.7 TB worth of anything, unless they have a very large number of hard disks.

share|improve this question
3  
What appears to be a file is not necessarily a file on the hard disk. And files' logical size isn't always the same as their physical size (i.e. storage required). –  Daniel Beck Oct 23 '11 at 21:02
add comment

closed as not constructive by Linker3000, Mokubai, 8088, techie007, Mehper C. Palavuzlar Oct 24 '11 at 6:56

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers

up vote 12 down vote accepted

You will get really strange numbers if you run disk usage utilities on virtual filesystems such as /proc or /sys and if they count "apparent" (sparse) size, not the actual disk usage.

For example, on my system, du -bhs /proc will report 128 TB, even though it occupies nothing – it is just a view into the kernel.

share|improve this answer
add comment

No, that's not why. Sparse files appear a certain size because the file header lists it, but they contain far less data.

share|improve this answer
5  
And amazing things happen when you try to back up sparse files with a backup program that doesn't understand them. Learned that on Xenix. –  Fiasco Labs Oct 23 '11 at 21:49
add comment

One way could be that they have a large number of compressed files and are counting the size they would be when uncompressed.

Obviously this would depend on the type of file as some files compress further than others (e.g. text files) and others can't be compressed further (e.g. jpg, mp3) without losing data, but theoretically this could give the numbers your friend quotes.

share|improve this answer
2  
Sure, if you had about 20TB of storage. –  Ignacio Vazquez-Abrams Oct 23 '11 at 20:35
    
@IgnacioVazquez-Abrams - I'm not saying it's likely, just possible. –  ChrisF Oct 23 '11 at 21:00
    
@IgnacioVazquez-Abrams: That's just ten 2TB disks. –  grawity Oct 23 '11 at 21:16
2  
@grawity - full of text... –  ysap Oct 23 '11 at 21:27
    
@ysap full of COMPRESSED text. –  SplinterReality Oct 24 '11 at 5:39
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.