Ask a Question related to Sun Solaris, Design and Development.
-
Dr. David Kirkby #1
Can I determine CPU cache sizes ?
Is there a way to determine the size of the L1 data cache, L1
instruction cache and L2 cache in Solaris from a C system call - i.e.
I **don't** want to use a command at the shell prompt?
I know the Sun compiler uses this information to optimise the code,
but I don't know whether it uses a system call to get the information
or just has a huge lookup table, that knows about each CPU.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail [email]davek@medphys.ucl.ac.uk[/email]
Dr. David Kirkby Guest
-
Use a PDF TK to determine if ....
So what can be done? -
determine if a number is even or odd in php
hi, working on a site that uses php and mysql. on one page, i pull data from a database and put it into a table. the data is about scientific... -
Determine if a date is during DST
Is there an easy way in coldfusion to determine if a give date/time happened/will happen during Daylight Saving Time? I can find out if the server... -
Using ASP to determine the OS
I want to determine the operating system using ASP (or VBScript inside of ASP). I tried to get it using the Request.... -
CSS is different sizes
I am definately going crazy. I have 3 styles, in an empty doc. (I will attatch at bottom) The three styles are exactly identical except color,... -
ultrasparc3@hotmail.com #2
Re: Can I determine CPU cache sizes ?
In <3F207848.F5AFFBA9@ntlworld.com> "Dr. David Kirkby" <drkirkby@ntlworld.com> writes:
>Is there a way to determine the size of the L1 data cache, L1
>instruction cache and L2 cache in Solaris from a C system calleven if it did have a lookup table it would still require some>I know the Sun compiler uses this information to optimise the code,
>but I don't know whether it uses a system call to get the information
>or just has a huge lookup table, that knows about each CPU.
sort of system call to determine the cpu type to determine which
table entry to use.
find the information you want in the output of "prtpicl -v -c cpu"
then use the interfaces described in libpicl(3LIB) to do the same thing
in your own code.
ultrasparc3@hotmail.com Guest
-
Dr. David Kirkby #3
Re: Can I determine CPU cache sizes ?
[email]ultrasparc3@hotmail.com[/email] wrote:
>
> In <3F207848.F5AFFBA9@ntlworld.com> "Dr. David Kirkby" <drkirkby@ntlworld.com> writes:>> >Is there a way to determine the size of the L1 data cache, L1
> >instruction cache and L2 cache in Solaris from a C system call>> >I know the Sun compiler uses this information to optimise the code,
> >but I don't know whether it uses a system call to get the information
> >or just has a huge lookup table, that knows about each CPU.True, but one might image there being a call to get the cpu type, but> even if it did have a lookup table it would still require some
> sort of system call to determine the cpu type to determine which
> table entry to use.
not the detailed information about the cpu.
Thanks, that is useful.> find the information you want in the output of "prtpicl -v -c cpu"
> then use the interfaces described in libpicl(3LIB) to do the same thing
> in your own code.
--
Dr. David Kirkby,
Senior Research Fellow,
Department of Medical Physics,
University College London,
11-20 Capper St, London, WC1E 6JA.
Tel: 020 7679 6408 Fax: 020 7679 6269
Internal telephone: ext 46408
e-mail [email]davek@medphys.ucl.ac.uk[/email]
Dr. David Kirkby Guest



Reply With Quote

