From: Gurudas Pai <gurudas.pai@oracle.com>
To: Nish Aravamudan <nish.aravamudan@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>, linux-kernel@vger.kernel.org
Subject: Re: [BUG]:2.6.25-rc7 memory leak with hugepages.
Date: Fri, 04 Apr 2008 13:18:30 +0530 [thread overview]
Message-ID: <47F5DD4E.40906@oracle.com> (raw)
In-Reply-To: <29495f1d0804032040h56f39051lcd5f707660d3c06c@mail.gmail.com>
Nish Aravamudan wrote:
> On 3/27/08, Gurudas Pai <gurudas.pai@oracle.com> wrote:
>>
>> Ingo Molnar wrote:
>> > * Gurudas Pai <gurudas.pai@oracle.com> wrote:
>> >
>> >> Hi,
>> >>
>> >> On 2.6.25-rc7 allocate hugepages and run a fio test with following
>> >> jobfile,
>> >
>> > could you try x86.git/latest:
>> >
>> > http://people.redhat.com/mingo/x86.git/README
>> >
>> > it has a fix that could fix such a leak.
>> >
>> > Ingo
>>
>>
>> Applied latest two patches and re-ran the test,
>>
>> hugetlb: fix potential livelock in return_unused_surplus_hugepages()
>> hugetlb: indicate surplus huge page counts in per-node meminfo
>>
>> Still same result,
>
> Ingo was referring to the x86.git tree, not linus.git (to which those
> two patches have been applied). I'm not sure if there is something
> x86.git that hasn't been pushed to LInus yet?
>
>> >cat /proc/meminfo | grep Huge
>> HugePages_Total: 1000
>>
>> HugePages_Free: 551
>>
>> HugePages_Rsvd: 1
>> HugePages_Surp: 0
>> Hugepagesize: 2048 kB
>>
>> >echo 0 > /proc/sys/vm/nr_hugepages
>> >cat /proc/meminfo | grep Huge
>>
>> HugePages_Total: 450
>> HugePages_Free: 1
>> HugePages_Rsvd: 1
>> HugePages_Surp: 450
>> Hugepagesize: 2048 kB
>
> Hrm, fio is using SHM_HUGETLB. Does ipcs indicate maybe fio is not
> cleaning up the shared memory segment?
Indeed , since fio crashed during the run there were shared memory segment
allocated. Just removed them and
HugePages_Total: 1000
HugePages_Free: 1000
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
So not a bug. Thank you all for your time and effort.
Regards,
-Guru
next prev parent reply other threads:[~2008-04-04 7:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 7:35 [BUG]:2.6.25-rc7 memory leak with hugepages Gurudas Pai
2008-03-27 8:38 ` Ingo Molnar
2008-03-27 10:24 ` Gurudas Pai
2008-04-04 3:40 ` Nish Aravamudan
2008-04-04 7:28 ` Nish Aravamudan
2008-04-04 7:45 ` Gurudas Pai
2008-04-04 7:48 ` Gurudas Pai [this message]
2008-04-04 17:16 ` Andy Whitcroft
2008-04-04 17:31 ` [PATCH] hugetlbpage.txt: correct overcommit caveat [Was Re: [BUG]:2.6.25-rc7 memory leak with hugepages.] Nishanth Aravamudan
2008-04-04 18:04 ` Nishanth Aravamudan
2008-04-04 18:11 ` Andy Whitcroft
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47F5DD4E.40906@oracle.com \
--to=gurudas.pai@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nish.aravamudan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).