Click here to Skip to main content
15,886,788 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
CodeWraith16-Jan-21 10:48
CodeWraith16-Jan-21 10:48 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
OriginalGriff16-Jan-21 11:06
mveOriginalGriff16-Jan-21 11:06 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
CodeWraith16-Jan-21 12:09
CodeWraith16-Jan-21 12:09 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
Gary R. Wheeler16-Jan-21 11:55
Gary R. Wheeler16-Jan-21 11:55 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
rnbergren17-Jan-21 3:17
rnbergren17-Jan-21 3:17 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
obermd18-Jan-21 6:38
obermd18-Jan-21 6:38 
GeneralRe: Who would win a knife fight between Justin Bieber and Nickleback? Pin
Mike Hankey16-Jan-21 12:14
mveMike Hankey16-Jan-21 12:14 
GeneralFlushing to paging disk Pin
trønderen16-Jan-21 5:25
trønderen16-Jan-21 5:25 
There was another question (in General Programming) regarding RAM extension from 8 to 16 GByte. I was tempted to add a comment: Well, if you can't make it work, then relax: You need no more that 8 GByte!

I didn't make the comment. This user might belong to that tiny little fraction of users actually running applications with huge working sets. Every now and then, when meeting someone in person (not on the net) claiming that then "must" have 16 GByte, or their PC will be slow as a turtle, I ask them: Show me! Reboot your PC, start the programs you usually have active, and let's see what Resource Monitor says is 'In Use'! ... OK, open some large files, maybe the data segments will grow huge ...

Most of those I challenge have to dig up every piece of software they've got to come even close to the 8 GByte mark. And we all know that lots of the 'In Use' pages contain initialization code/data, or rarely used functions/data: If they were paged out, maybe a 'print' operation would be delayed by 30 or 40 milliseconds, but who would notice?

The 'real' working set is usually significantly lower than even the 'In use' size.

To prove my point, I wish I had a utility that could cause Windows to flush all its pageable memory and clear the cache/'Standby', so that all pages would have to be brought in from backing store. And 30 seconds after the cleanup operation, all active pages in memory would be those actively referenced the last 30 seconds, giving a reasonable idea about the real working set size. Your real RAM requirements.

Will Windows allow such RAM cleanup? (In other words: Is there an API for requesting such operations?)
If the answer is 'yes', has anyone created any utility to do it?

Preferably, the utility should be a service running cleanup at regular, configurable intervals, and it should be able to log 'In Use', 'Modified' and cache/'Standby' sizes, both before and after the cleanup. A switch for flushing modified pages as part of the cleanup would be a bonus. I take for granted that Administrator privileges are required to run it; that is OK.

If such a utility is available, I suspect that lots of people would be in for a surprise.

(Note: I am not talking about huge computer centers with true experts keeping the hardware configuration tuned at all times, but about hobbyists and small scale developers - and also developers in larger companies insisting that they need 16 or 32 GByte on their frontend PCs to edit files using vi, for compilation on the company build server park.)
GeneralRe: Flushing to paging disk Pin
Richard Andrew x6416-Jan-21 5:29
professionalRichard Andrew x6416-Jan-21 5:29 
GeneralRe: Flushing to paging disk Pin
PIEBALDconsult16-Jan-21 6:10
mvePIEBALDconsult16-Jan-21 6:10 
GeneralRe: Flushing to paging disk Pin
Richard Andrew x6416-Jan-21 6:32
professionalRichard Andrew x6416-Jan-21 6:32 
GeneralRe: Flushing to paging disk Pin
trønderen16-Jan-21 7:00
trønderen16-Jan-21 7:00 
GeneralRe: Flushing to paging disk Pin
trønderen16-Jan-21 6:39
trønderen16-Jan-21 6:39 
GeneralRe: Flushing to paging disk Pin
Mircea Neacsu16-Jan-21 5:56
Mircea Neacsu16-Jan-21 5:56 
GeneralRe: Flushing to paging disk Pin
trønderen16-Jan-21 6:25
trønderen16-Jan-21 6:25 
GeneralRe: Flushing to paging disk Pin
Mircea Neacsu16-Jan-21 7:33
Mircea Neacsu16-Jan-21 7:33 
GeneralRe: Flushing to paging disk Pin
Gary R. Wheeler16-Jan-21 7:02
Gary R. Wheeler16-Jan-21 7:02 
GeneralRe: Flushing to paging disk Pin
trønderen17-Jan-21 4:13
trønderen17-Jan-21 4:13 
GeneralRe: Flushing to paging disk Pin
Gary R. Wheeler18-Jan-21 10:12
Gary R. Wheeler18-Jan-21 10:12 
GeneralRe: Flushing to paging disk Pin
trønderen19-Jan-21 3:56
trønderen19-Jan-21 3:56 
GeneralRe: Flushing to paging disk Pin
Kornfeld Eliyahu Peter16-Jan-21 8:44
professionalKornfeld Eliyahu Peter16-Jan-21 8:44 
GeneralRe: Flushing to paging disk Pin
trønderen17-Jan-21 4:49
trønderen17-Jan-21 4:49 
GeneralRe: Flushing to paging disk Pin
Slacker00716-Jan-21 9:38
professionalSlacker00716-Jan-21 9:38 
GeneralRe: Flushing to paging disk Pin
trønderen16-Jan-21 11:35
trønderen16-Jan-21 11:35 
JokeThe secret to great coffee Pin
Cp-Coder16-Jan-21 1:55
Cp-Coder16-Jan-21 1:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.