Date: Wed, 8 Aug 2007 07:43:00 -0700 (PDT) From: James Morris To: Yuichi Nakamura cc: Stephen Smalley , selinux@tycho.nsa.gov, busybox@kaigai.gr.jp, Eric Paris , kaigai@ak.jp.nec.com, method@manicmethod.com Subject: Re: Appropriate number of hash slots for te_avtab(Was:Re: [RFC] Dynamically deciding number of hash slots for avtab In-Reply-To: <20070808150021.C617.YNAKAM@hitachisoft.jp> Message-ID: References: <20070807175824.4CBF.YNAKAM@hitachisoft.jp> <1186490009.26457.10.camel@moss-spartans.epoch.ncsc.mil> <20070808150021.C617.YNAKAM@hitachisoft.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Wed, 8 Aug 2007, Yuichi Nakamura wrote: > * Number of slot = num of rules/2 > SELinux:4096 avtab hash slots allocated. Num of rules:8188 > - default > rules: 8188 entries and 2809/4096 buckets used, longest chain length 21 > - jhash > rules: 8188 entries and 3466/4096 buckets used, longest chain length 9 This looks pretty good. What is the performance overhead of jhash vs. the existing hash? (You could probably make a kernel module which calls the avc in a loop with some repeatable sequence of paramters). -- James Morris -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.