|
Sorry, I run VMs all the time on my main development laptop... that might end shortly due to retirement and other personal issues, but the last 3 laptops I've had - unit -1 (sitting on the shelf), unit 0 (I'm typing on it) and unit 1 (the new one that I am migrating too) all have 64GB. It's a defense against the Microsoft virus.
Oh, the Xp VM runs all day long with 2GB, Win 10 loves 16GB, Win 11 meh, not there yet.
Tried to get a 16gb machine up with a VM and it choked.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Interesting you should compare Win 11 with the other OSs, we only started having issues with our massive 64GB memory all being gobbled up after we installed Win 11.
There does seem to be something with Win 11 that is not quite right with VMs or WSL, as though there is a memory leak somewhere.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Visual studio 2022 I presume.
Make it run at 32 bits, that will save your memory. (or use 2019)
Unless of course your programs are humungous.
|
|
|
|
|
SQL Server loves memory. If you're running an SQL Server instance on the same machine, throttle the amount of memory that SQL uses from the default value of "as much as I can get" down to something resonable.
|
|
|
|
|
I guess that if it by default limited itself to, say, 2 GB, there would be a number of people standing up and shouting: "Silly database system, not making use of the resources available to it!"
Especially when we are talking about a server: Server software is primarily architected to run on a more or less dedicated server machine. Then it makes perfectly sense to default to using all memory (and other) resources available. As long as there is a way in a non-dedicated-machine environment to reduce the resource consumption, that is fine with me.
Side note:
I am not familiar with the MS SQL Server. But, I have several times had to explain to (non-professional) hacker friends that when the Resource Monitor shows less than 10% "Free" memory, it does not imply that they should double their RAM, when 75% of the memory is marked as "Standby". "Standby" memory is like "Take it if you need it, but as long as you don't ask for it, I keep track of which data was left behind when it was abandoned, just in case someone comes along wanting exactly that piece of data."
If some database system (SQL server or any other) handles memory in a similar way, saying "As long as noone else need this memory, I will use it as a disk cache area, but I am willing to give it up on short notice when someone asks", then that should be perfectly OK, even if it looks as if it is hogging all RAM.
Please note: I do not know if this is the case for SQL server or any other given DBMS. It could be implemented that way. A DBMS never has any significant backlog of modified pages; after a commit, all changed data have been written to stable storage. So giving up a gigabyte of RAM does not require writing back a gigabyte to disk.
|
|
|
|
|
Make sure you limit the amount of memory that the SQL Server service uses. By default, it will grow to use all memory available!
|
|
|
|
|
As always, the answer is: it depends.
You don’t say what version SQL server is running, or what the load is. But, you will probably want to set the service’s MIN and MAX memory allocation. Unfettered, the service will take as much memory as it can, and not release it unless caches are cleared.
Hopefully it’s only being used as a development server and has only your coworker’s load on it.
We always put our SQL servers (dev,staging, and production) on separate network machines.
Good luck.
Time is the differentiation of eternity devised by man to measure the passage of human events.
- Manly P. Hall
Mark
Just another cog in the wheel
|
|
|
|
|
Sort of a side issue, but pay attention to what you buy. I'm on my third Eluktronics laptop - sort of a custom small shop, and I love the fact that they _never_ install bloatware. That said, I picked up a laptop for my wife with the assumption that I could add ram if she needed it. The spec was very subtle, and I missed the fact that the 16GB ram was soldered to the motherboard. No extra memory slots as well. I never even thought to look.
This seems to happen if you get a very slim design. My new laptop (same maker) does not have this issue.
What I find interesting in this discussion is the fact that Windows just does not seem to manage memory as one might expect. It's like the memory manager is brain dead.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
If you're not wiping and reinstalling from scratch the day you receive your Laptop - You're not doing it right :p
-= Reelix =-
|
|
|
|
|
charlieg wrote: It's like the memory manager is brain dead. Is there any other class of manager?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Are you admitting Microbloat writes really bad software that gobbles up memory?
~d~
|
|
|
|
|
I'm not sure anyone ever needs to admit that. It's a physical constant. Do you have any idea how memory expensive new icons are? Re-arranging menus just to re-arrange them? lol
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
In SSMS (SQL Server Management Studio), right click on the server instance and select properties. There it will tell you how much memory it's using and have some settings for limiting it.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
You must be doin somethin' wrong. A PC will never need more than 640 KB.
; )
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
> 16GB should be enough for most workloads, or so you'd think.
Workloads for a regular user and workloads for a developer are very, VERY different.
16GB is nowhere near enough for a developer.
You under-spec'd - The page file increase is a terrible thing to do, but the best choice for someone running multiple memory-intensive applications on a device spec'd for someone running Excel and a Browser who maybe also has Outlook open.
-= Reelix =-
|
|
|
|
|
Edit: I see you solved the problem; I couldn't get to the second page of responses for some reason. Anyway, simple list at the bottom.
Same problem, same amt of memory. Weirdly, things seem to work pretty well even if the memory usage is quite high. Until it doesn't.
I don't know why 16 GB isn't enough any more.
I always have tskmgr open. Only consulted Process Explorer once so far.
The usual first check and problem is a browser; Firefox is the main culprit (and/or add-ons), but I think I have way too many tabs open and too many bookmarks saved as well making it hefty. But the memory is fine when it first opens.
The second check is VS. It is also fine until it isn't. Again, too many files/tabs open inside VS seems to be a possible issue.
- try usage with no internet connection.
- check for junk added by laptop seller (though I'm not convinced it's an issue.)
- review startup apps regularly; stuff gets readded.
- check task scheduler for hidden background tasks. <--
- check every single app for background calls to home (auto-updates, etc.).
modified 3 days ago.
|
|
|
|
|
Scraps sinister deliveries (9)
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
I thought "really simple week" had ended?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Not on a Monday
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
LEFT sinister
OVERS deliveries
def: scraps
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
YAUT
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Still trying to figure out the issue with my gaming machine...
I see the video card used 300 Watts of power at most... (which leaves 700 W from my PSU), but then, other part of my system are also using power, so maybe it was starved with power after all, but I dont really know.. How would I know?
I did notice that MWAVE top computer is using 1200Watt PSU (as opposed to my 1000 Watts one), so maybe it is an issue after all..
|
|
|
|
|
Unless you're running some super-custom, blown-up liquid cooling loop with a 7000 series and an overclocked 4090, I think a 1000W PSU should be more than enough to handle most systems. Have you tried plumbing your components into https://uk.pcpartpicker.com/ to see whether it flags anything? If there was a power draw issue I'd expect it'd flag it.
Also a lot of modern motherboards usually have an LED indicator somewhere which displays a code indicating the hardware issue? Otherwise, back to ol' reliable of removing stuff until it works!
|
|
|
|
|
thanks!
|
|
|
|
|
Chris Copeland wrote: Otherwise, back to ol' reliable of removing stuff until it works! If I got 1 € for every time I have done trial and error with hardware things...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|