lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1298988556.2030.4.camel@castor.rsk>
Date:	Tue, 01 Mar 2011 14:09:16 +0000
From:	Richard Kennedy <richard@....demon.co.uk>
To:	David Airlie <airlied@...ux.ie>
Cc:	lkml <linux-kernel@...r.kernel.org>,
	dri-devel@...ts.freedesktop.org
Subject: [PATCH] drm: reorder drm_open_hash to remove padding on 64 bit
 builds

Remove 8 bytes of padding on 64 bit builds to reduce the size of
drm_open_hash to 24 bytes, which also shrinks drm_object_file by 24
bytes (136 -> 112) allowing it to fit in one fewer cache lines and a
smaller slab.

Signed-off-by: Richard Kennedy <richard@....demon.co.uk>
---
patch against v2.6.38-rc6
compiled & tested on x86_64 with nouveau.

regards
Richard



diff --git a/include/drm/drm_hashtab.h b/include/drm/drm_hashtab.h
index 0af087a..ff2ab48 100644
--- a/include/drm/drm_hashtab.h
+++ b/include/drm/drm_hashtab.h
@@ -48,8 +48,8 @@ struct drm_open_hash {
 	unsigned int size;
 	unsigned int order;
 	unsigned int fill;
-	struct hlist_head *table;
 	int use_vmalloc;
+	struct hlist_head *table;
 };
 
 


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ