mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: jim.cromie@gmail.com, LKML <linux-kernel@vger.kernel.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Jason Baron <jbaron@akamai.com>
Subject: Re: how to return a chunk of kernel .data to free mem ?
Date: Wed, 9 Jun 2021 13:19:29 +0200	[thread overview]
Message-ID: <196e42a7-d50f-48e0-b4bd-e7f3701bfc6d@redhat.com> (raw)
In-Reply-To: <CAJfuBxxo5hQLK36J1yL2MV3Zkfdnk=OmGh6Fms1adjB0GWULqA@mail.gmail.com>

On 05.06.21 16:50, jim.cromie@gmail.com wrote:
> I have convinced DYNAMIC_DEBUG code to not need
> about 15% of its __dyndbg section, about 30kb on my test kernel.
> 
> This memory is not kmalloc'd, so krealloc wont work.
> (I tried anyway, on a loaded module, it panicd)
> 
> Is there a way to return a chunk of init .data memory to general use ?
> 
> heres the patchset;
> https://lore.kernel.org/lkml/20210529200029.205306-1-jim.cromie@gmail.com/
> 

Hm, you could try free_reserved_page(). But obviously, only full pages 
can be handed to the buddy.

-- 
Thanks,

David / dhildenb


      reply	other threads:[~2021-06-09 11:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-05 14:50 jim.cromie
2021-06-09 11:19 ` David Hildenbrand [this message]

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=196e42a7-d50f-48e0-b4bd-e7f3701bfc6d@redhat.com \
    --to=david@redhat.com \
    --cc=jbaron@akamai.com \
    --cc=jim.cromie@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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

all inboxes | Powered by JetHome®