Nick Piggin a écrit :Well, if a kmem_cache_create() is used, this is probably because number of objects can be large, so kmalloc() power-of-two granularity could waste lot of ram. But yes, you are right that SLAB_SMP_ALIGN doesnt imply SLAB_HWCACHE_ALIGN - SMP_ALIGN is a hint about false sharing (when object contains a refcnt for example), that is a concern only if num_possible_cpus() > 1 While HWCACHE_ALIGN might be a hint saying : - The writer carefully designed the structure so that max performance is obtained when all objects starts on a cache line boundary, even on Uniprocessor. But I suspect some uses of HWCACHE_ALIGN are not a hint but a strong requirement. Maybe we need to use three flags to separate the meanings ? SLAB_HINT_SMP_ALIGN SLAB_HINT_HWCACHE_ALIGN SLAB_HWCACHE_ALIGN /* strong requirement that two objects dont share a cache line */ --
| Con Kolivas | Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Steven Rostedt | Major regression on hackbench with SLUB |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Junio C Hamano | [0/4] What's not in 1.5.2 (overview) |
| Jan Hudec | Smart fetch via HTTP? |
| Peter Oberndorfer | Re: [StGIT PATCH] Don't use patches/<branch>/current |
| Nicolas Pitre | Re: git-index-pack really does suck.. |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Reyk Floeter | Re: hoststated(8): DNS Relay uses unexpected source IP address |
| Mark Zimmerman | Re: Samba(SMB) or Netatalk(AFP)? |
| Anselm R. Garbe | OpenBSD 4.0 / Xorg -> vesa 1920x1200 widescreen resolution |
| hh | Hardware compatibility list |
| Doug Evans | Re: Stabilizing Linux |
| Linus Benedict Torvalds | More answers |
| Dave `geek' Gymer | WARNING (was Re: New afio release) |
