Re: 4.1 regression in resizable hashtable tests

From: Thomas Graf
Date: Thu Jul 02 2015 - 08:31:46 EST


On 07/01/15 at 01:21pm, Meelis Roos wrote:
> This is 4.1 on sparc64 - one of my boxes that happens to have most
> runtime test left on from some debugging effort. In 4.0 it was fine, 4.1
> gives this in dmesg:
>
> [ 31.898697] Running resizable hashtable tests...
> [ 31.898915] Adding 2048 keys
> [ 31.952911] Traversal complete: counted=17, nelems=2048, entries=2048
> [ 31.953004] Test failed: Total count mismatch ^^^
> [ 32.022676] Traversal complete: counted=17, nelems=2048, entries=2048
> [ 32.022788] Test failed: Total count mismatch ^^^
> [ 32.022828] Deleting 2048 keys

Thanks for the report. I think this is already fixed. Can you try with the
following commit:

commit 246b23a7695bd5a457aa51a36a948cce53d1d477
Author: Thomas Graf <tgraf@xxxxxxx>
Date: Thu Apr 30 22:37:44 2015 +0000

rhashtable-test: Use walker to test bucket statistics

As resizes may continue to run in the background, use walker to
ensure we see all entries. Also print the encountered number
of rehashes queued up while traversing.

This may lead to warnings due to entries being seen multiple
times. We consider them non-fatal.

Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/