login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
June
»
4
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Davide Libenzi
Subject:
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
Date: Monday, June 4, 2007 - 6:33 am
On Mon, 4 Jun 2007, Eric Dumazet wrote:
quoted text
> Bitmaps are already there, you didnt zap them. > > Your proposal is going to double size taken by file table, since you need two long words > per file instead of one pointer. > > You add conditional branches on very hot spots. > > When you open/close a file, you need to access previous and next cells, so you need 3 cache lines, exactly like > current *legacy* code. (one for file pointer, one on each bitmap flags(open/close_on_exec) ) > > O(1) lookup doesnt imply it needs to be super-fast. You make a confusion about this. > > O(128) is still O(1) for instance. Having to search a bit in a PAGE is a sensible compromise, if we dont add overhead > on each fget() calls. > > Instead of adding complexity and a pile of new bugs (see how long it takes to bring RCU on files to a stable state), we can take a safe path. Then if it happens to still be a problem, we can consider the painfull way. > > I probably can code a < 100 lines patch, later this evening after my day job.
fdmap.c is 300 lines of code, w/out comments. You're trying to fit the wrong structure. It is *that* simple. - Davide -
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:
[patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Sat Jun 2, 3:59 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Sun Jun 3, 2:19 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Sun Jun 3, 3:51 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Andrew Morton
, (Sun Jun 3, 11:08 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Ingo Molnar
, (Mon Jun 4, 1:05 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Ingo Molnar
, (Mon Jun 4, 1:09 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Andrew Morton
, (Mon Jun 4, 1:34 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Ingo Molnar
, (Mon Jun 4, 1:42 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Andrew Morton
, (Mon Jun 4, 1:47 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Mon Jun 4, 3:28 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 5:55 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 6:05 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Mon Jun 4, 6:25 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 6:30 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 6:33 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 6:35 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Ingo Molnar
, (Mon Jun 4, 7:12 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Mon Jun 4, 7:27 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Mon Jun 4, 7:28 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 7:53 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Andrew Morton
, (Mon Jun 4, 9:56 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Davide Libenzi
, (Mon Jun 4, 10:57 am)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Ingo Molnar
, (Tue Jun 5, 1:37 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Thomas Gleixner
, (Tue Jun 5, 1:50 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Tue Jun 5, 1:57 pm)
Re: [patch 1/2] ufd v1 - unsequential O(1) fdmap core
, Eric Dumazet
, (Tue Jun 5, 3:29 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash
git-commits-head
:
Linux Kernel Mailing List
md: move allocation of ->queue from mddev_find to md_probe
Linux Kernel Mailing List
md: raid0: Represent zone->zone_offset in secto