[12083] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 7.6R: inc

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Wed May 25 13:35:57 1994

From: epeisach@MIT.EDU
Date: Wed, 25 May 1994 13:35:48 -0400
To: sybok@MIT.EDU
Cc: bugs@MIT.EDU
In-Reply-To: [12082]



>Size of mail messages displayed in console window is wrong, resulting in
>an out-of-memory error upon incorporation.  Specifically, the console
>stated, " You have 20 messages (41162 bytes) on PO7.MIT.EDU."  However,
>a check of my quota usage before and after incorporation revealed that it
>had jumped from 4443 to 4493, indicating that actually there were 50,000
>bytes of messages.  (This was in fact my second attempt at incorporation.)
>Earlier, when I tried this, I had a quota usage of 4451 and an error occurred 
>during incorporation.

If you are getting an out-of-memory then there is something else wrong.

As to your point about 41162 bytes which when incorporated took up 50K
(bigger than expected). If you were to incorporate your mail and put it
all in one file, I'm sure the size of the file would be about 41K. You
are neglecting that for every file you create, you must also allocate an
inode which takes up space.... I forget if the inode, which is a block
of data giving pointers to the other blocks in the file, is 512bytes or
1K (this is based on the size of the filesystem your data resides).

So, in your example, 20 files takes up say 10K, plue 40K of messages -
I'd say that is 50K - what you expected...

For an example of all this behind the scenes work, create an empty file
and notice that it takes up 1K (run quota, touch foo, quota again, ls -s
foo, and ls -l foo).... 

This is a little rambling, but I hope this answers your question....

BTW: Was the error "out of memory" or "over quota?"

	Ezra

home help back first fref pref prev next nref lref last post