mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-03-15, 05:50   #1
xorbe
 
xorbe's Avatar
 
Feb 2009

73 Posts
Default 64-bit lnx vs win client, Prime95.exe under Wine?

With i7 and 8 threads, seems like the Windows client is ~20% faster on P-1.

So, does Prime95.exe work under Wine, and would it be multi-threaded? And would it actually help, or is this a scheduler thing or a runtime code path selection thing?
xorbe is offline   Reply With Quote
Old 2009-03-15, 08:19   #2
lfm
 
lfm's Avatar
 
Jul 2006
Calgary

42510 Posts
Default

Quote:
Originally Posted by xorbe View Post
With i7 and 8 threads, seems like the Windows client is ~20% faster on P-1.

So, does Prime95.exe work under Wine, and would it be multi-threaded? And would it actually help, or is this a scheduler thing or a runtime code path selection thing?
are they the same version of gimps? both version 25.9 build 3 or what?
lfm is offline   Reply With Quote
Old 2009-03-15, 09:52   #3
xorbe
 
xorbe's Avatar
 
Feb 2009

73 Posts
Default

I need to reboot back into Windows for A-B-A to make sure it's not just slowing down, but yeah I tried 32- and 64- bit both v25.8 and v25.9
xorbe is offline   Reply With Quote
Old 2009-03-15, 18:13   #4
xorbe
 
xorbe's Avatar
 
Feb 2009

73 Posts
Default

Yeah booted back to Windows, win64 client is at least 33% faster. It seems to be 50-60% vs 82-85% cpu utilization, Linux vs Vista, that is. 1630s vs 1220s.

Due to utilization being low in Linux, seems like that's a scheduler thing, or a software synchronization thing.

I can at least try a different scheduler in Linux, but later though.

Last fiddled with by xorbe on 2009-03-15 at 18:16
xorbe is offline   Reply With Quote
Old 2009-03-15, 21:37   #5
Kevin
 
Kevin's Avatar
 
Aug 2002
Ann Arbor, MI

43310 Posts
Default

cat /proc/cpuinfo

Make sure the cpu mhz entry is what it should be. Intel's SpeedStep doesn't work well on Linux sometimes. On my new Linux computer, my processor was underclocked by about 20% until I turned off SpeedStep in the BIOS.
Kevin is offline   Reply With Quote
Old 2009-03-16, 00:19   #6
jrk
 
jrk's Avatar
 
May 2008

1,093 Posts
Default

Quote:
Originally Posted by Kevin View Post
cat /proc/cpuinfo

Make sure the cpu mhz entry is what it should be. Intel's SpeedStep doesn't work well on Linux sometimes. On my new Linux computer, my processor was underclocked by about 20% until I turned off SpeedStep in the BIOS.
It was working, but it is set up to ignore low priority tasks when determining whether to start performance mode. So if the only thing running is mprime, which runs at idle priority, the CPU will stay in power saving mode.

xorbe needs to check that he doesn't have CPU scaling enabled, and either disable it or set mprime to run at a higher priority.
jrk is offline   Reply With Quote
Old 2009-03-16, 01:35   #7
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

115710 Posts
Default

Quote:
Originally Posted by jrk View Post
It was working, but it is set up to ignore low priority tasks when determining whether to start performance mode. So if the only thing running is mprime, which runs at idle priority, the CPU will stay in power saving mode.

xorbe needs to check that he doesn't have CPU scaling enabled, and either disable it or set mprime to run at a higher priority.
Does anyone know the minimum priority level a process can run at without triggering CPU frequency scaling on Linux? Is there a standard or does it vary between each Linux distribution?
geoff is offline   Reply With Quote
Old 2009-03-16, 04:14   #8
jrk
 
jrk's Avatar
 
May 2008

1,093 Posts
Default

Quote:
Originally Posted by geoff View Post
Does anyone know the minimum priority level a process can run at without triggering CPU frequency scaling on Linux? Is there a standard or does it vary between each Linux distribution?
I believe it is the lowest priority only that is ignored, but I am not 100% sure. I don't have the cpu governor enabled here to check.

But in any case if you want the governor to not ignore the nice'd tasks, you can do:

echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

For each cpu0, cpu1, etc however many cpus you have.
jrk is offline   Reply With Quote
Old 2009-03-17, 01:28   #9
xorbe
 
xorbe's Avatar
 
Feb 2009

73 Posts
Default

BIOS does not have auto-anything enabled, and it is pegged at 3657 according to /proc/cpuinfo. I don't even have the cpufreq module loaded. I've even reniced the threads to priority 0. The % utilization simply trails Win64 -- either Linux scheduler is bouncing the threads around, or not scheduling well, or the Linux client doesn't synchronize as well. (Win64 client achieves 82-85% utilization.) I could not figure out how to reboot with a different CPU scheduler -- maybe that's only for the IO scheduler.

Code:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 
18493 xorbe     20   0  539m 396m 2788 S   62  6.6   4:46.94 mprime64-258
18492 xorbe     20   0  539m 396m 2788 S   62  6.6   4:57.95 mprime64-258
18095 xorbe     20   0  539m 396m 2788 S   58  6.6   4:56.52 mprime64-258
18489 xorbe     20   0  539m 396m 2788 S   58  6.6   5:04.49 mprime64-258
18491 xorbe     20   0  539m 396m 2788 S   58  6.6   5:06.22 mprime64-258
18490 xorbe     20   0  539m 396m 2788 R   55  6.6   5:08.20 mprime64-258
18488 xorbe     20   0  539m 396m 2788 S   52  6.6   4:18.76 mprime64-258
18494 xorbe     20   0  539m 396m 2788 S   52  6.6   4:35.75 mprime64-258

Last fiddled with by xorbe on 2009-03-17 at 01:30
xorbe is offline   Reply With Quote
Old 2009-03-17, 01:46   #10
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

2×29×109 Posts
Default

Does the CPU use go up if you do

taskset -p 01 18493
taskset -p 02 18492
taskset -p 04 18095
taskset -p 08 18489
taskset -p 10 18491
taskset -p 20 18490
taskset -p 40 18488
taskset -p 80 18494

to lock each task onto its own execution thread?
fivemack is offline   Reply With Quote
Old 2009-03-17, 02:19   #11
jrk
 
jrk's Avatar
 
May 2008

1,093 Posts
Default

Try turning off the group scheduler (CONFIG_GROUP_SCHED). That will require a kernel recompile.
jrk is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running MFAKTC in WINE? Rodrigo GPU Computing 13 2017-08-10 04:10
GUI for Mprime/running Prime95 under WINE? ixfd64 Software 5 2011-02-16 15:21
split a prime95 queue & client installation joblack Information & Answers 1 2009-01-06 08:45
Prime95 Client problem GSV3MiaC Software 21 2004-01-14 14:02
Prime95 client stuck? edorajh Software 7 2003-11-08 17:38

All times are UTC. The time now is 18:58.

Sat Oct 24 18:58:56 UTC 2020 up 44 days, 16:09, 0 users, load averages: 0.99, 1.48, 1.77

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.