From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Paul Menage <menage@google.com>
Cc: akpm@linux-foundation.org, containers@lists.linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Priority heap infrastructure enhancements
Date: Sat, 21 Jun 2008 14:24:07 +0530 [thread overview]
Message-ID: <485CC1AF.5060901@linux.vnet.ibm.com> (raw)
In-Reply-To: <6599ad830806210111o41ad8526j8490662ddf35f299@mail.gmail.com>
Paul Menage wrote:
> On Sat, Jun 21, 2008 at 1:05 AM, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
>> I would like to be able to drop the smallest value. Since we cannot drop the
>> smallest value, dropping a leaf (heap->size) should be sufficiently good enough.
>> I want a max heap and losing the root of the heap does not work for me.
>>
>
> What are you actually trying to do? Can you get round this by just
> inverting your "gt" operator? i.e. provide one that actually
> implements "less-than"?
Paul,
That would convert the entire heap to a min-heap. With my soft limit patches,
that I am working on for the memory controller; I want the controller that has
exceeded it's soft limit by the maximum amount to be picked off the heap, so
that we can reclaim from it on memory contention.
Ideally, I would also like to be able to find an existing node in the heap, but
that is hard. I can work around that problem for now.
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
next prev parent reply other threads:[~2008-06-21 8:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-18 13:48 [PATCH] Priority heap infrastructure enhancements Balbir Singh
[not found] ` <1213796886-24863-1-git-send-email-balbir-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-06-21 7:29 ` Paul Menage
2008-06-21 7:29 ` Paul Menage
[not found] ` <6599ad830806210029x2a020e1ava6b646be9913fcdf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-21 8:05 ` Balbir Singh
2008-06-21 8:05 ` Balbir Singh
2008-06-21 8:11 ` Paul Menage
2008-06-21 8:54 ` Balbir Singh [this message]
[not found] ` <6599ad830806210111o41ad8526j8490662ddf35f299-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-21 8:54 ` Balbir Singh
2008-06-21 16:03 ` Paul Menage
[not found] ` <485CB652.90801-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-06-21 8:11 ` Paul Menage
2008-06-21 16:03 ` Paul Menage
2008-07-01 8:14 ` Andrew Morton
2008-07-01 8:14 ` Andrew Morton
2008-07-01 8:33 ` Balbir Singh
[not found] ` <20080701011414.2f0cccb5.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-07-01 8:33 ` Balbir Singh
-- strict thread matches above, loose matches on Subject: below --
2008-06-18 13:48 Balbir Singh
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=485CC1AF.5060901@linux.vnet.ibm.com \
--to=balbir@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=containers@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.