login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
26
Re: [RFC v2][PATCH 7/9] Infrastructure for shared objects
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dave Hansen
Subject:
Re: [RFC v2][PATCH 7/9] Infrastructure for shared objects
Date: Tuesday, August 26, 2008 - 10:01 am
On Thu, 2008-08-21 at 12:40 +0200, Louis Rilling wrote:
quoted text
> > > +struct cr_objhash { > > + struct cr_obj **hash; > > + int next_tag; > > +}; > > + > > +#define CR_OBJHASH_NBITS 10 /* 10 bits = 1K buckets */ > > +#define CR_OBJHASH_ORDER 0 /* 1K buckets * 4 bytes/bucket = 1 > page */ > > Only true when PAGE_SIZE == 4K and in 32bits. Perhaps like below? > > #define CR_OBJHASH_BUCKET_NBITS (BITS_PER_LONG == 64 ? 3 : 2) > #define CR_MIN_OBJHASH_NBITS ((PAGE_SHIFT - CR_OBJHASH_BUCKET_NBITS) > #define CR_OBJHASH_NBITS (CR_MIN_OBJHASH_NBITS >= 10 ? > CR_MIN_OBJHASH_NBITS : 10) > #define CR_OBJHASH_ORDER (CR_OBJHASH_NBITS + CR_OBJHASH_BUCKET_NBITS - > PAGE_SHIFT)
Gah. Can't we just use the existing radix tree or hash implementations we already have? -- Dave --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC v2][PATCH 1/9] kernel based checkpoint-restart
, Oren Laadan
, (Wed Aug 20, 7:58 pm)
[RFC v2][PATCH 1/9] Create trivial sys_checkpoint/sys_rest ...
, Oren Laadan
, (Wed Aug 20, 8:03 pm)
[RFC v2][PATCH 2/9] General infrastructure for checkpoint ...
, Oren Laadan
, (Wed Aug 20, 8:04 pm)
[RFC v2][PATCH 3/9] x86 support for checkpoint/restart
, Oren Laadan
, (Wed Aug 20, 8:04 pm)
[RFC v2][PATCH 4/9] Memory management - dump state
, Oren Laadan
, (Wed Aug 20, 8:05 pm)
[RFC v2][PATCH 5/9] Memory managemnet - restore state
, Oren Laadan
, (Wed Aug 20, 8:05 pm)
[RFC v2][PATCH 6/9] Checkpoint/restart: initial documentation
, Oren Laadan
, (Wed Aug 20, 8:06 pm)
[RFC v2][PATCH 7/9] Infrastructure for shared objects
, Oren Laadan
, (Wed Aug 20, 8:06 pm)
[RFC v2][PATCH 8/9] File descriprtors - dump state
, Oren Laadan
, (Wed Aug 20, 8:07 pm)
[RFC v2][PATCH 9/9] File descriprtors (restore)
, Oren Laadan
, (Wed Aug 20, 8:07 pm)
Re: [RFC v2][PATCH 1/9] kernel based checkpoint-restart
, Oren Laadan
, (Wed Aug 20, 10:15 pm)
Re: [RFC v2][PATCH 1/9] Create trivial sys_checkpoint/sys_ ...
, Oren Laadan
, (Wed Aug 20, 10:17 pm)
Re: [RFC v2][PATCH 9/9] File descriprtors (restore)
, Oren Laadan
, (Wed Aug 20, 10:26 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Ingo Molnar
, (Thu Aug 21, 12:30 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Justin P. Mattock
, (Thu Aug 21, 1:01 am)
Re: [RFC v2][PATCH 2/9] General infrastructure for checkpo ...
, Louis Rilling
, (Thu Aug 21, 2:35 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Louis Rilling
, (Thu Aug 21, 2:53 am)
Re: [RFC v2][PATCH 5/9] Memory managemnet - restore state
, Louis Rilling
, (Thu Aug 21, 3:07 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Balbir Singh
, (Thu Aug 21, 3:28 am)
Re: [RFC v2][PATCH 7/9] Infrastructure for shared objects
, Louis Rilling
, (Thu Aug 21, 3:40 am)
Re: [RFC v2][PATCH 8/9] File descriprtors - dump state
, Louis Rilling
, (Thu Aug 21, 4:06 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Ingo Molnar
, (Thu Aug 21, 4:59 am)
Re: [RFC v2][PATCH 1/9] Create trivial sys_checkpoint/sys_ ...
, Dave Hansen
, (Fri Aug 22, 12:32 pm)
Re: [RFC v2][PATCH 2/9] General infrastructure for checkpo ...
, Dave Hansen
, (Fri Aug 22, 1:01 pm)
Re: [RFC v2][PATCH 1/9] Create trivial sys_checkpoint/sys_ ...
, Dave Hansen
, (Fri Aug 22, 1:11 pm)
Re: [RFC v2][PATCH 3/9] x86 support for checkpoint/restart
, Dave Hansen
, (Fri Aug 22, 1:17 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Dave Hansen
, (Fri Aug 22, 1:37 pm)
Re: [RFC v2][PATCH 1/9] Create trivial sys_checkpoint/sys_ ...
, Oren Laadan
, (Fri Aug 22, 2:20 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Oren Laadan
, (Fri Aug 22, 2:21 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Oren Laadan
, (Sat Aug 23, 10:40 pm)
Re: [RFC v2][PATCH 2/9] General infrastructure for checkpo ...
, Oren Laadan
, (Sat Aug 23, 10:58 pm)
Re: [RFC v2][PATCH 2/9] General infrastructure for checkpo ...
, Oren Laadan
, (Sun Aug 24, 7:47 pm)
Re: [RFC v2][PATCH 8/9] File descriprtors - dump state
, Oren Laadan
, (Sun Aug 24, 8:28 pm)
Re: [RFC v2][PATCH 8/9] File descriprtors - dump state
, Louis Rilling
, (Mon Aug 25, 3:30 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Dave Hansen
, (Tue Aug 26, 9:33 am)
Re: [RFC v2][PATCH 2/9] General infrastructure for checkpo ...
, Dave Hansen
, (Tue Aug 26, 9:42 am)
Re: [RFC v2][PATCH 7/9] Infrastructure for shared objects
, Dave Hansen
, (Tue Aug 26, 10:01 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Oren Laadan
, (Tue Aug 26, 5:14 pm)
Re: [RFC v2][PATCH 2/9] General infrastructure for checkpo ...
, Oren Laadan
, (Tue Aug 26, 5:38 pm)
Re: [RFC v2][PATCH 7/9] Infrastructure for shared objects
, Louis Rilling
, (Wed Aug 27, 1:26 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Dave Hansen
, (Wed Aug 27, 8:41 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Louis Rilling
, (Wed Aug 27, 8:57 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Dave Hansen
, (Wed Aug 27, 9:12 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Jeremy Fitzhardinge
, (Wed Aug 27, 9:19 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Serge E. Hallyn
, (Wed Aug 27, 1:34 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Dave Hansen
, (Wed Aug 27, 1:38 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Serge E. Hallyn
, (Wed Aug 27, 1:48 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Dave Hansen
, (Wed Aug 27, 1:56 pm)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Oren Laadan
, (Sun Aug 31, 12:16 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Cedric Le Goater
, (Sun Aug 31, 10:34 am)
Re: [RFC v2][PATCH 4/9] Memory management - dump state
, Serge E. Hallyn
, (Tue Sep 2, 8:32 am)
Re: [Devel] Re: [RFC v2][PATCH 4/9] Memory management - du ...
, Andrey Mirkin
, (Wed Sep 3, 4:43 am)
Re: [Devel] Re: [RFC v2][PATCH 4/9] Memory management - du ...
, Cedric Le Goater
, (Wed Sep 3, 5:15 am)
Re: [Devel] Re: [RFC v2][PATCH 4/9] Memory management - du ...
, Andrey Mirkin
, (Wed Sep 3, 6:29 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate