mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Giuseppe Scrivano <gscrivan@redhat.com>
Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org,
	mingo@kernel.org, dave@stgolabs.net
Subject: Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces
Date: Tue, 28 Nov 2017 13:53:16 -0800	[thread overview]
Message-ID: <20171128135316.6d7bba7fe909ba3d90e318db@linux-foundation.org> (raw)
In-Reply-To: <20171127125550.15514-1-gscrivan@redhat.com>

On Mon, 27 Nov 2017 13:55:50 +0100 Giuseppe Scrivano <gscrivan@redhat.com> wrote:

> kern_mount_data is a relatively expensive operation when creating a
> new IPC namespace, so delay the mount until its first usage when not
> creating the the global namespace.
> 
> On my machine, the time for creating 1000 new IPC namespaces dropped
> from ~8s to ~2s.

OK, but this simply moves the expense so it happens later on.  Why is
that better?

  parent reply	other threads:[~2017-11-28 21:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27 12:55 Giuseppe Scrivano
2017-11-28  7:09 ` Davidlohr Bueso
2017-11-28 21:53 ` Andrew Morton [this message]
2017-11-29 10:33   ` Giuseppe Scrivano
2017-11-29 22:17     ` Andrew Morton
2017-11-30 12:20       ` Giuseppe Scrivano

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=20171128135316.6d7bba7fe909ba3d90e318db@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dave@stgolabs.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=gscrivan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.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

Powered by JetHome