Slashdot Mirror


Celeron 2GHz Cache Detection?

EAJoe asks: "I have small problem with one Celeron 2GHz machine. Linux kernel 2.4.18-24.7 doesn't seem to switch L2 cache on! This CPU apparently _has_ 128K of L2. There is nothing about L2 in the logs, and /proc/cpuinfo shows an L1D size of 8K instead. Of course I have enabled L2 in BIOS settings (the motherboard is an ASUS P4S533-E, by the way). The CPU overclocks easily up to 3.5 GHz, running stable at 3 - it seems that cache is really switched off. At 3 GHz g++ compilation times are similar to Athlon XP 1800+ machine. I don't have windows on this computer to check this out, but Intel DOS utility shows a Celeron 2000 w/128k L2, also there is '128K' written on the CPU's die. Any suggestions?"

28 comments

  1. Algerbraic is Dying by Anonymous Coward · · Score: -1, Offtopic

    It is official; HP confirms: Algerbraic is dying

    One more crippling bombshell hit the already beleaguered Algerbraic community when HP confirmed that Algerbraic calculator usage has dropped yet again, now down to less than a fraction of 1 percent of all professionals. Coming on the heels of a recent hpcalc.org survey which plainly states that algerbraic notation has lost more market share, this news serves to reinforce what we've known all along. Algerbraic is collapsing in complete disarray, as fittingly exemplified by failing dead last in the recent HPcalc.org speed trials.

    You don't need to be a Kreskin to predict alberbraic's future. The hand writing is on the wall: Algerbraic faces a bleak future. In fact there won't be any future at all for algerbraic because it is dying. Things are looking very bad for algerbraic. As many of us are already aware, it continues to lose market share. Red ink flows like a river of blood.

    TI's algerbraic calculator development team is the most endangered of them all, having lost 93% of its core engineers. The sudden and unpleasant departures of long time algerbraic's developers Casio and Sharp only serve to underscore the point more clearly. There can no longer be any doubt: Algerbraic is dying.

    Let's keep to the facts and look at the numbers.

    RPN supporter Jean-Yves Avenard states that there are 70000 propfessional users of calculators. How many users of algerbraic are there? Let's see. The number of RPN versus algerbraic posts on comp.sys.hp48 is roughly in ratio of 500 to 1. Therefore there are about 70000/500 = 14 algerbraic users. Sharp DAL (Direct Algerbraic logic) posts on Usenet are about half of the volume of plain algerbraic posts. Therefore there are about 7 users of DAL. A recent article put DAL at about 50 percent of the algerbraic market. This is consistent with the number of DAL Usenet posts.

    Due to the troubles of mismatched brackers, excessive keystrokes and so on, algerbraic went out of favor with TI and was taken over by Casio who sell another troubled calculator. Now Casio is also dead, its corpse turned over to cheap chinese calculator manufactures.

    All major surveys show that alg has steadily declined in market share. Algerbraic is very sick and its long term survival prospects are very dim. If Algerbraic is to survive at all it will be among vintage calcululator collectors. Algerbraic continues to decay. Nothing short of a miracle could save it at this point in time. For all practical purposes, Algerbraic is dead.

    Fact: Algerbraic is dying

  2. Common RPN Misconceptions by Anonymous Coward · · Score: -1, Offtopic

    I already know algerbraic. Why should I bother learning a new system?

    Because RPN has many advantages. It's quicker, requires less keystrokes and you no longer have to match brackets

    But RPN is a pain in the neck!

    No. Most RPN users agree that RPN is easier then algerbraic. For instance:

    2* (4 + 7) =

    is:

    4 Enter 7 + 2 *

    What's going on here? you are using a stack. Typing 4 then enter puts 4 on the stack. typing 7 + adds 7 to the stack. 2 * multiplies the result by 2. Not only is it easy, but you have saved 2 keystrokes already. now, let's take the square root of the answer:

    ALG: sqr ans = 3 keystrokes
    RPN: sqr 1 keystroke

    Easy!

    So, RPN is faster? Why?

    Well, 2 reasons. Firstly it takes less keystrokes. Secondly, you no longer have to match brackets. This saves a lot of time

    Why would I bother? RPN is as dead as *BSD

    No, There Is A New Hope (TM)! HP is reviving their calculator line! Check out comp.sys.hp48 for details or check out this Press Release

    hang on, if I make a typo I lose my work!

    No. You have an 'undo' key

    But I can't see my working!

    yes you can. The HP4x series of calculators show full symbolic working

  3. huh????? by Sarreq+Teryx · · Score: -1, Troll

    What does algebraic vs. RPN math have to do with why this guy isn't able to get his L2 cache to work under linux??????

    1. Re:huh????? by Anonymous Coward · · Score: -1, Troll

      Dumbass, you've been trolled. -1 Offtopic

  4. Possible solution and directions to go from here. by Manax · · Score: 4, Insightful
    Maybe you should do a little Google search.

    The first link that returns is an old kernel patch, specifically for enabling the L2 cache on a Celeron, although with "powerleap", whatever that is. That is something to try though, just make sure you have a backup kernel to boot from.

    Also, there was a post to lkml with a similar question here without a solution.

    If you don't find a solution, the best place to post isn't slashdot but to LKML.

    --
    "Why should I be content to simply live in this world, when I, as a human being, can CREATE it?" - Oertel
  5. compilation times without a cache? by YE · · Score: 2, Interesting

    Hmmm, I doubt that without the L2 cache compilation times would be anywhere near the Athlon 1800+. More like an Athlon 180+. Compilation is a very random-memory-access process, so it would kill the P4 core with its relatively large memory latency without a cache.

    Try running a test that repeatedly accesses a block of memory 124, 125, 126, 127, 128 etc. KB in size. If you see a significant drop in speed when the block size grows above 128, you probably have your cache.

    Anyway, is it the _kernel_'s job to turn on the cache? Isn't that supposed to be the BIOS' job?

    1. Re:compilation times without a cache? by Manax · · Score: 2, Informative
      You should be able to see the actual cache size that linux sees via /proc/cpuinfo, look for "cache size".

      I agree, it should really be the BIOS' job to turn on the cache, and there were some references to buggy BIOSes in the minor searching I did.

      --
      "Why should I be content to simply live in this world, when I, as a human being, can CREATE it?" - Oertel
    2. Re:compilation times without a cache? by seann · · Score: 1

      as I understand it, the kernel doesn't care what the BIOS says, it goes on its own thing. eg: replace a hard drive with a cdrom on a x86 system, and mount it. The cdrom will mount, despite the BIOS telling you that there is a hard drive there.

      --
      I'm a big retard who forgot to log out of Slashdot on Mike's computer! LOOK AT ME.
    3. Re:compilation times without a cache? by SpaceLifeForm · · Score: 1

      I agree. I have an old 486 that will NOT boot unless I tell the BIOS that there are NO hard drives. I have to boot it via a floppy with a kernel on it.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
    4. Re:compilation times without a cache? by SlipDisc · · Score: 1

      cat /proc/cpuinfo
      processor : 0
      vendor_id : GenuineIntel
      cpu family : 15
      model : 1
      model name : Intel(R) Celeron(R) CPU 1.80GHz
      stepping : 3
      cpu MHz : 1800.328
      cache size : 8 KB
      fdiv_bug : no
      hlt_bug : no
      f00f_bug : no
      coma_bug : no
      fpu : yes
      fpu_exception : yes
      cpuid level : 2
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
      bogomips : 3591.37

    5. Re:compilation times without a cache? by EAJoe · · Score: 1

      L2 is turned on in the BIOS. The kernel can use it, but it doesn't. I don't believe that Celeron /northwood chip, in fact/ can be as slow @3000, as Athlon XP at 1533 (1800+). I can believe in 20% performance drop, not 100%, sorry. Especially when L2 size is not reported properly by kernel... I tried to follow your suggestion of directly measuring performance drop for memory access. I run some old benchmark, but results are not easy to interpret. Performance drops at 32-64K for Cel, and 64-128K chunks for Athlon XP..... ;} It's not so easy, as it seems, maybe you know good cache benchmark for linux ?

  6. YHO YL HAND by Hard_Code · · Score: -1, Offtopic

    You Have Overclocked
    You Lose
    Have A Nice Day

    --

    It's 10 PM. Do you know if you're un-American?
    1. Re:YHO YL HAND by Anonymous Coward · · Score: 0

      How is this offtopic? Buddy overclocked his celeron, burned out the L2 cache, now the L2 doesn't work.

    2. Re:YHO YL HAND by EAJoe · · Score: 1

      ;) I thought the same, until I installed win2k and Sandra benchmarks which proved that L2 feels good and goes like crazy at 3000...

  7. Just a thought.... by ActiveSX · · Score: -1, Troll

    from the matching-what's-reported-with-what's-really-there dept.

    I think Slashdot could use some help with that at times, too.

  8. eat my ass by Anonymous Coward · · Score: -1, Flamebait

    why don't you suck my dick you fucking newbie muslim terrorist democrat scumbag cock ring!

  9. A Suggestion for cliff... by Anonymous Coward · · Score: 0, Funny

    Cliff, I have a suggestion. How about, when you get a question from someone, read it, do a quick 10 second google search for the answer, and if you find the answer, don't post it! Great concept huh!?

    Then, instead of putting the lame question on SLASHDOT for cryin out loud, just email him the answer that you found in 10 seconds!

    -Anonymouse

    -
    I fear bad karma...so I hide.

    1. Re:A Suggestion for cliff... by EAJoe · · Score: 1

      I don't like to be called 'lame' :( - especially when nobody posts the answer to my question. I posted the problem on comp.os.linux.hardware /or kernel, don't remember/, and got no answer. It seems that suggestion of writing to kernel mailing list is the best solution.

  10. Similar.... by doublehelix_nz · · Score: 1

    I have a 1.7ghz p4 williamete with 128kb of L2 (celeron 1.7ghz :P) (stable at 2.1ghz+ with intel OEM HSF rated to 2.4ghz)... Some programs do actualy have trouble determining the cache of the CPU, (2 mIRC scripts say 0kb, and a few other programs display blanks under L2..)

    Dont know if its related but yea......

    1. Re:Similar.... by Gothmolly · · Score: 1

      So your system information tool is mIRC? Wow... you divulged more than you know.

      --
      I want to delete my account but Slashdot doesn't allow it.
    2. Re:Similar.... by Anonymous Coward · · Score: 0

      no its not my main sis info utill, i use AIDA for that....

  11. Please benchmark with cache turned off in BIOS by Adam+J.+Richter · · Score: 1

    Can you please try running your compilation benchmark with the BIOS attempting to turn the cache on and the BIOS attempting to turn the cache on, and verify that the compilation times match? Please try doing the compilation a few times each way, so you can have some sense of the variation not due to this change. That would help confirm whether the cache is indeed off in both cases.

  12. Re:Possible solution and directions to go from her by Build6 · · Score: 2

    although with "powerleap", whatever that is

    "Powerleap" probably refers to the device sold by the company, that allows you to mount certain proc types on motherboards that wouldn't accept them otherwise, either because of different pinouts or whatever reason (IIRC even one where the voltages were different?), within certain limits (I don't think they sell anything that allows you to plug an 486 into a Socket A slot :-).

  13. 128k is the celeron max by sherlockholmespi · · Score: 0, Redundant

    the celeron only come swith 128k that will probbaly help u understand why its only 128k. Ddin't u no that when u bought it?

  14. Hey, Thanks, Slashdot! by Elias+Israel · · Score: 1

    Inspired by this thread, I double-checked one of my systems, found that the L2 cache wasn't being picked up because of a BIOS bug, flashed the BIOS with the newest version and got an instant, free speed boost on an aging machine.

    Thanks, slashdot!

  15. Frys Christmas Deal - Celeron 2Ghz w/ECS P4VXASD2+ by Anonymous Coward · · Score: 0

    I'm having the same problem with a 2ghz 478 pin Celeron. I upgraded the BIOS, have tried various cachesize= hacks and have even tried modifying arch/i386/kernel/bluesmoke.c a bit to force l2size, but that hasn't worked. The code from powerleap doesnt apply to this situation. There is a genuine problem here.

    processor : 0
    vendor_id : GenuineIntel
    cpu family : 15
    model : 2
    model name : Intel(R) Celeron(R) CPU 2.00GHz
    stepping : 7
    cpu MHz : 2000.123
    cache size : 8 KB
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 2
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
    bogomips : 3984.58

    This system was sold for 99$ at Frys Electronics (2ghz cpu 128k L2) (ECS p4 mainboard p4vxasd2+) and hit alot of customers.

    Even with the most recent bios update, the machine still dosen't respond differently when L2 cache is enabled on the bios *or* disabled.

    The problem is that 478 pin Celeron's differ from other chips in some way when it comes to enabling the bios. Please, someone point me in a better direction, I have researched everywhere, and cannot solve this problem myself. Will read replies here.

  16. Re:Frys Christmas Deal - Celeron 2Ghz w/ECS P4VXAS by EAJoe · · Score: 1

    It's not the hardware problem! - in win2k with drivers from the MB's CD, Sandra cache benchmark shows great results for L2 cache, below 128KB block size beating at 3GHz everything except Xeon 2800. So the cache is definitely 128KB, running with full CPU clock. Only linux kernels are not able to switch it on, because I can't believe that the CPU itself can be twice as slow as Athlon XP at the same clock frequency. (compilation times for Cel@3000 similar to AthlonXP@1533).

  17. Re:Possible solution and directions to go from her by EAJoe · · Score: 1

    I made google search, of course, found question you mentioned, but I have different problem. POST on my PC doesn't show L2 cache size, (or it disappears too fast ;] - I'll check), but in Win2K everything is OK in Sandra L2 cache benchmarks. Cache works VERY fast and performance drops above 128KB blocks. Probably you are right suggesting to directly contact people working on kernel, thx