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; 69+ 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] 69+ messages in thread
* RE: CPU frequency shifting "problems"
@ 2001-09-28  1:24 Grover, Andrew
  2001-09-28 21:54 ` Linus Torvalds
                   ` (2 more replies)
  0 siblings, 3 replies; 69+ messages in thread
From: Grover, Andrew @ 2001-09-28  1:24 UTC (permalink / raw)
  To: 'Alan Cox', torvalds; +Cc: padraig, linux-kernel

> From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
> Sent: Thursday, September 27, 2001 5:56 PM
> To: torvalds@transmeta.com
> Cc: padraig@antefacto.com; linux-kernel@vger.kernel.org
> Subject: Re: CPU frequency shifting "problems"
> Importance: High
> 
> 
> > For example, the Intel "SpeedStep" CPU's are completely broken under
> > Linux, and real-time will advance at different speeds in DC 
> and AC modes,
> > because Intel actually changes the frequency of the TSC 
> _and_ they don't
> > document how to figure out that it changed.
> 
> The change is APM or ACPI initiated. Intel won't tell anyone anything
> useful but Microsoft have published some of the required 
> intel confidential
> information which helps a bit

APM is a lost cause, but the correct solution for ACPI systems is to use the
PM timer. This totally obviates the need to really care about the CPU's
effective frequency at all. Even if you knew all the details of SpeedStep
(and I've seen the same MS doc you have Alan and was surprised at its
detail) you'd still be hosed if the CPU throttles...you'd be hosed in a
*good* way because at least any delays would be longer (not shorter) than
expected but your times would be off nonetheless.

Regards -- Andy

^ permalink raw reply	[flat|nested] 69+ messages in thread
* RE: CPU frequency shifting "problems"
@ 2001-09-28 22:47 Grover, Andrew
  2001-09-29  1:10 ` Gerhard Mack
  0 siblings, 1 reply; 69+ messages in thread
From: Grover, Andrew @ 2001-09-28 22:47 UTC (permalink / raw)
  To: 'Alan Cox'; +Cc: torvalds, padraig, linux-kernel

> From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
> Remember you get an interrupt from the transition that you 
> can steal from
> the ROM gunge, or is that another deep intel secret you can't 
> comment on 8)
> 
> Just why are intel so obsessed by secrets about something 
> every other vendor
> does anyway ? 

I agree and have said the very thing internally, but TPTB have determined
that the benefit of an open source driver is outweighed by the perceived
competitive advantage of keeping it a trade secret. :(

-- Andy

^ permalink raw reply	[flat|nested] 69+ messages in thread
[parent not found: <8FB7D6BCE8A2D511B88C00508B68C2081971E4@orsmsx102.jf.intel.com>]

end of thread, other threads:[~2001-10-02 21:34 UTC | newest]

Thread overview: 69+ 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-28  1:24 CPU frequency shifting "problems" Grover, Andrew
2001-09-28 21:54 ` Linus Torvalds
2001-09-29  0:37   ` Jonathan Morton
2001-09-28 22:30 ` Alan Cox
2001-10-01  9:28 ` Pavel Machek
2001-09-28 22:47 Grover, Andrew
2001-09-29  1:10 ` Gerhard Mack
     [not found] <8FB7D6BCE8A2D511B88C00508B68C2081971E4@orsmsx102.jf.intel.com>
2001-09-28 23:09 ` Alan Cox

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