Thoughts on removing the remap cache
Hi Fujita,
I've been very pleased with the removal of the remap caching from dm-userspace because performance seems to be good and complexity is lower.
However, all of my tests up until now have been with dbench. I think that dbench works well in cases where latency is high, which is of course the case since we're sending all requests to userspace. When I try to boot a Xen domU with root on dm-userspace (without the caching), it is *painfully* slow. I assume this is because the domU boot is doing a lot of synchronous, sequential operations.
Since domU performance was good when I was caching mappings in the kernel, I would assume that the difference in performance is related to the caching.
What do you think?
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
From: Dan Smith <[email protected]>
Subject: [dm-devel] Thoughts on removing the remap cache
Date: Fri, 29 Sep 2006 14:36:58 -0700
Quoted 10 lines
However, all of my tests up until now have been with dbench. I think that dbench works well in cases where latency is high, which is of course the case since we're sending all requests to userspace. When I try to boot a Xen domU with root on dm-userspace (without the caching), it is *painfully* slow. I assume this is because the domU boot is doing a lot of synchronous, sequential operations.
Since domU performance was good when I was caching mappings in the kernel, I would assume that the difference in performance is related to the caching.
I guess that dbench generates relatively large size I/Os than common workloads, which is more sensitive to latency.
Seems that Xen camp is pretty happy with blktap. So dm-userspace should be ok with domU. Maybe it's time to try ring buffer stuff again. :)
Ok, I'll salvage and update the old patch, post a new patch compatible with the current code.
FT> I guess that dbench generates relatively large size I/Os than FT> common workloads, which is more sensitive to latency.
Right, that is what I am thinking. However, dbench inside a domU does not perform well either. Even running dbench inside a domU, the batches that the userspace daemon sees are only about 10 requests, compared to several thousand at times when running on bare metal.
FT> Seems that Xen camp is pretty happy with blktap. So dm-userspace FT> should be ok with domU. Maybe it's time to try ring buffer stuff FT> again. :)
You think that the ring buffer has the potential to be lower latency due to fewer memcpy()'s right?
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
From: Dan Smith <[email protected]>
Subject: Re: [dm-devel] Thoughts on removing the remap cache
Date: Sat, 30 Sep 2006 08:44:26 -0700
Quoted 8 lines
FT> I guess that dbench generates relatively large size I/Os than FT> common workloads, which is more sensitive to latency.
Right, that is what I am thinking. However, dbench inside a domU does not perform well either. Even running dbench inside a domU, the batches that the userspace daemon sees are only about 10 requests, compared to several thousand at times when running on bare metal.
Quoted 6 lines
FT> Seems that Xen camp is pretty happy with blktap. So dm-userspace FT> should be ok with domU. Maybe it's time to try ring buffer stuff FT> again. :)
You think that the ring buffer has the potential to be lower latency due to fewer memcpy()'s right?
Yeah, though there might be other factors, I guess.
Anyway, could you try the new ring buffer patch that I posted?