8GB no longer enough
-
IRC the android emulator is kinda greedy ... but I can run Chrome with 9 tabs open and VS2019 with a single man team sized project in 4GB of RAM on and i5 Surface. I'm doing that right now! I'd wonder about AS as well - I installed it once years ago and decided I didn't like it. Slow, and not that obvious IIRC. Maybe those two are the problem?
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
IRC the android emulator is kinda greedy ... but I can run Chrome with 9 tabs open and VS2019 with a single man team sized project in 4GB of RAM on and i5 Surface. I'm doing that right now! I'd wonder about AS as well - I installed it once years ago and decided I didn't like it. Slow, and not that obvious IIRC. Maybe those two are the problem?
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
I just started Visual Studio 2019 on my machine to see what it would look like. Loaded up a basic sized MVC project and it's at 300MB. Quite a difference compared to Android STudio and it's desire for 2GB of ram (AS @ 1.0GB and the two Java procs at 1 GB).
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
raddevus wrote:
Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this?
The old Windows security model was severely lacking... but process isolation is actually quite good. The reason browsers consume so much RAM is because they are also taking advantage of process isolation and job object isolation. The operating system is now also taking advantage of process isolation. Plus... in the old service model when a service crashed a half-dozen other services crashed along with it. You can go back to the old behavior by changing a registry key but you will not gain much by doing that. For a development box I'd recommend a minimum of 16GB RAM. Best Wishes, -David Delaune
-
raddevus wrote:
Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this?
The old Windows security model was severely lacking... but process isolation is actually quite good. The reason browsers consume so much RAM is because they are also taking advantage of process isolation and job object isolation. The operating system is now also taking advantage of process isolation. Plus... in the old service model when a service crashed a half-dozen other services crashed along with it. You can go back to the old behavior by changing a registry key but you will not gain much by doing that. For a development box I'd recommend a minimum of 16GB RAM. Best Wishes, -David Delaune
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
windows has a lot of service u can disable. and if you are running w10 if you lockdown the privacy settings and background apps...
Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
This is representative of society today : waste resources because there are "plenty" of them instead of trying to optimize.
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
Don't fold hands. Instead, do something. You have tons of service host processes? Find out which services run in which process. That will get you started with possible fixes.
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
This seems like an indecent number of svchost.exe processes. I would investigate loaded dlls with ProcessExplorer to try and find what is really going on.
enum HumanBool { Yes, No, Maybe, Perhaps, Probably, ProbablyNot, MostLikely, MostUnlikely, HellYes, HellNo, Wtf }
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
In the old days of virtual memory, when we had to pay for RAM chips (that is, more than small change) ... There was the concept of "working set": The resources actually in use. If they are not in use, why should they occupy space in RAM? Fortunately, both Windows and the x32/x64 architecture have roots back to those days. They can shuffle virtual memory pages in and out as they are needed. You can pretend to have a 16 GB RAM machine, because you only make actual use of half of the data/code. All the memory segments have been assigned addresses in memory space, but they are not actually brought into RAM until you actually reference them. As long as your working set fits into RAM, the performance of your system is very little affected. I can assure you: You are not referencing more than two million different memory pages (each 4 kibyte) all the time! Lots of the code perform functions you are not using (and if you start using them, it takes a handful milliseconds to brin them in), or initialization code that can be thrown out once run, or tables that you are not referencing (say, user messages in some strange language you do not master anyway), and so on. For a number of years, quite a few people have believed that virtual memory slows down execution even when you have so much RAM that you can load all the segments, not just your working set. They believe that they speed up the machine by turning off paging. Placebo works. They know that it gives better performance. If it can at all be measured, I guess it would be by fractions of a percent - not the least because most of it is handled in hardware that is active even if you turn off the software to handle a possible page fault. Disabling a page fault handler that is never called anyway gives no speed-up. The main effect of turning off paging is that your physical RAM size sets an absolute limit to the total size of programs you can have in memory. When you hit the ceiling, it is hard. If you really are banging your head into the ceiling at 8 GByte, it sounds as if paging is turned off on your machine. Turn it on, and you can go up to 16 GByte virtual memory space. You can go even higher, but the default setting in Windows is to set virtual memory to twice the physical one. It will cost you 8 Gbyte of disk space on your primary disk, but that you can afford! (If it is a flash disk, the impact of a page fault will also be far less than with a magnetic disk.) In the old days, when RAM was super-expensive, you could
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
I just upgraded my new-ish laptop to 32gb. Mostly so I can give my win7 vm up to 24gb RAM.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
windows has a lot of service u can disable. and if you are running w10 if you lockdown the privacy settings and background apps...
Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
-
In the old days of virtual memory, when we had to pay for RAM chips (that is, more than small change) ... There was the concept of "working set": The resources actually in use. If they are not in use, why should they occupy space in RAM? Fortunately, both Windows and the x32/x64 architecture have roots back to those days. They can shuffle virtual memory pages in and out as they are needed. You can pretend to have a 16 GB RAM machine, because you only make actual use of half of the data/code. All the memory segments have been assigned addresses in memory space, but they are not actually brought into RAM until you actually reference them. As long as your working set fits into RAM, the performance of your system is very little affected. I can assure you: You are not referencing more than two million different memory pages (each 4 kibyte) all the time! Lots of the code perform functions you are not using (and if you start using them, it takes a handful milliseconds to brin them in), or initialization code that can be thrown out once run, or tables that you are not referencing (say, user messages in some strange language you do not master anyway), and so on. For a number of years, quite a few people have believed that virtual memory slows down execution even when you have so much RAM that you can load all the segments, not just your working set. They believe that they speed up the machine by turning off paging. Placebo works. They know that it gives better performance. If it can at all be measured, I guess it would be by fractions of a percent - not the least because most of it is handled in hardware that is active even if you turn off the software to handle a possible page fault. Disabling a page fault handler that is never called anyway gives no speed-up. The main effect of turning off paging is that your physical RAM size sets an absolute limit to the total size of programs you can have in memory. When you hit the ceiling, it is hard. If you really are banging your head into the ceiling at 8 GByte, it sounds as if paging is turned off on your machine. Turn it on, and you can go up to 16 GByte virtual memory space. You can go even higher, but the default setting in Windows is to set virtual memory to twice the physical one. It will cost you 8 Gbyte of disk space on your primary disk, but that you can afford! (If it is a flash disk, the impact of a page fault will also be far less than with a magnetic disk.) In the old days, when RAM was super-expensive, you could
Great post and very interesting to me. I also run the same setup (Android Studio, FireFox, Android Emulator) on a Virtual Machine that only has 2.5GB RAM given to it. Just this morning I was thinking, "how is that even possible?" It is quite slow but none of the processes ever crash like they do on my real machine that has 8GB. I think what you've explained here (virtual memory) is in effect what the VM is doing. It is quite a bit slower because this VM only has 2.5GB of RAM, but on my main machine (8GB and an SSD) I probably won't see near the slowness and I won't see the crashes. I will try this out later today. Thanks for the great insight!:thumbsup::thumbsup:
-
I just upgraded my new-ish laptop to 32gb. Mostly so I can give my win7 vm up to 24gb RAM.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
abmv wrote:
windows has a lot of service u can disable.
Interesting. I will have to look into that. Thanks.
privacy settings (disable) , cortana (disable + rename searchui.exe) , disable telemetry .. saves a lot of your CPU and data that leaks to msft .... [Windows 10 Telemetry explained - Privacy AMP](https://privacyamp.com/knowledge-base/windows-10-telemetry-explained/)... task sheduler and disabled Microsoft Compatibility Appraiser. [Windows 10, version 1709 and newer diagnostic data for the Full level (Windows 10) | Microsoft Docs](https://docs.microsoft.com/en-us/windows/privacy/windows-diagnostic-data)
Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
-
privacy settings (disable) , cortana (disable + rename searchui.exe) , disable telemetry .. saves a lot of your CPU and data that leaks to msft .... [Windows 10 Telemetry explained - Privacy AMP](https://privacyamp.com/knowledge-base/windows-10-telemetry-explained/)... task sheduler and disabled Microsoft Compatibility Appraiser. [Windows 10, version 1709 and newer diagnostic data for the Full level (Windows 10) | Microsoft Docs](https://docs.microsoft.com/en-us/windows/privacy/windows-diagnostic-data)
Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
-
#realJSOP wrote:
I just upgraded my new-ish laptop to 32gb.
I'm very jealous! :) My stupid cheap laptop only goes to 8GB. :((
I have two 8-year old laptops than can only go to 8gb (and they're both maxed out).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
This seems like an indecent number of svchost.exe processes. I would investigate loaded dlls with ProcessExplorer to try and find what is really going on.
enum HumanBool { Yes, No, Maybe, Perhaps, Probably, ProbablyNot, MostLikely, MostUnlikely, HellYes, HellNo, Wtf }
The number of service host processes has been steadily going up since IIRC w7. MS used to cram dozens of services into a single process to save a bit of ram. Newer versions have gone the other direction for troubleshooting and security reasons. It's much easier to figure out what service is going bonkers causing its host to eat a CPU core and needs a cluebat applied if you don't have 20 services in a single process. On the security front running services in their own processes makes it harder for a malicious or buggy and hackable one to attack other services by increasing the level of isolation between them.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt
-
I just upgraded my new-ish laptop to 32gb. Mostly so I can give my win7 vm up to 24gb RAM.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013My newish work laptop came with 32gb of ram, it's one of the few things I like about it; as with a crapton of browser tabs and multiple copies of visual studio on my old 16gb machine I could find myself swapping enough that even with an SSD to read/write to my system started lagging noticeably.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt
-
In the old days of virtual memory, when we had to pay for RAM chips (that is, more than small change) ... There was the concept of "working set": The resources actually in use. If they are not in use, why should they occupy space in RAM? Fortunately, both Windows and the x32/x64 architecture have roots back to those days. They can shuffle virtual memory pages in and out as they are needed. You can pretend to have a 16 GB RAM machine, because you only make actual use of half of the data/code. All the memory segments have been assigned addresses in memory space, but they are not actually brought into RAM until you actually reference them. As long as your working set fits into RAM, the performance of your system is very little affected. I can assure you: You are not referencing more than two million different memory pages (each 4 kibyte) all the time! Lots of the code perform functions you are not using (and if you start using them, it takes a handful milliseconds to brin them in), or initialization code that can be thrown out once run, or tables that you are not referencing (say, user messages in some strange language you do not master anyway), and so on. For a number of years, quite a few people have believed that virtual memory slows down execution even when you have so much RAM that you can load all the segments, not just your working set. They believe that they speed up the machine by turning off paging. Placebo works. They know that it gives better performance. If it can at all be measured, I guess it would be by fractions of a percent - not the least because most of it is handled in hardware that is active even if you turn off the software to handle a possible page fault. Disabling a page fault handler that is never called anyway gives no speed-up. The main effect of turning off paging is that your physical RAM size sets an absolute limit to the total size of programs you can have in memory. When you hit the ceiling, it is hard. If you really are banging your head into the ceiling at 8 GByte, it sounds as if paging is turned off on your machine. Turn it on, and you can go up to 16 GByte virtual memory space. You can go even higher, but the default setting in Windows is to set virtual memory to twice the physical one. It will cost you 8 Gbyte of disk space on your primary disk, but that you can afford! (If it is a flash disk, the impact of a page fault will also be far less than with a magnetic disk.) In the old days, when RAM was super-expensive, you could
If a system's slowing to a crawl it's probably that it's swapping faster than the drive can keep up with not that the page file is turned off. At my last job I briefly was trying to work on a machine misconfigured by someone who'd drank the no page file good koolaid. When the ram was maxed out - which was easy to do with my workload - applications would randomly crash when they page-faulted, rendering the system not obnoxiously slow but a chaotic crashfest that initially had me thinking hardware failure/corrupted OS install.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt
-
I've had my i7 laptop with 8GB for at least 4 years now (started out on win 8.1). It has worked fine. I could run 1. web browser 2. Android Studio 3. Android emulator All at the same time and I never had a problem. Now, I cannot run those 3 or all my RAM is gone. I can now only (barely) run the 1. web browser 2. android studio The only way i can use my computer for Android development now is to use an externally connected android device to run/debug apps on. Very sad. This laptop is not able to upgrade to 16GB. I know. It's crazy and cheapo. Actually, I can barely run the web browser when Android Studio is running. Not great. When I open too many tabs the tabs just crash and burn. Win 10 Ram Eater? Anyways, I also noticed this in win 10 at work and now at home. Check out how many svchost.exe processes are running: I can't even fit them all on one screen (in task manager) see the snapshot : https://i.stack.imgur.com/bPaaD.png[^] What is going on? Has anyone else noticed this? EDIT - Android Studio RAM Android Studio eats > 1.0 GB And it starts up two Java Processes java.exe - 823 MB java.exe - 333 MB Oy! Meanwhile, any browser eats up about 1 GB (my FF is at 723 MB). That's 3 GB and the rest of the 8GB is basically eaten up by random win10 and other background processes. Such is the modern life, I assume.
8gb is fine for Win10. You must have some piece of software that is running in an infinite loop allocating memory for variables until you run out of space.