bugThe GNU Hurd - Bugs: bug #18502, Suboptimal cache configuration for...

 
 

bug #18502: Suboptimal cache configuration for IA-32 processors

Submitted by:  -Deleted Account- <syn>
Submitted on:  Sun 10 Dec 2006 07:48:29 PM UTC  
 
Category: GNU MachSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Hardware Support
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedReproducibility: Every Time
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 23 Apr 2011 01:35:00 PM UTC, comment #3:

There is no real basic reason why caching should hit us, so I have commited it.

Samuel Thibault <sthibaul>
Project Member
Thu 14 Dec 2006 02:03:10 AM UTC, comment #2:

OK, I built gnumach with the following in model_dep.c:

set_cr0((get_cr0() | CR0_PG | CR0_WP) & ~(CR0_CD | CR0_NW));

And I got worse performance:

0m0.040s 0m0.130s
0m0.000s 0m0.000s

Booted back to normal gnumach:

0m0.010s 0m0.020s
0m0.000s 0m0.000s

That is just from running times on a little C program that counts to 1000000000, so it's obviously not scientific.

Barry deFreese <bddebian>
Sun 10 Dec 2006 11:17:47 PM UTC, comment #1:

I tried clearing those two bits, in i386/i386at/model_dep.c, i386at_init(), by altering the call to set_cr0(). GNU Mach then crashed almost immediately during bootstrap. I didn't investigate further.

-Deleted Account- <syn>
Sun 10 Dec 2006 07:48:29 PM UTC, original submission:

GNU Mach operates with a low-performance caching mode. When running, Control Register 0 (CR0) value is 0xe001001b. The CD (cache disable) and NW (Not Write-back/through) bits are set. This doesn't completely disable cache usage (at least on modern processors), but makes the processor use a suboptimal mode. See IA-32 Intel Architecture Software Developer's Manual Volume 3: System Programming Guide, 10.5.1 Cache Control Registers and Bits, Figure 10-5.

-Deleted Account- <syn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sthibaul (Posted a comment)
  • -unavailable- added by bddebian (Posted a comment)
  • -unavailable- added by syn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 23 Apr 2011 01:35:00 PM UTCsthibaulStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1