lkml.org 
[lkml]   [2009]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Fwd: [PATCH] Implement barrier support for single device DM devices
From
Hi Andi,

any news on this patch ?

from what I saw it isn't included in mainline yet, if it is already
please point to the kernel-config option where to enable it

there are some serious problems with interactivity / GUI access during
heavy flush, write operations; especially on amd64/X64:
http://forums.gentoo.org/viewtopic-t-482731.html

I'm not sure if it's possible but I believe it could also be related
to filesystems switching to synchronous writes (non-barrier
write-mode) when the underlying partition is a LUKS-partition and
therefore
decreasing performance (I'm not a kernel-hacker so I don't know if
there's a possible correlation here)

some factors I noticed having an impact on that are:

- CFS (the cpu scheduler)
# if echo 1 > /sys/devices/system/cpu/sched_mc_power_savings is enabled
# and group scheduling enabled
it's very noticable, sometimes under heavy load the output on the
monitor hardly changes anymore and the box also hardly reacts to input
on my hardware the best interactivity under high load so far was
with a 2.6.24-based kernel (2.6.24-zen3/4) after and before that with
CFS everything was average and not very interactive (YMMV)
- the i/o scheduler hardly makes a change
- elder boxes with PCI (non-PCIe) can be "fixed" with some latency-tweaks:
setpci -v -d *:* latency_timer=b0

setpci -v -s 02:00.0 latency_timer=40
setpci -v -s 00:1f.2 latency_timer=40

setpci -v -s 02:00.1 latency_timer=40
setpci -v -s 00:1f.1 latency_timer=40

#maximize latency timers for network and audio, allowing them to transmit
#more data per burst, preventing buffer over/underrun conditions
setpci -v -s 00:1b.0 latency_timer=ff
setpci -v -s 03:00.0 latency_timer=ff
setpci -v -s 04:00.0 latency_timer=ff
- for me this doesn't occur / didn't occur with the RT-kernel and
hardirq, softirq, preemptive rcu enabled

Many thanks in advance

Regards

Mat



On Thu, Sep 11, 2008 at 6:46 PM, Andi Kleen <andi@firstfloor.org> wrote:
> On Thu, Sep 11, 2008 at 04:13:39PM +0200, Mat wrote:
>> any news on this patch and when it will get included in mainline / linus' tree ?
>
> I think Alasdair rejected it in the end (?) He tried to explain me why at OLS,
> but as far as I remember I didn't understand his reasoning. It had something
> to do with stack consumption, but afaik the patch doesn't
> increase stack consumption.
>
> Cc him for clarification.
>
>> I believe this will gain lots of people time savings with no side-effects :)
>>
>> (I haven't tried it out yet but will in the near future, so if there's
>> a new version of it, please let people know)
>
> At least as of 2.6.26 the old patch still works. Haven't tried with .27
> yet.
>
> -Andi
>
> --
> ak@linux.intel.com
>


\
 
 \ /
  Last update: 2009-02-14 00:29    [W:0.087 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site