From: David Laight <David.Laight@ACULAB.COM>
To: 'Christophe Leroy' <christophe.leroy@csgroup.eu>,
'Vlastimil Babka' <vbabka@suse.cz>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"patches@lists.linux.dev" <patches@lists.linux.dev>
Subject: RE: [PATCH] mm: remove all the slab allocators
Date: Sat, 1 Apr 2023 22:04:26 +0000 [thread overview]
Message-ID: <45a4b0ac2bac40a691b55ae9de5c6617@AcuMS.aculab.com> (raw)
In-Reply-To: <a84e8534-ef49-c33f-711c-fa5b9ee88269@csgroup.eu>
From: Christophe Leroy
> Sent: 01 April 2023 19:45
>
> Le 01/04/2023 à 20:33, David Laight a écrit :
> > From: Vlastimil Babka
> >> Sent: 32 March 2023 10:47
> >>
> >> As the SLOB removal is on track and the SLAB removal is planned, I have
> >> realized - why should we stop there and not remove also SLUB? What's a
> >> slab allocator good for in 2023? The RAM sizes are getting larger and
> >> the modules cheaper [1]. The object constructor trick was perhaps
> >> interesting in 1994, but not with contemporary CPUs. So all the slab
> >> allocator does today is just adding an unnecessary layer of complexity
> >> over the page allocator.
> >
> > Why stop there?
> > Remove kmalloc() completely.
> > With cheap memory isn't unreasonable to go back to compile-time
> > settable fixed size arrays for all items.
> > Should make 'use after free' much easier to track down.
> >
>
> While at it, why not also increase the page size to hugepage size, that
> would allow us to remove all the complex THP logic, and would remove one
> level of page tables. I would also reduce TLB pressure.
Good idea, 4k pages were used on systems where the total system
memory was a few MB.
Memory system are now easily 1000x times larger - so why not 4MB
pages ....
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
next prev parent reply other threads:[~2023-04-01 22:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-01 9:46 [PATCH] mm: remove all the slab allocators Vlastimil Babka
2023-04-01 10:00 ` Lorenzo Stoakes
2023-04-01 10:25 ` Yosry Ahmed
2023-04-01 11:33 ` Petr Tesařík
2023-04-01 11:38 ` Vlastimil Babka
2023-04-01 15:15 ` Matthew Wilcox
2023-04-01 18:33 ` David Laight
2023-04-01 18:45 ` Christophe Leroy
2023-04-01 22:04 ` David Laight [this message]
2023-04-02 5:09 ` Jeff Xie
2023-04-02 5:42 ` Yangtao Li
2023-04-02 9:09 ` 郭辉
2023-04-02 11:04 ` Matthew Wilcox
2023-04-03 3:51 ` Fabio M. De Francesco
2023-04-03 4:04 ` Fabio M. De Francesco
2023-04-03 4:13 ` Matthew Wilcox
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=45a4b0ac2bac40a691b55ae9de5c6617@AcuMS.aculab.com \
--to=david.laight@aculab.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=patches@lists.linux.dev \
--cc=vbabka@suse.cz \
/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.