linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* the idea for improving the performance of b-tree search
@ 2010-10-13  9:00 Miao Xie
  2010-10-13 11:24 ` Chris Mason
  2010-10-18  2:41 ` Shaohua Li
  0 siblings, 2 replies; 7+ messages in thread
From: Miao Xie @ 2010-10-13  9:00 UTC (permalink / raw)
  To: Chris Mason; +Cc: Linux Btrfs

Hi, Chris

When I investigated the performance problem of file creation/deletion, I found
btrfs spends lots of time in the b-tree search, so I consider whether we can use
the latest search result in the same transaction or not.

My idea follows:
we can add mask or time stamp into b-tree's node and leaf, then we know whether
the node/leaf is COWed by the other task. If not, we check if the node/leaf of
the latest search result contains the key that we want to search. By this way,
we can reuse the latest search result in the same transaction and reduce the CPU
time spent in the b-tree search.

Chris, how do you think about it?

Regards
Miao

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-18  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13  9:00 the idea for improving the performance of b-tree search Miao Xie
2010-10-13 11:24 ` Chris Mason
2010-10-13 15:22   ` David Nicol
2010-10-13 15:45     ` Chris Mason
2010-10-13 20:38       ` David Nicol
2010-10-18  2:41 ` Shaohua Li
2010-10-18  9:36   ` Miao Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).