--346823425-2098181509-1015877581=:3326
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 11 Mar 2002, Jens Axboe wrote:
| On Thu, Mar 07 2002, Alan Cox wrote:
| > > BTW, this doesn't seem like a preemption issue, considering that throughput
| > > is very definitely affected as well as latency.
| > >
| > > Anyway, please let me know if there's anything I can do, within my
| > > constraints, to help. (As you can guess, though, I don't have any kernel
| > > debugging experience.)
| >
| > It sounds like the hit you are taking is from highmem and I/O (having to
| > copy pages lower into memory so the I/O subsystem can use them). Some of
| > that is in the hard to fix for 2.4 category with the x86. There are some
| > experimental patches around but they are experimental.
|
| If you are referring to my block-highmem patch, then it's not considered
| too experiemental anymore. It's been a long time since any problems have
| been reported.
I've certainly tortured it a bit, with no problems.
| Scott, a small profile run would give us the information needed to tell
| whether this is a bounce problem or not. Boot the kernel with profile=2,
| then do a readprofile -r ; run problematic stuff ; readprofile >
| prof_data
|
| and share the prof_data.
Using this (above) profiling method shouldn't be very intrusive.
(I.e., need to reboot, but not patch and build a kernel.)
Here's another thing you could do, Scott. This patch is against
2.4.19-pre2 but probably will apply to several versions of 2.4.x
that do *not* have the block-highmem patch applied.
This patch adds bounce IO and bounce swap IO statistics
to /proc/stat .
It also prints out a message about which device is using (causing)
bounce IO. This message could easily become excessive, so if you
try this, feel free to disable that part of the patch.
bounce IO stats for block-highmem will require a different patch,
but Jens has helped me on that a bit, and I'll post it after some
more testing.
Any updated news from you on this issue, Scott?
-- ~Randy--346823425-2098181509-1015877581=:3326 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="bounce-stats-24q.patch" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33L2.0203111213010.3326@dragon.pdx.osdl.net> Content-Description: Content-Disposition: attachment; filename="bounce-stats-24q.patch"
LS0tIGxpbnV4L2luY2x1ZGUvbGludXgva2VybmVsX3N0YXQuaC5vcmcJTW9u IE5vdiAyNiAxMDoxOToyOSAyMDAxDQorKysgbGludXgvaW5jbHVkZS9saW51 eC9rZX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JvdW5jZSBpbyAo JWMpIGZvciAlZDolZFxuIiwNCisJCQkJKHJ3ID09IFdSSVRFKSA/ICdXJyA6 ICdSJywNCisJCQkJTUFKT1IoYmgtPmJfcmRldiksIE1JTk9SKGJoLT5iX3Jk ZXYpKTsNCiAJfQ0KIH0NCiANCg== --346823425-2098181509-1015877581=:3326-- - 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/