Date: Sun, 03 Mar 2002 21:41:18 +0900 From: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: Terry Lambert <tlambert2@mindspring.com>, Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>, arch@FreeBSD.ORG Subject: Re: reclaiming v_data of free vnodes Message-ID: <200203031242.g23CfIfu059069@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> In-Reply-To: <200202260923.g1Q9NkVh093544@rina.r.dl.itc.u-tokyo.ac.jp> References: <200202231556.g1NFu9N9040749@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> <200202242041.g1OKfXt95731@apollo.backplane.com> <200202250325.g1P3PVN9092431@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> <200202250444.g1P4i8X29005@apollo.backplane.com> <200202251437.g1PEb12R001419@bunko> <3C7A5D24.E11A6693@mindspring.com> <200202251754.g1PHsTs50126@apollo.backplane.com> <200202260923.g1Q9NkVh093544@rina.r.dl.itc.u-tokyo.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Attached is the patch to use the zone allocator for in-core inodes.
On Tue, 26 Feb 2002 18:23:45 +0900,
Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> said:
Seigo> AFAIK, all of ffs, ifs and ext2fs utilize struct inode and
Seigo> dinode. They deal with the filesystem-specific data by a union. All of
Seigo> the filesystems should thus be able to share a single zone.
However, the usage of a few of the members (eg i_spare) depends on the
filesystem. So I actually gave a distinct zone for each of ffs, ifs
and ext2fs. This also gives the better modularity of the filesystem
than a single zone.
The patch includes the following optimization to the initialization of
a new in-core inode as well:
- Do not clear the members filled in *_vget().
- Since NODQUOT is defined as NULL, clear i_dquot only in
ufs_reclaim().
Finally, the result of vmstat -mz on cvsup.jp.FreeBSD.org follows the
patch. At that time, the host was up for a few hours, during which I
took du(1) over the whole cvsup tree.
[-- Attachment #2 --]
<<is8_NW$KuǤS{ƻ;bQ"hcBlJl{ RDĻD xzIxydF·-2WNTz]
`v2l:Nec Ϭ7Sc{0]zK=qu~MlZw?}S˫':[qb}E[5uYc]e`Ňwtk^x;DO-I/'%`mB˭C9д\_UjjhRԸI8Nd4=EZ2=F#](LT#[o>I"RhLy=A;Pd$7d䨒&"זFHCo' KP%m+UrMT1ϔ"̘SWQpVW;U^'m i "O2$}yk̳7kLݒU2j [5F4"4:e].gl
ռqU"nEq,bA{}ʲ'=<zv"Ne}?Ay ôPʨ!Yv#V, kl^
nba>as
Hsi^TlЄE]IQH Qcm8ZbgjϢhF-GӇH;$A5TU#;&۸I&5$T]-B%$ Ad]ɑB}ѭE^ꪚ|CfjᮭBƆl88N}
LvҗI}_{.h`hBXm(M-iJ-;f]4>e6"O {n B7}Iཞ_ggg2edy2Qz#Bbt֩NX63
+%M&ёB,hhJ%ؒ1ۇ.{a:~qyW?&j-,MM58hÎ{?%Km| V5QyyY}c)&