Date: Fri, 18 Dec 2009 11:49:47 +0300 From: "Alexander Zagrebin" <alexz@visp.ru> To: <freebsd-current@freebsd.org> Subject: ZFS and UFS on the same box. Cache memory allocation issue. Message-ID: <398F182D4FC14D43A1CFD89C4D69817C@vosz.local>
next in thread | raw e-mail | index | archive | help
There is an interesting issue when UFS and ZFS filesystems coexists on the same box. ZFS and UFS independently allocates memory for its cache. Suppose we actively used UFS. UFS allocates almost all free memory for its cache. Its size can be indirectly evaluated with "inactive" memory size. Then we began to use ZFS. It seems that ZFS allocates memory for ARC _only_ from the "free" memory. But now there is almost no no "free" memory (UFS has eaten it). So ZFS operates very ineffectively due to very little ARC, which can be indirectly evaluated with "wired" memory size. To workaround this I've tried to run small program, that simply allocates, for example, 500MB of memory and frees it. As result UFS returns memory to "free" pool and ZFS can allocate it for ARC. It significantly increases ZFS performance. Is there an another workaround? -- Alexander Zagrebin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?398F182D4FC14D43A1CFD89C4D69817C>