Re: increased vmap_area_lock contentions on "n_tty: Move buffersinto n_tty_data"

From: Peter Hurley
Date: Fri Sep 13 2013 - 05:56:01 EST


On 09/12/2013 11:44 PM, Greg KH wrote:
On Fri, Sep 13, 2013 at 11:38:04AM +0800, Fengguang Wu wrote:
On Thu, Sep 12, 2013 at 08:17:00PM -0700, Greg KH wrote:
On Fri, Sep 13, 2013 at 08:51:33AM +0800, Fengguang Wu wrote:
Hi Peter,

FYI, we noticed much increased vmap_area_lock contentions since this
commit:

What does that mean? What is happening, are we allocating/removing more
memory now?

No. Same amount of memory, allocated and freed with the same frequency as
before.

What type of load were you running that showed this problem?

The increased contentions and lock hold/wait time showed up in a
number of test cases.

[...]

That's a lot of slowdowns, especially for such a simple patch.

Peter, any ideas?

Looks like this patch incidentally triggers some worst-case behavior in
the memory manager. I'm not sure how this is possible with two 4k buffers,
but the evidence is substantial.

This patch isn't critical so I suggest we back out this patch for mainline
but use the patch to find out what's wrong in the vmap area.

Unfortunately, I'm on my way out the door and won't be back til Sunday pm (EST)
so I'll get a revert to you then. Sorry 'bout that.

Regards,
Peter Hurley

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/