mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Janez Pers <janez.pers@fe.uni-lj.si>
To: linux-kernel@vger.kernel.org
Subject: shmat/shmdt penalty
Date: Tue, 15 Apr 2008 18:04:56 +0200	[thread overview]
Message-ID: <4804D228.3090406@fe.uni-lj.si> (raw)

Hi all,

Is there significant penalty for doing shmat/shmdt to a preexisting/
pre-created shared memory segment 60-200 times a second in multiple
processes using a modern (2.6) linux kernel on i386 architecture?

Specifically, do I risk:

* significant slowdown due to context switching (e.g. more than 10%)?
* memory fragmentation (?)
* any other resource exhaustion if such code runs for hours?
* scorn and laughter by people who read my code?

Sorry if this is faq or documented anywhere (I could not find it) - then
the pointer/url to the relevant literature will be enough.

Regards,

Janez.

                 reply	other threads:[~2008-04-15 16:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4804D228.3090406@fe.uni-lj.si \
    --to=janez.pers@fe.uni-lj.si \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®