From: Dave McCracken <dmccr@us.ibm.com>
To: "Martin J. Bligh" <mbligh@aracnet.com>, Hugh Dickins <hugh@veritas.com>
Cc: Andrew Morton <akpm@digeo.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix obj vma sorting
Date: Thu, 10 Apr 2003 09:50:40 -0500 [thread overview]
Message-ID: <21510000.1049986240@baldur.austin.ibm.com> (raw)
In-Reply-To: <208780000.1049984941@[10.10.2.4]>
--On Thursday, April 10, 2003 07:29:03 -0700 "Martin J. Bligh"
<mbligh@aracnet.com> wrote:
> Yeah, sorry ... I guess someone should have published the phone
> conversation we had yesterday ... </me pokes Dave in the eye>
>
> We came to the conclusion that should be adding the semaphore to the
> current code even, as list_add_tail isn't atomic to a doubly linked list
> (unless maybe you can do some fancy-pants compare and exchange thing
> after setting up the prev pointer of the new element already). Which is
> probably going to suck performance-wise, but I'd prefer correctness. From
> there we can make a better judgment, but it sounds like it's going to
> content horribly on those busy semaphores.
I didn't publish the conversation because I realized that the semaphore is
taken outside the function, so it is held. It's what I called you back to
tell you.
I'm guessing the contention we're seeing with Hugh's fix is because of the
way ld.so works. It maps the entire library, then does an mprotect to
change the idata section from shared to private. It does this for every
mapped library after every exec.
Dave
======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
next prev parent reply other threads:[~2003-04-10 14:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 18:16 [PATCH] fix obj vma sorting Hugh Dickins
2003-04-09 17:07 ` Martin J. Bligh
2003-04-09 18:24 ` Hugh Dickins
2003-04-09 18:33 ` Martin J. Bligh
2003-04-09 19:20 ` Hugh Dickins
2003-04-09 20:11 ` William Lee Irwin III
2003-04-10 13:52 ` Hugh Dickins
2003-04-10 14:29 ` Martin J. Bligh
2003-04-10 14:39 ` Hugh Dickins
2003-04-10 14:50 ` Dave McCracken [this message]
2003-04-10 14:57 ` Martin J. Bligh
2003-04-10 15:21 ` Hugh Dickins
2003-04-10 15:24 ` Martin J. Bligh
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=21510000.1049986240@baldur.austin.ibm.com \
--to=dmccr@us.ibm.com \
--cc=akpm@digeo.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@aracnet.com \
/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