linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Manfred Spraul <manfreds@colorfullife.com>
To: Alexander Viro <viro@math.psu.edu>
Cc: linux-mm@kvack.org
Subject: Re: Contention on ->i_shared_lock in dup_mmap()
Date: Thu, 08 Jun 2000 18:21:08 +0200	[thread overview]
Message-ID: <393FC7F4.C8E4B4B6@colorfullife.com> (raw)
In-Reply-To: <Pine.GSO.4.10.10006072235360.10800-100000@weyl.math.psu.edu>

Alexander Viro wrote:
> 
> OK, do_syslog() is just plain silly - it's resetting the buffer and code
> in question looks so:
>                 spin_lock_irq(&console_lock);
>                 logged_chars = 0;
>                 spin_unlock_irq(&console_lock);
> ... which is for all purposes equivalent to
>                 if (logged_chars) {
>                         ...
>                 }
> so this one is easy (looks like a klogd silliness).
> 
cpu0: do_syslog
	logged_chars = 0;

cpu1: printk()
	logged_chars++;

We really need the spinlock :-(

How many cpu's? How did you measure the contention?
I cannot imagine that do_syslog is really the source for the contention,
perhaps cpu0 was executing a slow console switch, and cpu1 called
do_syslog?

--
	Manfred
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  parent reply	other threads:[~2000-06-08 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-08  3:45 Alexander Viro
2000-06-08 14:19 ` Stephen C. Tweedie
2000-06-08 16:21 ` Manfred Spraul [this message]
2000-06-08 23:07   ` Alexander Viro

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=393FC7F4.C8E4B4B6@colorfullife.com \
    --to=manfreds@colorfullife.com \
    --cc=linux-mm@kvack.org \
    --cc=viro@math.psu.edu \
    /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