public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Locking comment on shrink_caches()
@ 2001-09-25 17:49 Marcelo Tosatti
  2001-09-25 19:57 ` David S. Miller
  0 siblings, 1 reply; 67+ messages in thread
From: Marcelo Tosatti @ 2001-09-25 17:49 UTC (permalink / raw)
  To: Andrea Arcangeli, Linus Torvalds; +Cc: lkml



Andrea, 


Do you really need to do this ? 

                if (unlikely(!spin_trylock(&pagecache_lock))) {
                        /* we hold the page lock so the page cannot go away from under us */
                        spin_unlock(&pagemap_lru_lock);

                        spin_lock(&pagecache_lock);
                        spin_lock(&pagemap_lru_lock);
                }

Have you actually seen bad hold times of pagecache_lock by
shrink_caches() ? 

Its just that I prefer clear locking without those "tricks". (easier to
understand and harder to miss subtle details)


^ permalink raw reply	[flat|nested] 67+ messages in thread
* Re: Locking comment on shrink_caches()
@ 2001-09-26  5:04 Dipankar Sarma
  2001-09-26  5:31 ` Andrew Morton
  0 siblings, 1 reply; 67+ messages in thread
From: Dipankar Sarma @ 2001-09-26  5:04 UTC (permalink / raw)
  To: davem; +Cc: marcelo, riel, Andrea Arcangeli, torvalds, linux-kernel, hawkes

In article <20010925.132816.52117370.davem@redhat.com> David S. Miller wrote:
>    From: Rik van Riel <riel@conectiva.com.br>
>    Date: Tue, 25 Sep 2001 17:24:21 -0300 (BRST)
>    
>    Or were you measuring loads which are mostly read-only ?

> When Kanoj Sarcar was back at SGI testing 32 processor Origin
> MIPS systems, pagecache_lock was at the top.

John Hawkes from SGI had published some AIM7 numbers that showed
pagecache_lock to be a bottleneck above 4 processors. At 32 processors,
half the CPU cycles were spent on waiting for pagecache_lock. The
thread is at -

http://marc.theaimsgroup.com/?l=lse-tech&m=98459051027582&w=2

Thanks
Dipankar
-- 
Dipankar Sarma  <dipankar@in.ibm.com> Project: http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.

^ permalink raw reply	[flat|nested] 67+ messages in thread
[parent not found: <fa.cbgmt3v.192gc8r@ifi.uio.no>]

end of thread, other threads:[~2001-09-28 22:25 UTC | newest]

Thread overview: 67+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-25 17:49 Locking comment on shrink_caches() Marcelo Tosatti
2001-09-25 19:57 ` David S. Miller
2001-09-25 18:40   ` Marcelo Tosatti
2001-09-25 20:15     ` David S. Miller
2001-09-25 19:02       ` Marcelo Tosatti
2001-09-25 20:29         ` David S. Miller
2001-09-25 21:00           ` Benjamin LaHaise
2001-09-25 21:55             ` David S. Miller
2001-09-25 22:16               ` Benjamin LaHaise
2001-09-25 22:28                 ` David S. Miller
2001-09-26 16:40                   ` Alan Cox
2001-09-26 17:25                     ` Linus Torvalds
2001-09-26 17:40                       ` Alan Cox
2001-09-26 17:44                         ` Linus Torvalds
2001-09-26 18:01                           ` Benjamin LaHaise
2001-09-26 18:01                         ` Dave Jones
2001-09-26 20:20                         ` Vojtech Pavlik
2001-09-26 20:24                           ` Vojtech Pavlik
2001-09-26 17:43                       ` Richard Gooch
2001-09-26 18:24                         ` Benjamin LaHaise
2001-09-26 18:48                           ` Richard Gooch
2001-09-26 18:58                             ` Davide Libenzi
2001-09-26 17:45                       ` Dave Jones
2001-09-26 17:50                       ` Alan Cox
2001-09-26 17:59                         ` Dave Jones
2001-09-26 18:07                           ` Alan Cox
2001-09-26 18:09                           ` Padraig Brady
2001-09-26 18:22                             ` Dave Jones
2001-09-26 18:24                           ` Linus Torvalds
2001-09-26 18:40                             ` Dave Jones
2001-09-26 19:12                               ` Linus Torvalds
2001-09-27 12:22                                 ` CPU frequency shifting "problems" Padraig Brady
2001-09-27 12:44                                   ` Dave Jones
2001-09-27 23:23                                   ` Linus Torvalds
2001-09-28  0:55                                     ` Alan Cox
2001-09-28  2:12                                       ` Stefan Smietanowski
2001-09-28  8:55                                     ` Jamie Lokier
2001-09-28 16:11                                       ` Linus Torvalds
2001-09-28 20:29                                         ` Eric W. Biederman
2001-09-28 22:24                                           ` Jamie Lokier
2001-09-26 19:04                             ` Locking comment on shrink_caches() George Greer
2001-09-26 18:59                         ` George Greer
2001-09-26 23:26                       ` David S. Miller
2001-09-27 12:10                         ` Alan Cox
2001-09-27 15:38                           ` Linus Torvalds
2001-09-27 17:44                             ` Ingo Molnar
2001-09-27 19:41                           ` David S. Miller
2001-09-27 22:59                             ` Alan Cox
2001-09-25 22:03             ` Andrea Arcangeli
2001-09-25 20:24       ` Rik van Riel
2001-09-25 20:28         ` David S. Miller
2001-09-25 21:05           ` Andrew Morton
2001-09-25 21:48             ` David S. Miller
     [not found]         ` <200109252215.f8PMFDa02034@eng2.beaverton.ibm.com>
2001-09-25 22:26           ` David S. Miller
2001-09-26 17:42             ` Ingo Molnar
2001-09-25 22:01       ` Andrea Arcangeli
2001-09-25 22:03         ` David S. Miller
2001-09-25 22:59           ` Andrea Arcangeli
2001-09-25 20:40     ` Josh MacDonald
2001-09-25 19:25       ` Marcelo Tosatti
2001-09-25 21:57   ` Andrea Arcangeli
  -- strict thread matches above, loose matches on Subject: below --
2001-09-26  5:04 Dipankar Sarma
2001-09-26  5:31 ` Andrew Morton
2001-09-26  6:57   ` David S. Miller
2001-09-26  7:08   ` Dipankar Sarma
2001-09-26 16:52   ` John Hawkes
     [not found] <fa.cbgmt3v.192gc8r@ifi.uio.no>
     [not found] ` <fa.cd0mtbv.1aigc0v@ifi.uio.no>
     [not found]   ` <i1m66a5o1zc.fsf@verden.pvv.ntnu.no>
2001-09-27  1:34     ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox