All of lore.kernel.org
 help / color / mirror / Atom feed
* block level cow operation
@ 2013-04-03 10:28 Prashant Shah
  2013-04-09  9:05 ` Fwd: " Prashant Shah
  0 siblings, 1 reply; 7+ messages in thread
From: Prashant Shah @ 2013-04-03 10:28 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I am trying to implement copy on write operation by reading the original
disk block and writing it to some other location and then allowing the
write to pass though (block the write operation till the read completes) I
tried using submit_bio() / sb_bread() to read the block and using the
completion API to signal the end of reading the block but the performance
of this is very bad. It takes around 12 times more time for any disk
writes. Is there any better way to improve the performance ?

Not waiting for the completion of the read operation and letting the disk
write go through gives good performance but under 10% of the cases the read
happens after the write and ends up the the new data and not the original
data.

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130403/b57e3f0d/attachment.html 

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

end of thread, other threads:[~2013-05-10 13:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 10:28 block level cow operation Prashant Shah
2013-04-09  9:05 ` Fwd: " Prashant Shah
2013-04-09  9:56   ` Lukáš Czerner
2013-04-09 14:46   ` Dmitry Monakhov
2013-04-25 13:00     ` Prashant Shah
2013-05-10 13:14       ` Prashant Shah
2013-04-09 21:02   ` Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.