View Single Post
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#20
Originally Posted by peterleinchen View Post
But you can not rely at all on that info for swap defrag!
It just shows the amount of used swap. This will be something from a few MB up to a few 100MB.
But it will not show the already written amount on that swap space. This info can be fetched via iostat (withh bb-power) or more sophisticated with following script (rely on the number of bytes, please):
I did realise that but I didn't want to depend on bbpower.
I didn't want to force people to have install dependenices for this to work.
However I like the look of your script (I didn't think of using diskatats) maybe I can re-jig it about to me more useful.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.