mersenneforum.org  

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

Reply
 
Thread Tools
Old 2017-08-25, 15:47   #1
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

22·3·163 Posts
Default Memory Thrashing

Is there any definite way to detect memory thrashing?

When Prime95 is running P-1 or ECM, it runs for two seconds and pauses for one second. I have tried different memory settings from 256M to 1024M. This has no affect.

Ideas?

storm5510 is offline   Reply With Quote
Old 2017-08-25, 17:44   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

101010000111002 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Is there any definite way to detect memory thrashing?

When Prime95 is running P-1 or ECM, it runs for two seconds and pauses for one second. I have tried different memory settings from 256M to 1024M. This has no affect.

Ideas?

Use top(1) or the equivalent (<blah> Manager in Windows, where I thing <blah> is Task but I may be wrong) to see whether the active virtual memory used by Prime95 is comparable with, or greater than, the amount of physical memory (or assigned memory if you are running in a virtual machine).

Thrashing is often indicated by excessive disk activity, so take a look at the blinkenlights if you have them on your machine.
xilman is offline   Reply With Quote
Old 2017-08-26, 00:12   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

7A416 Posts
Default

Quote:
Originally Posted by xilman View Post
Use top(1) or the equivalent (<blah> Manager in Windows, where I thing <blah> is Task but I may be wrong) to see whether the active virtual memory used by Prime95 is comparable with, or greater than, the amount of physical memory (or assigned memory if you are running in a virtual machine).

Thrashing is often indicated by excessive disk activity, so take a look at the blinkenlights if you have them on your machine.
I am unsure we are writing about the same thing. Excessive disk activity usually indicates paging, or swap, file activity. I do not see any of this. I do not run any VM's.
storm5510 is offline   Reply With Quote
Old 2017-08-26, 03:31   #4
axn
 
axn's Avatar
 
Jun 2003

2·3·7·112 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Excessive disk activity usually indicates paging, or swap, file activity.
aka memory trashing... What else did you mean when you said memory thrashing?

Last fiddled with by axn on 2017-08-26 at 03:32 Reason: trash->thrash
axn is offline   Reply With Quote
Old 2017-08-26, 17:50   #5
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

22·3·163 Posts
Default

Quote:
Originally Posted by axn View Post
aka memory trashing... What else did you mean when you said memory thrashing?
If RAM and HD are the same in this context, then there is no other meaning.

I have the day/night RAM setting at the minimum required to do P-1 tests. 512MB. That is where I will leave it.

As for the stop/start cycles, it is possible other things could be involved, given the nature of Windows 10 behavior at times.
storm5510 is offline   Reply With Quote
Old 2017-08-26, 18:14   #6
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

22×1,217 Posts
Default

Quote:
Originally Posted by storm5510 View Post
If RAM and HD are the same in this context, then there is no other meaning.
Huh? What context? In what way are RAM and HD the same?
Are you really saying that P-1 is accessing memory a lot, the way someone else who says "memory thrashing" means "lots of memory being paged to disk"?

I'm afraid we're not following what you are trying to say. Can you spell it out?
VBCurtis is offline   Reply With Quote
Old 2017-08-26, 18:44   #7
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,761 Posts
Default

Disk thrashing occurs when pages are swapped in to and out of secondary storage, when the primary storage is not big enough to hold all activity. Thrashing, I guess, must refer to the read/write head going berserk.
paulunderwood is offline   Reply With Quote
Old 2017-08-26, 18:47   #8
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Disk thrashing occurs when pages are swapped in to and out of secondary storage, when the primary storage is not big enough to hold all activity. Thrashing, I guess, must refer to the read/write head going berserk.
from Wikipedia:
Quote:
In computer science, thrashing occurs when a computer's virtual memory subsystem is in a constant state of paging, rapidly exchanging data in memory for data on disk, to the exclusion of most application-level processing.[1] This causes the performance of the computer to degrade or collapse. The situation may continue indefinitely until the underlying cause is addressed.

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.
science_man_88 is offline   Reply With Quote
Old 2017-08-26, 19:37   #9
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

22·1,217 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Disk thrashing occurs when pages are swapped in to and out of secondary storage, when the primary storage is not big enough to hold all activity. Thrashing, I guess, must refer to the read/write head going berserk.
Yep! But OP seems to think there is a similar item for "memory thrashing"; he said (in post 3) his disk isn't getting hit much. That's what I am confused about.
VBCurtis is offline   Reply With Quote
Old 2017-08-26, 20:02   #10
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

22×5×72×11 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Yep! But OP seems to think there is a similar item for "memory thrashing"; he said (in post 3) his disk isn't getting hit much. That's what I am confused about.
As am I.
xilman is offline   Reply With Quote
Old 2017-08-26, 20:06   #11
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Yep! But OP seems to think there is a similar item for "memory thrashing"; he said (in post 3) his disk isn't getting hit much. That's what I am confused about.
could be ( again using wikipedia, same page actually):

cache thrashing
TLB ( translation lookaside buffer) thrashing
Heap thrashing
process thrashing

at least by the same naming scheme.
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


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:28.


Sun Aug 1 18:28:30 UTC 2021 up 9 days, 12:57, 0 users, load averages: 2.56, 2.50, 2.60

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.