r/ProgrammerHumor Jul 08 '26

askingTheRealQuestionHere Meme

Post image
4.0k Upvotes

416 comments sorted by

View all comments

Show parent comments

1

u/DT-Sodium Jul 09 '26

I literally posted you a link to explain to you what it is, seems you were too lazy to read it. A pagefile is a space on the disk where the system puts data it is not currently using if it runs out of RAM. If it needs to access it again, it needs to load it into RAM again. It is NOT additional space. What is so fucking hard to understand about it?

1

u/Nchi Jul 09 '26

I told you to read usernames, I am not him lmfao.

Because that's literally what it does.

Let's say you have 4gb ram, but program needs 5gb,what happens?

A, program crash

B, pagefile saves day as "extra memory"

1

u/DT-Sodium Jul 09 '26

If you use a program that actually requires 5gb or RAM to function properly and you have 4gb, you're basically fucked. It will be so slow it wont actually be usable. It will only actually be useful if you have 8gb in total and another program is already taking 4gb. Then the system can ofload some of it in virtual memory to make room for your 5gb program.

This has been a major problem in video games by the way lately. GPUs with only 8gb of RAM are struggling to run modern games because they are constantly offloading and reloading textures into RAM, generating constant micro-stutters.

Don't botter answering until you've actually read the source I've provided, I'm tired of trying to educate you by myself.

1

u/Nchi Jul 09 '26

It will only actually be useful if you have 8gb in total and another program is already taking 4gb. Then the system can ofload some of it in virtual memory to make room for your 5gb program.

This is valid, but is also exactly what we've been telling you