linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* how to return a chunk of kernel .data to free mem ?
@ 2021-06-05 14:50 jim.cromie
  2021-06-09 11:19 ` David Hildenbrand
  0 siblings, 1 reply; 2+ messages in thread
From: jim.cromie @ 2021-06-05 14:50 UTC (permalink / raw)
  To: LKML, Linux Memory Management List, Jason Baron

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/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to return a chunk of kernel .data to free mem ?
  2021-06-05 14:50 how to return a chunk of kernel .data to free mem ? jim.cromie
@ 2021-06-09 11:19 ` David Hildenbrand
  0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2021-06-09 11:19 UTC (permalink / raw)
  To: jim.cromie, LKML, Linux Memory Management List, Jason Baron

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-09 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 14:50 how to return a chunk of kernel .data to free mem ? jim.cromie
2021-06-09 11:19 ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox