It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
RAM usage is an all-or-nothing affair. As long as you have enough RAM, you can keep loading more stuff and it won't impact performance as long as those processes aren't ALSO demanding CPU, GPU or disk resources -- in which case there would be a performance impact, but not because of RAM. But once you do fill up your RAM then the system has to start swapping chunks of memory out to disk (swap file) and that has a very noticeable performance impact. Inactive browser tabs are usually passive processes, so as long as you have enough RAM to load your game plus the extra overhead for all your browser tabs then there should be no performance impact.

Timmy010 is spot on with his advice: load a utility that monitors memory usage, or just fire up Task Manager (CTRL+ALT+DEL). Load your browser with your 18 tabs or whatever. Then play your game for 10 minutes. Check your memory utilization during that time. If you never hit 100% RAM utilization then you did not experience any performance degradation due to memory usage.
avatar
GeraltOfRivia_PL: Makes sense but it was a weird analogy. British people do tend to use weird analogies. Thank you

Sorry did not see you are british as well
I'm not, I'm Scots (please learn those boundaries as well as some of the more nuanced things relating to them these days - you can easily offend - as well as potentially marketing yourself yourself for harm if actually in the British Isles at the time).

Secondly, its not a weird analogy at all, you just have a mild language impairment (though to be fair your general use of English is solid enough - which often doubles the oddity of threads like these), much as if I should go to visit somewhere like Warsaw - where I can speak the language with some level of schoolboy enthusiasm, but do not yet understand it on a true level, I am sure i could find myself similarly bewildered by similar national / core linguistic sayings.
Post edited November 15, 2020 by Sachys
avatar
Ryan333: RAM usage is an all-or-nothing affair. As long as you have enough RAM, you can keep loading more stuff and it won't impact performance as long as those processes aren't ALSO demanding CPU, GPU or disk resources -- in which case there would be a performance impact, but not because of RAM.
+1

Try to run Chrome with 20 tabs open and loaded, no addblock and some videos on autoplay.

Just remembered, back when Fortnite was a big hit and Epic even didn't had a shop, the launcher could drop fps to zero during a second or two. The only way to play the game smoothly was to close the launcher.
avatar
lazydog: Let us see if the bot marks your answer as solved.
There it goes the old saying "if you want something done, do it yourself or forbid your children from doing".
Post edited November 15, 2020 by Dark_art_
I've seen a bit of a hit from having a lot of tabs open, not with Chrome but with Firefox/PaleMoon. Browsers can eat more CPU power, and enough CPU or Ram eaten...

So, personally if the game(s) you're playing need more RAM than is avaliable because of the tabs, i would close some or all. If the CPU is over 1 core being used at full (so one at 25%) then you might consider closing it.

If you start using Virutal Memory more i'd disable tabs/programs as appropriate.

If none of these qualify, you are probably fine... Though you may experience lags. Giving the game a higher priority or the browser a lower priority may help it.
avatar
GeraltOfRivia_PL: When gaming, should i close my Chrome tabs to improve performance, or is it okay if they stay open?

Right now i have 18 tabs open and it's using 1,5 GB Ram, while my GTA V tab is only using 1 GB more

Should i close Chrome
It never occurred to you to just try that, to see if it improves your gaming performance? Instead, you thought we can guess it better?

Oh right, of course you wouldn't choose a sensible way of doing things...
avatar
GeraltOfRivia_PL: When gaming, should i close my Chrome tabs to improve performance, or is it okay if they stay open?

Right now i have 18 tabs open and it's using 1,5 GB Ram, while my GTA V tab is only using 1 GB more

Should i close Chrome
avatar
timppu: It never occurred to you to just try that, to see if it improves your gaming performance? Instead, you thought we can guess it better?

Oh right, of course you wouldn't choose a sensible way of doing things...
Again with the insults. GTA V does not have an FPS counter so i couldn't tell
Post edited November 15, 2020 by GeraltOfRivia_PL
avatar
timppu: It never occurred to you to just try that, to see if it improves your gaming performance? Instead, you thought we can guess it better?

Oh right, of course you wouldn't choose a sensible way of doing things...
avatar
GeraltOfRivia_PL: Again with the insults. GTA V does not have an FPS counter so i couldn't tell
Well, if you can't see or feel the difference, then it shouldn't matter.

But just to be sure, yeah you can close your Chrome browser. It is only one (or two) click away. Problem solved.
Supposedly modern windows makes it rather irrelevant, but if I'm playing a demanding game I tend to close everything else anyway out of an abundance of caution. Not even for resources really, but to avoid conflicts, but again it's probably all in my head.
avatar
Ryan333: RAM usage is an all-or-nothing affair. As long as you have enough RAM, you can keep loading more stuff and it won't impact performance as long as those processes aren't ALSO demanding CPU, GPU or disk resources -- in which case there would be a performance impact, but not because of RAM.
This isn't the whole story.

Operating system give processes a virtual memory space. To access things in RAM, these virtual addresses must be mapped to physical memory addresses. What appears as contiguous memory in a process may not be contiguous in physical RAM, and the higher your memory usage & the more processes (including drivers!) you have allocating and releasing memory, the more likely it is that you do not get contiguous memory (RAM is fragmented). If you don't have contiguous memory, then you're less likely to be able to allocate huge pages (larger chunks of contiguous physical RAM), which means you need more page table entries. The page table is what maintains the virtual-to-physical mappings. Unfortunately walking the page table is *slow*, which is why CPUs have a cache to speed up the process (TLB). As with any cache, the more data (page table entries in this case) you try to retrieve through it, the more likely it is that the requested data isn't found because it did not fit in the cache and then you have to do the slow lookup.

https://en.wikipedia.org/wiki/Translation_Lookaside_Buffer#Performance_implications

https://en.wikipedia.org/wiki/Page_table

Depending on various things, it is possible for the OS to de-fragment RAM on the fly. For example, on Linux you can trigger compaction by writing 1 to /proc/sys/vm/compact_memory. (Unfortunately it can't compact all memory!)

https://sysctl-explorer.net/vm/compact_memory/

I just ran a little benchmark and with a 1024MB working set, huge pages are up to about 20% faster, both for sequential and random access. If you're under heavy memory pressure and RAM is fragmented, you may not be able to use huge pages.

$ make run2
for i in 256M 512M 1024M; do echo "$i:"; ./test-tlb -H $i 64; ./test-tlb $i 64 ; ./test-tlb -Hr $i 64; ./test-tlb -r $i 64; done

256M:
S 4.03
s 5.95
R 98.08
r 113.60

512M:
S 4.04
s 5.85
R 99.36
r 116.10

1024M:
S 4.04
s 5.93
R 100.21
r 120.50
S stands for sequential, R for random. Capital letter means huge pages, small letter means normal pages. Numbers are latency of memory access, measured in nanoseconds. Benchmark is available here, though I'm running a slightly tweaked version for myself: https://github.com/torvalds/test-tlb.

Reading the benchmark's README is very informative even if you don't intend to run it. Here's one of the more interesting tidbits:

the hugetlb case helps avoid TLB misses, but it has another less
obvious secondary effect: it makes the memory area be contiguous in
physical RAM in much bigger chunks. That in turn affects the caching
in the normal data caches on a very fundamental level, since you will
not see cacheline associativity conflicts within such a contiguous
physical mapping.

...

The effect is noticeable even with something like the 4-way L2 in
modern intel cores. The L2 may be 256kB in size, but depending on
the exact virtual-to-physical memory allocation, you might be missing
quite a bit long before that, and indeed see higher latencies already
with just a 128kB memory area.

In contrast, if you run a hugepage test (using as 2MB page on x86),
the contiguous memory allocation means that your 256kB area will be
cached in its entirety.
Of course the page table itself is in RAM too and using huge pages would make it smaller. A process with a very large virtual address space using lots of normal pages (and other mappings) can consume lots of page table entries, even if the process doesn't use lots of RAM directly. Here's an example of someone with page table taking up 2.5 gigabytes of RAM: https://itectec.com/superuser/does-the-page-table-take-up-so-much-memory/
Post edited November 15, 2020 by clarry
Since the problem is already solved, I am closing this thread.