Click here to Skip to main content
15,881,757 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: 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 
That could serve as an explanation, if file I/O really was a bottleneck. If you keep an eye on the file IO load, for most users it is very low.

Usually, a cache shows its strength when the same piece of data is referenced repeatedly, typically for the CPU cache between the CPU and RAM. Lots of code reference the same instructions and variables lots of times. For file I/O, repeated accesses to the same disk pages is far less common: Data is read into a buffer in the application, as a variable, and (maybe) repeatedly accessed there. The page is retrieved once from disk.

The disk cache has some effect if you read a huge file sequentially, but request only one page at a time: If the (logically) subsequent pages are located in the same extent, i.e. on the subsequent physical disk addresses, the OS may choose to read multiple pages in a single read operation, buffering them until your program asks for the data.

This is what the RAM buffer on the disk unit does, without any assistance from the OS. Most of this fruit has already been picked. Sure: The OS may have a far larger buffer, but most files are small (compared to 16 GByte RAM), and prefetching beyond the end of the file doesn't make sense. Most huge files contain real time video. When played, prefetching won't increase video playback speed, and after the video has been played back, there is no use keeping it buffered in RAM.

As I pointed out in my first post: A server park running multiple jobs may be able to fully utilize a large memory. What I am talking about is the "Mine is larger than yours!" arguing from people who insist that their single-user desktop PC simply must have 16 GByte to edit those files that will be built on that backend build cluster. If this was limited to boys in early teenage years comparing their gaming machines, I would simply give it a laugh. Fact is that everybody and his grandma "knows" that the machine simply demands 16 GByte RAM. Computer center operators may be right, but very few others. (Note that I say "very few", I do not say "no" - but I am dead serious about "very few".)
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 
GeneralRe: The secret to great coffee Pin
Mike Hankey16-Jan-21 3:23
mveMike Hankey16-Jan-21 3:23 
GeneralRe: The secret to great coffee Pin
Gary R. Wheeler16-Jan-21 7:04
Gary R. Wheeler16-Jan-21 7:04 
GeneralRe: The secret to great coffee Pin
trønderen16-Jan-21 9:13
trønderen16-Jan-21 9:13 
GeneralRe: The secret to great coffee Pin
W Balboos, GHB17-Jan-21 7:42
W Balboos, GHB17-Jan-21 7:42 
GeneralRe: The secret to great coffee Pin
BryanFazekas19-Jan-21 1:13
BryanFazekas19-Jan-21 1:13 
GeneralRe: The secret to great coffee Pin
W Balboos, GHB19-Jan-21 1:16
W Balboos, GHB19-Jan-21 1:16 
GeneralRe: The secret to great coffee Pin
BryanFazekas19-Jan-21 1:18
BryanFazekas19-Jan-21 1:18 
JokeRe: The secret to great coffee Pin
W Balboos, GHB19-Jan-21 1:20
W Balboos, GHB19-Jan-21 1:20 
GeneralI can't believe I missed this! Pin
Sander Rossel16-Jan-21 0:34
professionalSander Rossel16-Jan-21 0:34 
GeneralRe: I can't believe I missed this! Pin
OriginalGriff16-Jan-21 0:50
mveOriginalGriff16-Jan-21 0:50 

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.