Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : General : PC falling asleep without swap file
New Topic New Poll Post Reply
Poster Message
adS
Level: Master Delver
Avatar
Rank Points: 214
Registered: 05-02-2010
IP: Logged
icon PC falling asleep without swap file (0)  
A question to the PC gurus (I am an iSeries professional):

I have a PC (windows 7) with 16GB.
That should be enough for everything. Hence I decided to use no swap file at all.

I noticed that programs seem to fall asleep after some time: When I switch back to them it takes several seconds to wake them.

I have no idea why. Then I had an idea - use a swap file although I have so much RAM.

Now this strange effect has disappeared.
Does anybody know what is going on here?

Regards,

adS


____________________________
pauca sed matura
01-31-2016 at 08:20 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
disoriented
Level: Smitemaster
Avatar
Rank Points: 2397
Registered: 08-07-2007
IP: Logged
icon Re: PC falling asleep without swap file (0)  
Not sure if at all relevant

http://lifehacker.com/5426041/understanding-the-windows-pagefile-and-why-you-shouldnt-disable-it

____________________________
34th Skywatcher

Best to PM me, since I might miss your message on CaravelNet chat.
01-31-2016 at 08:35 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
adS
Level: Master Delver
Avatar
Rank Points: 214
Registered: 05-02-2010
IP: Logged
icon Re: PC falling asleep without swap file (0)  
disoriented wrote:
Not sure if at all relevant

http://lifehacker.com/5426041/understanding-the-windows-pagefile-and-why-you-shouldnt-disable-it

I am afraid it is not :(

adS

____________________________
pauca sed matura
01-31-2016 at 09:02 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Banjooie
Level: Smitemaster
Avatar
Rank Points: 1645
Registered: 12-12-2004
IP: Logged
icon Re: PC falling asleep without swap file (+1)  
You decided you didn't need a swap file based on an arbitrary RAM point, and discovered removing it had side effects, which went away when you put the swap file back.

I believe this is where science tells you that your hypothesis is incorrect, and you do, in fact, need a swap file.
02-03-2016 at 09:30 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
disoriented
Level: Smitemaster
Avatar
Rank Points: 2397
Registered: 08-07-2007
IP: Logged
icon Re: PC falling asleep without swap file (0)  
I think he wants to know why he needs a swap file.

____________________________
34th Skywatcher

Best to PM me, since I might miss your message on CaravelNet chat.
02-03-2016 at 10:04 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
lepke1979
Level: Goblin
Rank Points: 21
Registered: 05-04-2015
IP: Logged
icon Re: PC falling asleep without swap file (0)  
Is it usually the same program that does this? Do you hear the hard drive spinning?

If I had to guess, while Windows isn't making use of a swap file. Perhaps the program itself stores data on the hard drive (in case of a crash or something) and when you try to use it again the waking up is it retrieving the data.
02-04-2016 at 04:43 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
adS
Level: Master Delver
Avatar
Rank Points: 214
Registered: 05-02-2010
IP: Logged
icon Re: PC falling asleep without swap file (0)  
lepke1979 wrote:
Is it usually the same program that does this? Do you hear the hard drive spinning?

All programs and I never hear any spinning :)



If I had to guess, while Windows isn't making use of a swap file. Perhaps the program itself stores data on the hard drive (in case of a crash or something) and when you try to use it again the waking up is it retrieving the data.

Why should the situation improve with a swap file?

This is very strange.

By the way, my C: drive is an SSD.

Best wishes,

adS



____________________________
pauca sed matura
02-04-2016 at 03:06 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5124
Registered: 02-04-2003
IP: Logged
icon Re: PC falling asleep without swap file (0)  
Ah, the old "no moving parts" trick.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
02-04-2016 at 08:22 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
adS
Level: Master Delver
Avatar
Rank Points: 214
Registered: 05-02-2010
IP: Logged
icon Re: PC falling asleep without swap file (0)  
mrimer wrote:
Ah, the old "no moving parts" trick.

The problem is - you get used to it.

I even created (via the bios) a ram drive with 4GB which I use for temporary files.
This one is really fast :)

Best wishes,

adS



____________________________
pauca sed matura
02-05-2016 at 03:36 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
lepke1979
Level: Goblin
Rank Points: 21
Registered: 05-04-2015
IP: Logged
icon Re: PC falling asleep without swap file (0)  
adS wrote:

Why should the situation improve with a swap file?

This is very strange.

By the way, my C: drive is an SSD.

Best wishes,

adS



Don't think it would necessarily improve anything. Just seeing it as a possibility. But since you have an SSD, can probably rule that out. So I got nothing.

At this point, I'll use tried and true IT answer on what the problem is: Virus attack :P

https://www.youtube.com/watch?v=DlbrL1H1ngs
02-06-2016 at 02:26 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
disoriented
Level: Smitemaster
Avatar
Rank Points: 2397
Registered: 08-07-2007
IP: Logged
icon Re: PC falling asleep without swap file (+3)  
http://superuser.com/questions/810170/should-i-disable-swap-file-if-i-have-lots-of-ram-or-should-i-move-it-to-a-virtua

Excerpt:
No matter how much RAM you have, you want the system to be able to use it efficiently. Having no paging file at all forces the operating system to use RAM inefficiently for two reasons. First, it can't make pages discardable, even if they haven't been either accessed or modified in a very long time, which forces the disk cache to be smaller. Second, it has to reserve physical RAM to back allocations that are very unlikely to ever require it (for example, a private, modifiable file mapping), leading to a case where you can have plenty of free physical RAM and yet allocations are refused to avoid overcommitting.

Consider, for example, if a program makes a writable, private memory mapping of a 4GB file. The OS has to reserve 4GB of RAM for this mapping, because the program could conceivably modify every byte and there's no place but RAM to store it. So immediately, 4GB of RAM is basically wasted (it can be used to cache clean disk pages, but that's about it).

You need to have a page file if you want to get the most out of your RAM, even if it's never used. It acts as an insurance policy that allows the operating system to actually use the RAM it has, rather than having to reserve it for possibilities that are extraordinarily unlikely.

The people who designed your operating system's behavior are not fools. Having a paging file gives the operating system more choices, and it won't make bad ones.

There's no point in trying to put a paging file in RAM. And if you have lots of RAM, the paging file is very unlikely to be used (it just needs to be there) so it doesn't particularly matter how fast the device it is on is.

____________________________
34th Skywatcher

Best to PM me, since I might miss your message on CaravelNet chat.
02-06-2016 at 07:10 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : General : PC falling asleep without swap file
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.