mersenneforum.org  

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

Reply
 
Thread Tools
Old 2017-08-27, 00:39   #12
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

111101001002 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
from Wikipedia:
...The term is also used for various similar phenomena, particularly movement between other levels of the memory hierarchy, where a process progresses slowly because significant time is being spent acquiring resources.
This is what I am referring to. In this case, it does not progress slowly, it pauses, then resumes normally.
storm5510 is offline   Reply With Quote
Old 2017-08-27, 00:51   #13
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This is what I am referring to. In this case, it does not progress slowly, it pauses, then resumes normally.
do you know the cache sizes etc. that might help if it's a memory thing, are you running anything else, and if so does it have a pause while running for it ?
science_man_88 is offline   Reply With Quote
Old 2017-08-27, 03:03   #14
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

3,313 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This is what I am referring to. In this case, it does not progress slowly, it pauses, then resumes normally.
If it matters, I was confused by the term "memory thrashing" and initially I thought you meant just on the memory bus to RAM, but then I wasn't sure if your system was using too much memory and you meant it was paging to disk (I'd call that swapfile thrashing though).

As long as we're ruling out pagefile thrashing and you just meant the RAM itself...

There are in fact some weird memory effects I've seen with Prime95, specifically with multiple cores in a single worker. I don't know about the factoring algos though, I've only seen it with LL tests.

With large exponents (really, large FFT sizes), it's not too bad to have 14+ cores in a single worker, and others have done 20+. When I do that, looking at the CPU shows each core is close to 100% usage so there's not too much "waste".

The weirdness comes when doing small FFT sizes, and I mean like 1MB or smaller. In those cases, each core is using far less than it's full potential, and I think as George explained it, those smaller sizes show the disparity between CPU and memory speed more clearly. They spend more time shuffling memory around between each "chunk" of work the cores are doing, so they idle quite a bit.

In extreme cases, like when I was doing all exponents below 1e6 in size, it was horrible, like each core in a 10-core worker was maybe doing 20%. It really made no sense that way and was better to actually run 10 single-core workers.

So... you may have a situation where CPU is finishing work faster than memory can do it's thing.
Madpoo is offline   Reply With Quote
Old 2017-08-27, 16:00   #15
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

7A416 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
do you know the cache sizes etc. that might help if it's a memory thing, are you running anything else, and if so does it have a pause while running for it ?
No, not running anything else. Take a look at the image below.

Quote:
Originally Posted by Madpoo
So... you may have a situation where CPU is finishing work faster than memory can do it's thing.
I never thought about this. It may be possible. They are DDR4-2400's I also considered that it may have something to do with the old GTX-480; buffering and so on. I am not sure how that works.

I got the term "thrashing" from George's readme.txt document which he includes with Prime95:

Quote:
Be conservative. It is better to set the memory too low than too high. Setting the value too high can cause thrashing which slows down all programs. Remember, the program will only use the extra memory in stage 2 of P-1 factoring
This i7 has four cores and eight threads. It was suggested that I use one worker with four cores. It worked out well after a bit of adjusting. I can look at the utilization in the task manager. Sometimes, the four cores are maxed, but most of the time, not. It varies.
Attached Thumbnails
Click image for larger version

Name:	cpu_cache.JPG
Views:	72
Size:	52.2 KB
ID:	16739  
storm5510 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Hybrid Memory Cube" offers 1 Tb/s memory bandwith at just 1.4 mW/Gb/s ixfd64 Hardware 4 2011-12-14 21:24
Could I possibly be thrashing my computer? JuanTutors Hardware 33 2010-11-18 23:04
How much memory do you have? fivemack Factoring 17 2009-08-23 16:00
available memory Unregistered Information & Answers 2 2008-04-11 07:40
P-1 Memory... Xyzzy Marin's Mersenne-aries 7 2004-03-12 13:34

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


Sun Aug 1 18:27:53 UTC 2021 up 9 days, 12:56, 0 users, load averages: 2.14, 2.43, 2.58

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.