You sure about that? It's rather interesting that you think an 'idle' system doesn't do anything.Nothing is loaded
You sure about that? It's rather interesting that you think an 'idle' system doesn't do anything.Nothing is loaded
It's just a fresh install, nope not sure, again I haven't looked into it, perhaps when I have time I may do that. I would have an expectation that idle, is generally idle out of the box, I'm happy with 100mb footprint. Again arc increased along with general memory footprint without releasing over a long period of time. As someone suggested perhaps a cron job and a database etc...You sure about that? It's rather interesting that you think an 'idle' system doesn't do anything.
To make ZFS perform reasonably well, it caches aggressively. (Unused memory is “wasted” memory, by one way of thinking.)I've watched my memory grow from a 100mb to 160 mb sitting idle. Nothing is loaded, fresh install , no debug ... I haven't looked into it, but I've also watched arc grow as well.
Yes, the ARC seems to cache very aggressive and manage that memory very well - It will free memory from the arc as required to from what I understand. I think I'm ok with the ARC using memory as required, file system cache in memory is a pretty good use of memory imo - especially treated seperate. I'm trying to figure out why regular memory is being sucked up in conjunction with ARC after the install and not release. Will figure it out.To make ZFS perform reasonably well, it caches aggressively. (Unused memory is “wasted” memory, by one way of thinking.)
Disabling compression will only make it need more memory to achieve the same level of caching.
LZ4 compression is absurdly fast compared to gzip/bzip algorithms you may be more familiar with.
The only time I’ve seen any benefit from disabling compression on ZFS was on a dataset used for broadcast video capture with multiple concurrent streams. ZFS would end up not compressing (the MPEG streams aren’t good candidates for further compression, unsurprisingly) anyway so it was just wasted cycles trying (and then aborting) compression, and given the time sensitive nature with a continual stream of new data to save, this ended up being noticeable.
I thought ARC was separate from wired or perhaps I was reading top wrong, I'm guessing ZFS is tightly integrated into FreeBSD say compared to linux distro's that have ZFS ... Do you see any reason boot-up files would need to be cached and or go through that process? I'll have a look sometime at that - I'm guessing my extra memory addition came from the cron job that someone previously pointed out for the locate.db ; maybe I'll take a look later tonight.ARC releases its contents either when there is not enough room in ARC for something it sees as a better fit, or when there is not enough room in RAM for other outside requests. The cache does not release just because an amount of time has passed. I believe that is still the case for UFS's caching too. ARC is not separate from the other categories above it and still registers as part of wired if I recall. UFS's cache registers outside those. If the memory is not needed elsewhere, the file cache is kept around until that changes which is where the 'free memory is wasted memory' is referenced to; cache is a tool to do something while free memory waiting to become a tool. It is the same as closing then reopening a program happens faster because the previous program is in memory if the memory wasn't needed elsewhere so is faster than getting it from disk.
Yes, I do perceive that as problematic. I'm now really impressed with the UFS footprint along with the idle expectation - awesome work btwOkay, what you percive as a problem, are you sure it is one? People have explained things. Did you, for example, use a stopwatch to find out how long it takes the two instances to boot up? To do some basic things, like buildkernel? Then we could discuss matters over some facts.
It's definitely heavyweight that's for sure, a powerhouse of a filesystem ... Just comparing Apples to Apples - UFS boot / memory footprint / idle no growth vs ZFS boot / memory footprint / idle with memory growth over short period;My hunch is that ZFS itself is heavyweight and if the machine has difficulty coping then compression or not doesn't make much more of a difference.
It's definitely is a no brainer in terms of wanting to use ZFS. 60MB to 160MB of wired ram, I would not consider negligable - relative from one to the other ... ZFS is now available on a bunch of OS's, I'm specifically refering to FreeBSD use of ZFS though not ZFS.Again, unused RAM is wasted (could have the cache of any previously read data, which might prove useful) RAM. Why do you want your filesystem to be so svelte and not make use of the RAM you’ve got? (Especially if it gets out of the way when the RAM is needed for something else, but that’s a somewhat separate discussion.)
There are tons of other benefits from ZFS (boot environments, snapshots, checksums, send/recv) that (for me, at least) make it a no-brainer.
It's definitely heavyweight that's for sure, a powerhouse of a filesystem ... Just comparing Apples to Apples - UFS boot / memory footprint / idle no growth vs ZFS boot / memory footprint / idle with memory growth over short period;
Not sure which one boots faster ... ZFS has that seperate stats package that could answer a lot of questions for the above I assume - zfs-stats.
I never mentioned my system specs, I would expect the same results regardless of whatever system it's on.true - ZFS makes *heavy* use of memory to improve its performance by various methods of caching. but why not if it is available (and cheap)?
However, if 160MB of used memory are already concerningly much on your system you shouldn't use ZFS at all - and maybe even switch to some (heavily) trimmed-down custom built kernel/OS or a minimalistic variant/build of NetBSD...
I was thinking along the same lines - perhaps the argument would be to increase compression as to reduce disk footprint along with memory footprint (set highest compression in memory), if say speed isn't the primary factor, but perhaps memory usage plays a larger role in matching UFS without too many changes. Something like that could be ideal, if the cache hit ratio is generally 1 to 1. Anyways - neat stuffWith compression on ZFS will be a lot faster for compressible things like the base OS.