![]() |
|
|
#1 |
|
Banned
"Luigi"
Aug 2002
Team Italia
32·5·107 Posts |
Here is my Factor5 source code.
It's far from optimized, and I'm studying a couple cases where it segfaulted. Apart from that it is reliable as for the results it gives, and is multi-thread ready. I'd appreciate some tests on quad-core environments. Luigi P.S. Would it be possible to make this thread sticky? Last fiddled with by ET_ on 2007-12-15 at 17:11 Reason: Adding P.S. |
|
|
|
|
|
#2 |
|
Sep 2004
B0E16 Posts |
Luigi,
Got your email. You need to rename factor5.exe to factor5.pdf to cheat gmail control. Carlos |
|
|
|
|
|
#3 |
|
Sep 2004
B0E16 Posts |
Tested on my quad-core and it doesn't work with 4 threads only with 2. In the latter case the processor is always below 48%.
Of course it works running 4 clients with one thread turned on with setting the affinity to each core. Carlos Last fiddled with by em99010pepe on 2007-12-15 at 19:59 |
|
|
|
|
|
#4 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
32×5×107 Posts |
Quote:
It seems that I have to find out a quad-core to make some testing work. ![]() "Doesn't work" means that only two threads keep on working, or that the whole program burst into pieces? Strange enough, it works fine on dual-core CPUs... I'll investigate. Luigi. Last fiddled with by ET_ on 2007-12-16 at 09:24 |
|
|
|
|
|
|
#5 | |
|
Sep 2004
1011000011102 Posts |
Quote:
When starting with 4 the CPU goes up to 99% and then reduces to 48%... The quad-core isn't online so I can't give you remote access to it...maybe this week.... Carlos |
|
|
|
|
|
|
#6 | |
|
Jul 2006
Calgary
52·17 Posts |
Quote:
time ./factor5 2147483647 1 68 4 Factor5 v. 5.01 - December 27th, 2007 - AMD64/Linux64 compile - GMP 4.2.2 finds the same 3 factors and takes ... real 35m36.482s user 126m16.486s sys 0m0.480s with some background processing also going on. Last fiddled with by lfm on 2008-09-15 at 05:10 |
|
|
|
|
|
|
#7 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
113178 Posts |
Quote:
![]() You are right, threads may stop with a few seconds of time difference because of the implementation. BTW, 88.9% of efficiency sounds acceptable ![]() Luigi |
|
|
|
|
|
|
#8 |
|
Sep 2004
2×5×283 Posts |
I tried once again (windows version, Q6600@2.9GHz) and I still don't get 100%, only 40%.
Edit: Running factor5.exe 2147483647 1 68 1, I get 25% CPU usage Running factor5.exe 2147483647 1 68 2, I get 47% CPU usage Running factor5.exe 2147483647 1 68 3, doesn't work Running factor5.exe 2147483647 1 68 4, I get (28-40)% CPU usage Carlos Last fiddled with by em99010pepe on 2008-09-17 at 10:38 |
|
|
|
|
|
#9 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
481510 Posts |
Quote:
![]() Maybe something on the Cygwin environment or the pthreads lib doesn't work correctly. Anyway, it does for 2 cores... One possibility is to start your machine with some Linux CD distro and launch the Linux version to see if the problem goes away. If it does, I will delve into the Cygwin environment, if not, it could be some BIOS settings that prevent use of full 4-core power and memory addressing. Luigi |
|
|
|
|
|
|
#10 |
|
Sep 2004
B0E16 Posts |
|
|
|
|
|
|
#11 |
|
Banned
"Luigi"
Aug 2002
Team Italia
32·5·107 Posts |
Thank you Carlos, it's "my" fault then
I will see what I can do to give full power to Windows users, though it will be hard without a quad at home.If I get Factor5 compile under VisualStudio, it will be easier to address the thread system issue... and to get a working GUI already on the to-do list! Luigi P.S. There have been thread issues with Cygwin DLL vers. 1.5.10. Did you try to get last DLL from Cygwin site? Meanwhile I will recheck my development environment. Last fiddled with by ET_ on 2008-09-17 at 12:43 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Source Code for msieve ? | mohamed | Msieve | 8 | 2013-12-14 01:04 |
| Source code for my program | Sam Kennedy | Factoring | 7 | 2012-11-22 18:24 |
| PrimeNet source code? | ixfd64 | PrimeNet | 8 | 2009-12-11 14:26 |
| llrnet - source code? | reezer | Prime Sierpinski Project | 11 | 2009-09-11 10:47 |
| Support for other OSs on x86/source code | reezer | Software | 1 | 2007-02-08 12:57 |