[EMAIL PROTECTED] wrote:
> 
>> swap                 14919240    1104 14918136     1%    /etc/svc/vol=
>> atile
>> swap                 15365960  447832 14918128     3%    /tmp
>> swap                 14918208      80 14918128     1%    /var/run
>>
>> What we are seeing here is that df reports different sizes for swap, =
>> which actually cannot be, can it?
> 
> No; it reports "free swap" (well, not really) and the creates the
> "size" field from "free swap + memory used for this filesystem.
> 
> 
>> OK, this is a limitation of statvfs. But OTOH shouldn't be the conten=
>> ts of /tmp, /var/run, etc. accounted in total against swap. I.e. woul=
>> dn't it make more sense to show the same usage for all those mount po=
>> ints, which effectively mount the same "device"?
> 
> 
> Why?  It seems that you are suggesting to remove the only useful
> number from this display, "blocks in use"?
> 

Somehow you are right. But "blocks in use" accounts against "swap", and
swap is used by all those mount points.

Finally, what is most important to me, the first number (i.e. swap
total) looks broken to me, as a result of the way statvfs reports
avail/inuse for tmpfs...

Tom
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to