DrKK
FreeNAS Generalissimo
- Joined
- Oct 15, 2013
- Messages
- 3,630
So, I'm in the netherland of FreeBSD knowledge which makes me about 100x smarter than a noob, and about 100x dumber than a sensei.
So I am hoping Dusan or Jordan can tell me something about this.
I decided to make a ZFS dataset in which my jails would be stored, and I decided to compress (using Limpel-Ziv or whatever the 'recommended' is) the dataset, since it's a portsjail, and I'll be doing a lot of (what I assume is) compressible stuff. Now, whether or not that's a logical idea (i'm sure it's not, and one of you will chastise me), I still notice something interesting.
The jails dataset (currently containing just one portjail) appears to have 2.9GB of files in it, as:
But then when I look at the COMPRESSED size:
What the hell? Why is it *BIGGER*? "OK", I think to myself, I must have the -A "apparent size" flag backwards in my head. So I do a sanity check on my presently 192kB long nginx-access.log file:
WHOOPS! Guess not, looks like I *DO* get the compressed-actual-on-disk size when I do *NOT* use the -A flag, as I thought originally, and I get the actually decompressed size WITH the -A flag. As I thought! what the hell is going on?
So, this means, my "compressed jails" are taking up *FAR* more room than the constituent sizes of the files, *OR*, I am stupid about something in FreeBSD, and I need to be enlightened, if one of your guys would kindly do so?
Thanks.
So I am hoping Dusan or Jordan can tell me something about this.
I decided to make a ZFS dataset in which my jails would be stored, and I decided to compress (using Limpel-Ziv or whatever the 'recommended' is) the dataset, since it's a portsjail, and I'll be doing a lot of (what I assume is) compressible stuff. Now, whether or not that's a logical idea (i'm sure it's not, and one of you will chastise me), I still notice something interesting.
The jails dataset (currently containing just one portjail) appears to have 2.9GB of files in it, as:
Code:
[root@freenas] /mnt/drkk# du -Ahs jails 2.9G jails
But then when I look at the COMPRESSED size:
Code:
[root@freenas] /mnt/drkk# du -hs jails 4.1G jails
What the hell? Why is it *BIGGER*? "OK", I think to myself, I must have the -A "apparent size" flag backwards in my head. So I do a sanity check on my presently 192kB long nginx-access.log file:
Code:
[root@freenas] /mnt/drkk/syslog/log# du -hs nginx-access.log 27k nginx-access.log [root@freenas] /mnt/drkk/syslog/log# du -Ahs nginx-access.log 193k nginx-access.log
WHOOPS! Guess not, looks like I *DO* get the compressed-actual-on-disk size when I do *NOT* use the -A flag, as I thought originally, and I get the actually decompressed size WITH the -A flag. As I thought! what the hell is going on?
So, this means, my "compressed jails" are taking up *FAR* more room than the constituent sizes of the files, *OR*, I am stupid about something in FreeBSD, and I need to be enlightened, if one of your guys would kindly do so?
Thanks.