mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2009-02-25, 00:30   #12
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

Oh, that's right. You could try to call clock() every so often and add up elapsed seconds or so, but maybe it's easier to use getrusage() right away.

Alex
akruppa is offline   Reply With Quote
Old 2009-02-25, 08:13   #13
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

10248 Posts
Default

The other issue that needs attention when the cycle counter is used for timing is that the counters on the different cores of x86 multi-core processors are not synchronised.

So, unless a process is forced onto the same processor core, two successive values cannot be used simply for interval timing.

Brian Gladman
Brian Gladman is offline   Reply With Quote
Old 2009-02-25, 12:33   #14
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

I learned that the hard way recently. I had a real hard time getting reliable timings (using the cycle-counter) for our Schönhage-Strassen code, until finally the cpus in our dual Opteron nodes were desynchronized enough that I started getting negative timings. That gave it away. numactl to the rescue!

Alex
akruppa is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search result limit davar55 Forum Feedback 15 2019-02-26 15:41
Poly search candidates schickel Msieve 32 2013-11-05 19:11
Poly Search vs Sieving times EdH Factoring 10 2013-10-14 20:00
GNFS poly selection frmky Factoring 14 2012-07-23 01:57
gpu poly search error bdodson Msieve 10 2010-11-09 19:46

All times are UTC. The time now is 01:05.


Sat Jul 17 01:05:48 UTC 2021 up 49 days, 22:53, 1 user, load averages: 2.23, 1.85, 1.57

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.