About this list Date view Thread view Subject view Author view Attachment view

From: Dan Winfield (dan_at_knownfuture.com)
Date: Mon 23 Feb 2004 - 14:47:13 GMT


Herbert,

> > How do you measure the benefit, would du <vserver> do the job?
>
> find /vservers/<name> -xdev ! -links 1 -printf "%s\n" \
> | gawk '{ sum+=$1 } END { print sum }'
>
> will give you an estimate of the number of 'shared' bytes,
> where local hardlinks are accounted too ...
>
> find /vservers/<name> -xdev -links 1 -printf "%s\n" \
> | gawk '{ sum+=$1 } END { print sum }'
>

Thanks. The vunify does make a big difference.

For reference:

BEFORE

duel:/vservers# find /vservers/testunify -xdev ! -links 1 -printf "%s\n"
| gawk '{ sum+=$1 } END { print sum }'
5322908
duel:/vservers# find /vservers/testunify -xdev -links 1 -printf "%s\n" |
gawk '{ sum+=$1 } END { print sum }'
77188556

AFTER

duel:/vservers# find /vservers/testunify -xdev ! -links 1 -printf "%s\n"
| gawk '{ sum+=$1 } END { print sum }'
65570531
duel:/vservers# find /vservers/testunify -xdev -links 1 -printf "%s\n" |
gawk '{ sum+=$1 } END { print sum }'
16940933

All the best

Dan

_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 23 Feb 2004 - 14:53:44 GMT by hypermail 2.1.3