Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: Known problems with dcache?
Date: Fri, 10 Jan 2003 22:55:00 -0000	[thread overview]
Message-ID: <3E1F4F74.5020704@redhat.com> (raw)
In-Reply-To: <20030110223834.GA10769@nevyn.them.org>

> On Fri, Jan 10, 2003 at 05:35:56PM -0500, Andrew Cagney wrote:
> 
>> 
> 
>> >We don't use the straw on some targets now; Linux (need to get back to
>> >that patch and turn it on always!), *BSD.
> 
>> 
>> Right so that 32 byte read is now cheap.
>> 
> 
>> >The dcache needs some serious work if you want it to be always on. 
>> >Last time I tested it it caused an actual slowdown.  Basically, it's
>> >too small to be useful.
>> >
>> >#define DCACHE_SIZE 64
>> >#define LINE_SIZE_POWER (5)
>> >
>> >So it never stores more than 2K.  LinuxThreads _overwhelms_ that, by a
>> >downright boggling amount.
> 
>> 
>> You wouldn't know why it caused a slow down?  Th 32 byte read should now 
>> be cheaper.
> 
> 
> This was before the 32-byte-read support.  So we read lines in, did
> more computation than before, and overwrote them in the cache; exactly
> the same I/O, more CPU.

Well, possibly more I/O.  And, I think, the I/O / context switch / ... 
is the expensive part.

>   Might be worth trying it again, with larger
> lines, now.  Not sure.

Was it on an i386?  If it was, the other other cache would easily skew 
any results.

Andrew




  reply	other threads:[~2003-01-10 22:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10 22:19 Andrew Cagney
2003-01-10 22:25 ` Daniel Jacobowitz
2003-01-10 22:36   ` Andrew Cagney
2003-01-10 22:38     ` Daniel Jacobowitz
2003-01-10 22:55       ` Andrew Cagney [this message]
2003-01-10 23:04         ` Daniel Jacobowitz
2003-01-10 23:16           ` Andrew Cagney
2003-01-10 23:21             ` Daniel Jacobowitz
2003-01-11 17:52               ` Andrew Cagney

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=3E1F4F74.5020704@redhat.com \
    --to=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.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