From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYJVy-0000v9-Qs for qemu-devel@nongnu.org; Tue, 13 Nov 2012 11:39:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYJVv-0004wu-Nv for qemu-devel@nongnu.org; Tue, 13 Nov 2012 11:39:06 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:33790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYJVv-0004s1-Gc for qemu-devel@nongnu.org; Tue, 13 Nov 2012 11:39:03 -0500 Message-ID: <50A2779D.3070105@msgid.tls.msk.ru> Date: Tue, 13 Nov 2012 20:38:53 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <502B99D0.8010808@msgid.tls.msk.ru> <502B9B40.6090307@redhat.com> <502BB0C2.3040701@msgid.tls.msk.ru> <502BB1A6.7030407@redhat.com> <502BBA3C.70506@msgid.tls.msk.ru> <5055B5C2.9040700@msgid.tls.msk.ru> <50A11359.5030602@msgid.tls.msk.ru> <20121113143053.GA6321@ohm.aurel32.net> In-Reply-To: <20121113143053.GA6321@ohm.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu and transparent huge pages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: Avi Kivity , qemu-devel On 13.11.2012 18:30, Aurelien Jarno wrote: > Isn't ad0b5321f1f797274603ebbe20108b0750baee94 enough? Oh. It has been applied. I expected it will be ignored just like my patch has been. No, it is not enough: that patch alone does nothing for the alignment on at least x86, which is necessary for hugepages to work. My patch _also_ fixes alignment issue. Where to apply MADV_HUGEPAGE is a different question. I don't know which layer it is best to apply it to. Thanks, /mjt > On Mon, Nov 12, 2012 at 07:18:49PM +0400, Michael Tokarev wrote: >> Ping^2 ? >> >> Thanks, >> >> /mjt >> >> 16.09.2012 15:19, Michael Tokarev wrote: >>> So, is the patch okay? >>> >>> Thanks, >>> >>> /mjt >>> >>> On 15.08.2012 19:03, Michael Tokarev wrote: >>>> On 15.08.2012 18:26, Avi Kivity wrote: >>>>> On 08/15/2012 05:22 PM, Michael Tokarev wrote: >>>>> >>>>>>> >>>>>>> Please provide extra info, like the setting of >>>>>>> /sys/kernel/mm/transparent_hugepage/enabled. >>>>>> >>>>>> That was it - sort of. Default value here is enabled=madvise. >>>>>> When setting it to always the effect finally started appearing, >>>>>> so it is actually working. >>>>>> >>>>>> But can't qemu set MADV_HUGEPAGE flag too, so it works automatically? >>>>> >>>>> It can and should. >>>> >>>> Something like the attached patch? >>>> >>>> Thanks, >>>> >>>> /mjt >>> >> >> >> >