[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YIkBwgrDXF2x0Dt+@dhcp22.suse.cz>
Date: Wed, 28 Apr 2021 08:33:38 +0200
From: Michal Hocko <mhocko@...e.com>
To: Vasily Averin <vvs@...tuozzo.com>
Cc: cgroups@...r.kernel.org, linux-kernel@...r.kernel.org,
Alexey Dobriyan <adobriyan@...il.com>,
Shakeel Butt <shakeelb@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
Vladimir Davydov <vdavydov.dev@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Dmitry Safonov <0x7f454c46@...il.com>
Subject: Re: [PATCH 2/2] ipc: use kmalloc for msg_queue and shmid_kernel
On Wed 28-04-21 08:15:10, Vasily Averin wrote:
> On 4/26/21 1:25 PM, Michal Hocko wrote:
> > Using kvmalloc for sub page size objects is suboptimal because kmalloc
> > can easily fallback into vmalloc under memory pressure and smaller
> > objects would fragment memory. Therefore replace kvmalloc by a simple
> > kmalloc.
>
> I think you're wrong here:
> kvmalloc can failback to vmalloc for size > PAGE_SIZE only
You are right. My bad. My memory failed on me. Sorry about the
confusion.
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists