From: LaMont Jones <lamont@debian.org>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: randolph@tausq.org, parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Question about cache flushing and fork
Date: Tue, 16 Dec 2003 17:30:01 -0700 [thread overview]
Message-ID: <20031217003001.GG25535@mmjgroup.com> (raw)
In-Reply-To: <200312162251.hBGMpd15018573@hiauly1.hia.nrc.ca>
On Tue, Dec 16, 2003 at 05:51:38PM -0500, John David Anglin wrote:
> > On Tue, Dec 16, 2003 at 12:06:57AM -0500, John David Anglin wrote:
> Is it possible to do PDC calls from user space under hpux to determine
> cache parameters?
The architecture requires that pdc calls be done at ring 0, with PSW.D=0,
so no. Having said that, many of the interesting return values are
available from the kernel, either through sysconf or (sigh) /dev/kmem.
> I revised GCC's trampoline code to assume a line length of 32 instead
> of 64 on hppa64. It can now flush arbitrarily long regions of memory.
> The test now passes. This seems to imply that the cache length of a
> C200 under hpux11.00 is 32 bytes.
Cache line size is fixed on every CPU that I've seen, so OS shouldn't
matter... One can assume a 16-byte cache line and it will work everywhere,
of course, although at 1/2 or 1/4 speed in many cases. AFAIK, all PA1.1
machines use at least a 32 byte cache-line.
lamont
next prev parent reply other threads:[~2003-12-17 0:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-16 4:40 [parisc-linux] Question about cache flushing and fork Randolph Chung
2003-12-16 4:40 ` Randolph Chung
2003-12-16 4:48 ` [parisc-linux] " David S. Miller
2003-12-16 4:48 ` David S. Miller
2003-12-16 15:53 ` [parisc-linux] " LaMont Jones
2003-12-16 15:53 ` LaMont Jones
2003-12-16 4:48 ` David S. Miller
2003-12-16 4:56 ` Linus Torvalds
2003-12-16 4:56 ` Linus Torvalds
2003-12-16 4:56 ` [parisc-linux] " Linus Torvalds
2003-12-16 5:06 ` [parisc-linux] " John David Anglin
2003-12-16 16:03 ` LaMont Jones
2003-12-16 22:51 ` John David Anglin
2003-12-16 23:23 ` Stan Sieler
2003-12-17 0:30 ` LaMont Jones [this message]
2003-12-17 1:03 ` Stan Sieler
2003-12-17 0:36 ` James Bottomley
2003-12-17 0:57 ` John David Anglin
2003-12-17 1:16 ` LaMont Jones
2003-12-17 1:46 ` John David Anglin
-- strict thread matches above, loose matches on Subject: below --
2003-12-16 4:40 Randolph Chung
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=20031217003001.GG25535@mmjgroup.com \
--to=lamont@debian.org \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=randolph@tausq.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.