|
raddevus wrote: yes, not WinForms Unfortunately, a necessity, as is .NET Framework
|
|
|
|
|
Yeah, I understand the constraints of legacy software etc.
It makes sense. It's just amazing to me that Linux really does seem to keep memory cleaner.
I think it kind of indicates that Linux devs are a bit more disciplined in creating things really.
Whereas in the Windows world it feels more like a free-for-all "memory is there, go ahead and eat it".
I am also always astonished at the number of things running "to support" the Win OS or whatever all that stuff is. Windows itself just eats so much memory and feels ridiculous. I mean, as you seem to be learning, 32GB probably is the minimum now for Win10. Oy!
|
|
|
|
|
raddevus wrote: Yeah, I understand the constraints of legacy software etc. virtual machines?
raddevus wrote: I think it kind of indicates that Linux devs are a bit more disciplined in creating things really. I saw it already back to the late 2000s... burning a cd ín windows almost 40 min. In linux 3.
raddevus wrote: Whereas in the Windows world it feels more like a free-for-all "memory is there, go ahead and eat it". sadly... yes
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.
|
|
|
|
|
Have you tried limiting how much memory SQL Server is allowed to use? It will take every bit of free memory on the machine as it needs it and tends to hold on to it long after that need is gone.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
Yeah, but that wasn't the problem.
The problem was SQL Server could not get enough memory to run properly, so we gave it a minimum amount of memory (and also a maximum).
Works like a charm now
|
|
|
|
|
I've had my current laptop a couple of years and usually just use it to RDP into my work desktop and run Teams locally. The laptop came with 8Gb while the work machine has 64Gb.
Recently I found that even with only 1 instance of RDP, MS Teams and a couple of Chrome windows under Win 11, the laptop was using 7.8 out of 8Gb, paging like mad and, according to Resource Monitor, "Memory Compression" was causing over 1200 Hard Faults per second! I've added another 8Gb and it seems OK... For now!
I think it's got to the stage where a 16Gb machine is entry level for Windows and a dev machine should probably have 64Gb, possibly more.
(One day I'll think of a signature...)
|
|
|
|
|
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
|
|
|
|