Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 18 Sep 2015 19:07:40 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: bitmap & hash table prefetching

On 2015-09-18 16:50, Solar Designer wrote:
> On Thu, Sep 17, 2015 at 07:09:30PM +0300, Solar Designer wrote:
>> FWIW, the patch that I posted, which works best for me and which is
>> now committed, prefetches only bitmap elements and then hash table
>> elements for which the bitmap indicates a hit.  It does not prefetch
>> "struct db_password *pw" (from which we're using the "binary" and
>> "next_hash" fields), nor pw->binary (I mean the actual binary here,
>> whereas the "binary" field is just a pointer).
>
> The attached patch does that, and it assumes that "binary" itself is
> allocated right after the tiny struct, so doesn't need to be prefetched
> separately.  This should be suitable for commit now.

Committed now.

magnum

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.