|To:||"H. Peter Anvin" <email@example.com>|
|Subject:||Re: [PATCH RFC 1/5] scripts: Add sortextable to sort the kernel's exception table.|
|From:||David Daney <firstname.lastname@example.org>|
|Date:||Mon, 21 Nov 2011 10:51:06 -0800|
|Cc:||email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, David Daney <email@example.com>|
|Dkim-signature:||v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jP3CX7Qf5LRpsJGnNuHq5GZQGccUwdaQeF183TbvFUc=; b=q/BHGRQXkfe3kLc6NC/Jm8sygtI63KHKhnyO4UirIUjrB2DSJac2ShstNOvwTnLvkw xqWJc08X+kN8kKtvzuutTHE+3WRa+R26zaC+cwyaMeFGm2/6LzI4q7emgwDwYVN1YJ2i Qd5j7U1yxfN/KCt4ljrMHk/qFC0P4f74hQBPI=|
|References:||<firstname.lastname@example.org> <email@example.com> <4EC98C97.firstname.lastname@example.org>|
|User-agent:||Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:188.8.131.52) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10|
On 11/20/2011 03:26 PM, H. Peter Anvin wrote:
On 11/18/2011 11:37 AM, David Daney wrote:From: David Daney<email@example.com> Using this build-time sort saves time booting as we don't have to burn cycles sorting the exception table.If we're going to do this at build time, I would suggest using a collisionless hash instead. The lookup time for those are O(1), but they definitely need to be done at build time.
It is my understanding that such a hash table would be sparsely populated, so space would have to be reserved for the empty buckets. The current patch, which works in-place on the fully linked vmlinux, doesn't have to worry about finding enough space for the table.
If we were to do the collisionless hash, we would somehow have to reserve space for the empty buckets.
On my test kernel, there were only 1453 entries in the exception table, So doing the binary search takes a maximum of 11 loads.
So, I guess I am not strongly opposed to using a collisionless hash, but I think it may not be worth the extra effort.
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Re: [PATCH RFC 1/5] scripts: Add sortextable to sort the kernel's exception table., Mike Frysinger|
|Next by Date:||Re: [PATCH RFC 1/5] scripts: Add sortextable to sort the kernel's exception table., David Daney|
|Previous by Thread:||Re: [PATCH RFC 1/5] scripts: Add sortextable to sort the kernel's exception table., H. Peter Anvin|
|Next by Thread:||[PATCH RFC 4/5] MIPS: Select BUILDTIME_EXTABLE_SORT, David Daney|
|Indexes:||[Date] [Thread] [Top] [All Lists]|