lkml.org 
[lkml]   [2022]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH RFC] ipc/mqueue: introduce msg cache
    +Vlastimil

    On Tue, Dec 20, 2022 at 10:48 AM Roman Gushchin
    <roman.gushchin@linux.dev> wrote:
    >
    > Sven Luther reported a regression in the posix message queues
    > performance caused by switching to the per-object tracking of
    > slab objects introduced by patch series ending with the
    > commit 10befea91b61 ("mm: memcg/slab: use a single set of kmem_caches for all
    > allocations").
    >
    > To mitigate the regression cache allocated mqueue messages on a small
    > percpu cache instead of releasing and re-allocating them every time.
    >

    Seems fine with me but I am wondering what is stopping us to do this
    caching in the slab layer for all accounted allocations? Does this
    only make sense for specific scenarios/use-cases?

    \
     
     \ /
      Last update: 2023-03-26 23:16    [W:2.510 / U:3.272 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site