[PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Prasad Joshi
QCOW uses two tables level1 (L1) table and level2 (L2) table. The L1 table points to offset of L2 table. When a QCOW image is probed, the L1 table is cached in the memory to avoid reading it from disk on every reference. This caching imporves the performance. The similar performance improvment can

Re: [PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Pekka Enberg
On Wed, May 18, 2011 at 1:17 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: QCOW uses two tables level1 (L1) table and level2 (L2) table. The L1 table points to offset of L2 table. When a QCOW image is probed, the L1 table is cached in the memory to avoid reading it from disk on every

Re: [PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Prasad Joshi
On Wed, May 18, 2011 at 11:27 AM, Pekka Enberg penb...@kernel.org wrote: On Wed, May 18, 2011 at 1:17 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: QCOW uses two tables level1 (L1) table and level2 (L2) table. The L1 table points to offset of L2 table. When a QCOW image is probed, the L1

Re: [PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Ingo Molnar
* Pekka Enberg penb...@kernel.org wrote: On Wed, May 18, 2011 at 1:17 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: QCOW uses two tables level1 (L1) table and level2 (L2) table. The L1 table points to offset of L2 table. When a QCOW image is probed, the L1 table is cached in the

Re: [PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Pekka Enberg
On Wed, May 18, 2011 at 1:41 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: On Wed, May 18, 2011 at 11:27 AM, Pekka Enberg penb...@kernel.org wrote: On Wed, May 18, 2011 at 1:17 PM, Prasad Joshi prasadjoshi...@gmail.com wrote: QCOW uses two tables level1 (L1) table and level2 (L2) table.

Re: [PATCH v1 3/3] kvm tools: Add QCOW level2 caching support

2011-05-18 Thread Sasha Levin
On Wed, 2011-05-18 at 11:17 +0100, Prasad Joshi wrote: QCOW uses two tables level1 (L1) table and level2 (L2) table. The L1 table points to offset of L2 table. When a QCOW image is probed, the L1 table is cached in the memory to avoid reading it from disk on every reference. This caching