From: "Andres Lagar-Cavilla" <andres@lagarcavilla.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: andres@gridcentric.ca, xen-devel <xen-devel@lists.xen.org>,
tim@xen.org, adin@gridcentric.ca
Subject: Re: [PATCH 0 of 4] Handling of (some) low memory conditions
Date: Thu, 16 Feb 2012 07:34:13 -0800 [thread overview]
Message-ID: <06a5548b6f1f6c2b7fa0a1e2bc11115f.squirrel@webmail.lagarcavilla.org> (raw)
In-Reply-To: <4F3D2D28020000780007377D@nat28.tlf.novell.com>
>>>> On 16.02.12 at 15:40, "Andres Lagar-Cavilla" <andres@lagarcavilla.org>
>>>> wrote:
>>>>>> On 16.02.12 at 04:57, Andres Lagar-Cavilla <andres@lagarcavilla.org>
>>>>>> wrote:
>>>> - Add a VIRQ that the hypervisor can emit when reaching a low memory
>>>> threshold.
>>>
>>> In this patch, which didn't make it to my inbox yet, you will want to
>>> change this
>>>
>>> + if ( (total_avail_pages << PAGE_SHIFT) <= opt_low_mem_virq )
>>>
>>> to
>>>
>>> if ( total_avail_pages <= PFN_DOWN(opt_low_mem_virq) )
>>>
>>> to avoid the case (on 32-bit hypervisors) where total_avail_pages,
>>> being just 'long', would get significant bits shifted out.
>>>
>>> I'm further wondering whether the default value shouldn't be set
>>> dynamically based on available memory and/or taking into account
>>> an eventual dom0_mem= option.
>>
>> I can cap or get rid of the threshold (and the virq) if it doesn't make
>> sense with respect to total memory. I'm not sure about integrating
>> dom0_mem, since dom0's footprint is also a quantity manipulated by the
>> receiver of the virq.
>
> No, dom0_mem= is only specifying the starting value, and the case
> that would be of possibly interest is that of having a negative amount
> specified.
Sorry, not following entirely. The negative quantity you refer to would be
dom0_mem or the low mem virq threshold? Additional checks pertaining only
to dom0_mem, not in relation to this threshold, would most likely go on a
separate patch.
And both quantities are parsed using strtoull, so you get at most really
large numbers. I certainly need to add additional checks for unsuitable
low_mem_virq thresholds to this patch.
Thanks,
Andres
>
> Jan
>
>
next prev parent reply other threads:[~2012-02-16 15:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 3:57 [PATCH 0 of 4] Handling of (some) low memory conditions Andres Lagar-Cavilla
2012-02-16 3:57 ` [PATCH 1 of 4] Prevent low values of max_pages for domains doing sharing or paging Andres Lagar-Cavilla
2012-02-16 9:16 ` Jan Beulich
2012-02-16 10:20 ` Tim Deegan
2012-02-16 14:45 ` Andres Lagar-Cavilla
2012-02-16 14:58 ` Tim Deegan
2012-02-16 15:32 ` Jan Beulich
2012-02-16 16:08 ` Tim Deegan
2012-02-16 16:44 ` Jan Beulich
2012-02-16 3:57 ` [PATCH 2 of 4] x86/mm: Allow to not sleep on mem event ring Andres Lagar-Cavilla
2012-02-16 16:11 ` Tim Deegan
2012-02-17 16:57 ` Andres Lagar-Cavilla
2012-02-16 3:57 ` [PATCH 3 of 4] Memory sharing: better handling of ENOMEM while unsharing Andres Lagar-Cavilla
2012-02-16 16:19 ` Tim Deegan
2012-02-17 17:01 ` Andres Lagar-Cavilla
2012-02-16 3:57 ` [PATCH 4 of 4] Global virq for low memory situations Andres Lagar-Cavilla
2012-02-16 9:31 ` [PATCH 0 of 4] Handling of (some) low memory conditions Jan Beulich
2012-02-16 14:40 ` Andres Lagar-Cavilla
2012-02-16 15:22 ` Jan Beulich
2012-02-16 15:34 ` Andres Lagar-Cavilla [this message]
2012-02-16 16:26 ` Jan Beulich
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=06a5548b6f1f6c2b7fa0a1e2bc11115f.squirrel@webmail.lagarcavilla.org \
--to=andres@lagarcavilla.org \
--cc=JBeulich@suse.com \
--cc=adin@gridcentric.ca \
--cc=andres@gridcentric.ca \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/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).