mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2009-08-13, 23:48   #78
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

22×7×13×19 Posts
Default

Quote:
Originally Posted by patrik View Post
Just to be clear: But v. 25.9 does not have the line
Code:
if (num_logical_processors <= cores) CPU_HYPERTHREADS = 1;
where CPU_HYPERTHREADS then is changed from 2 to 1.
Ah, you have an early 25.9 build. That line was added for an i7 with hyperthreading disabled in the BIOS. CPUID reports the chip can run 8 threads on 4 cores but the OS says there are only 4 logical processors. The logical assumption is that hyperthreading has been disabled in the BIOS.
Prime95 is offline   Reply With Quote
Old 2009-08-14, 00:32   #79
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

52×29 Posts
Default

Did anyone try to use 8 hyperthreads with the Core i7 ... is prime95 faster than 4 'real ones'
joblack is offline   Reply With Quote
Old 2009-08-14, 01:23   #80
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

691610 Posts
Default

Quote:
Originally Posted by joblack View Post
Did anyone try to use 8 hyperthreads with the Core i7 ... is prime95 faster than 4 'real ones'
There were a couple of threads on that. I don't remember the exact results, but as I recall multithreading (running 4 workers each using 2 threads) was worth plus-or-minus a few percent.

Last fiddled with by Prime95 on 2009-08-14 at 01:24
Prime95 is offline   Reply With Quote
Old 2009-08-15, 04:00   #81
jinydu
 
jinydu's Avatar
 
Dec 2003
Hopefully Near M48

110110111102 Posts
Default

I'm trying to install this on Linux; but it isn't working. After unzipping and then untarring, a bunch of files show up as expected. But typing ./mprime then gives the error messages:

./mprime: /lib/i686/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./mprime)
./mprime: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found (required by ./mprime)
jinydu is offline   Reply With Quote
Old 2009-08-15, 04:46   #82
Paulie
 
Paulie's Avatar
 
Aug 2002

223 Posts
Default

The link in item 0 for the Mac GUI version should be Prime95-MacOSX-2511.zip
Paulie is offline   Reply With Quote
Old 2009-08-15, 08:39   #83
lfm
 
lfm's Avatar
 
Jul 2006
Calgary

1A916 Posts
Default

Quote:
Originally Posted by jinydu View Post
I'm trying to install this on Linux; but it isn't working. After unzipping and then untarring, a bunch of files show up as expected. But typing ./mprime then gives the error messages:

./mprime: /lib/i686/libpthread.so.0: version `GLIBC_2.3.2' not found (required by ./mprime)
./mprime: /lib/i686/libc.so.6: version `GLIBC_2.3.4' not found (required by ./mprime)
Those are system libraries. you probably have older versions on your system. You should consider upgrading your Linux distro.

Alternatively try to find a static linked version of mprime. I'm not sure if there is one currently offered.
lfm is offline   Reply With Quote
Old 2009-08-19, 17:11   #84
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

103458 Posts
Default

Quote:
Originally Posted by Prime95 View Post
There were a couple of threads on that. I don't remember the exact results, but as I recall multithreading (running 4 workers each using 2 threads) was worth plus-or-minus a few percent.
Is this what you were thinking of??

http://www.mersenneforum.org/showthread.php?t=11025

Specifically the results seen by Phantomas with AffinityScramble?
petrw1 is offline   Reply With Quote
Old 2009-08-22, 00:39   #85
nucleon
 
nucleon's Avatar
 
Mar 2003
Melbourne

51510 Posts
Default

I'll add my machine in the 'me too' basket. I have a corei7 with 6GiB ram.

Yep I have the incorrect detection of core/HT. 25.11 detects 8 core, 1x hyperthread. 25.09 detects correctly 4core, 2x hyperthread.

Setting the following in local.txt fixed things as a workaround:
NumCPUs=4
CpuNumHyperthreads=2
CpuSpeed=2699

Of course CpuSpeed is different depending which corei7 you have.

-- Craig
nucleon is offline   Reply With Quote
Old 2009-09-06, 21:35   #86
patrik
 
patrik's Avatar
 
"Patrik Johansson"
Aug 2002
Uppsala, Sweden

1101010002 Posts
Default CPUID on Core i7

Quote:
Originally Posted by Prime95 View Post
Ah, you have an early 25.9 build. That line was added for an i7 with hyperthreading disabled in the BIOS. CPUID reports the chip can run 8 threads on 4 cores but the OS says there are only 4 logical processors. The logical assumption is that hyperthreading has been disabled in the BIOS.
I have now investigated the CPUID values of my Core i7 a little further. I have learnt a little assembly language and have written two small programs that directly call CPUID and return some value in the exit code. It seems that CPUID.01H returns 16 in EBX[Bits 16-23], and CPUID.04H (and with ECX=0) returns 7 in ECA[Bits 26-33] (meaning 8 cores). These values are the same whether or not I disable hyper-threading in the BIOS.

/proc/cpuinfo behaves as expected and shows 8 logical processors with HT enabled and 4 when disabled.
Code:
::::::::::::::
readcores.asm
::::::::::::::
section .text

   global _start

   _start:
      mov     eax, 04h            ; EAX argument to CPUID
      mov     ecx, 0              ; ECX argument to CPUID
      cpuid                       ; Perform the CPUID
      mov     ebx, eax            ; Copy EAX to EBX
      shr     ebx, 26             ; Get bits 26-33
      mov     eax, 1              ; exit() system call
      int   80h                   ; Return the results as exit value
::::::::::::::
readhts.asm
::::::::::::::
section .text

   global _start

   _start:
      mov     eax, 01h            ; EAX argument to CPUID
      cpuid                       ; Perform the CPUID
      shr     ebx, 16             ; Get bits 16-23
      mov     eax, 1              ; exit() system call
      int   80h                   ; Return the results as exit value
Note: Perhaps I should add that the programs were compiled (assembled?), linked and run with
Code:
nasm -f elf64 readhts.asm
ld -o readhts readhts.o
./readhts
echo $?
Attached Files
File Type: txt proc_cpuinfo_i7_ht_enabled.txt (7.0 KB, 99 views)

Last fiddled with by patrik on 2009-09-06 at 21:40 Reason: Added note
patrik is offline   Reply With Quote
Old 2009-09-06, 22:33   #87
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

154048 Posts
Default

Quote:
Originally Posted by patrik View Post
CPUID.01H returns 16 in EBX[Bits 16-23], and CPUID.04H (and with ECX=0) returns 7 in ECA[Bits 26-33] (meaning 8 cores).
Which is dead wrong according to my reading of the Intel CPUID documentation. I checked the i7 errata and nothing alarming is there.

Did I read the Intel docs incorrectly? Anyone with ideas for a workaround?
Prime95 is offline   Reply With Quote
Old 2009-09-17, 13:48   #88
monst
 
monst's Avatar
 
Mar 2007

179 Posts
Default Stopping Prime95 for a few hours a week

Hello,

I need to stop Prime95 for an hour or so at a time, a few times a week, on one of my machines. I've been digging through the documentation and can't seem to find the settings to do this. (I know I've seen this before somewhere.)

Can someone please point me in the right direction?

Thanks,

-- Rich
monst is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 version 27.3 Prime95 Software 148 2012-03-18 19:24
Prime95 version 26.3 Prime95 Software 76 2010-12-11 00:11
Prime95 version 25.5 Prime95 PrimeNet 369 2008-02-26 05:21
Prime95 version 25.4 Prime95 PrimeNet 143 2007-09-24 21:01
When the next prime95 version ? pacionet Software 74 2006-12-07 20:30

All times are UTC. The time now is 13:48.

Tue Jul 14 13:48:06 UTC 2020 up 111 days, 11:21, 2 users, load averages: 1.60, 1.36, 1.42

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.