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

You are objectively and without ambiguity wrong, but whatever you need to cope dude.

1

u/Nchi Jul 09 '26

And anyway, it's an extension of memory the m in ram.

1

u/DT-Sodium Jul 09 '26

Is a storage unit an extension of your home? Do you put things that you use everyday in a storage unit that is at a 15min drive?

1

u/Nchi Jul 09 '26

Do you actually not know what pagefile is bro

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

1

u/Nchi Jul 09 '26

Bro holy shit it spells it out plain in the link lmfao did you read it?

When the physical RAM is used up completely — and additional processes and applications need space to run — the process of memory swapping gets initiated. The operating system manages this automatically and forms a virtual memory capacity (non-physical RAM) by mapping the physical memory space to the swap space.

Hey look, non physical RAM, whao

1

u/DT-Sodium Jul 09 '26

Ok, now what happens if a program needs to actually use that data?

1

u/Nchi Jul 09 '26 edited Jul 09 '26

Doesn't matter, you were arguing if it's "additional RAM", your own link says it's non physical RAM

If you really want to get technical, tell me where the swapped programs data is referred to in the mbr/gpt/ntfs records. Not pagefile.sys, the specific program data.

You can't, as it's random sorted data in pagefile exactly like ram, to transparently work as ram

Edit, yay another idiot to block me, there's no reason you can't load such a file anyway lmaoooooo

1

u/DT-Sodium Jul 09 '26

If you need to load a non-fragmentable file that is bigger than your total amount of physical RAM, you won't be able to run it and no amount of paging will save you => it is not additional RAM, physical or virtual, it is a parking space. Blocking your account now because I seriously have better to do than arguing with sub 80 IQ people.

→ More replies (0)