Page 1 of 3 123 LastLast
Results 1 to 16 of 40

Thread: So, why after nearly 23 years is Windows STILL rubbish at memory management?

  1. #1
    Senior Member
    Join Date
    Mar 2005
    Posts
    4,825
    Thanks
    161
    Thanked
    358 times in 288 posts
    • badass's system
      • Motherboard:
      • ASUS P8Z77-m pro
      • CPU:
      • Core i5 3570K
      • Memory:
      • 32GB
      • Storage:
      • 1TB Samsung 850 EVO, 2TB WD Green
      • Graphics card(s):
      • Radeon RX 580
      • PSU:
      • Corsair HX520W
      • Case:
      • Silverstone SG02-F
      • Operating System:
      • Windows 10 X64
      • Monitor(s):
      • Del U2311, LG226WTQ
      • Internet:
      • 80/20 FTTC

    So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Have a read through this
    Windows Vista with 8 GB : Vista Workshop – Performance Boost with 8GB of RAM
    Yes, I know its Toms hardware and there is a fair bit of crap in there, but with 4 GB of RAM, I thought I'd do what they did with 8 and disable the page file. My system is definately more responsive with it off. 99.99% of the time, I have used nowhere near 4GB of memory, so why in gods name does this dumb OS feel the need to store ANYTHING AT ALL in the pagefile?
    The pagefile should be used ONLY when the system memore is very low or has ran out. No need for it to be used any other time.
    All I want is the security of having a pagefile enabled should I need it but windows Vista X64 to only use it when it needs to.
    Is that really too much to ask of Microsoft?
    "In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship."

  2. #2
    Mostly Me Lucio's Avatar
    Join Date
    Mar 2007
    Location
    Tring
    Posts
    5,163
    Thanks
    443
    Thanked
    448 times in 351 posts
    • Lucio's system
      • Motherboard:
      • Gigabyte GA-970A-UD3P
      • CPU:
      • AMD FX-6350 with Cooler Master Seldon 240
      • Memory:
      • 2x4GB Corsair DDR3 Vengeance
      • Storage:
      • 128GB Toshiba, 2.5" SSD, 1TB WD Blue WD10EZEX, 500GB Seagate Baracuda 7200.11
      • Graphics card(s):
      • Sapphire R9 270X 4GB
      • PSU:
      • 600W Silverstone Strider SST-ST60F
      • Case:
      • Cooler Master HAF XB
      • Operating System:
      • Windows 8.1 64Bit
      • Monitor(s):
      • Samsung 2032BW, 1680 x 1050
      • Internet:
      • 16Mb Plusnet

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Ok, so MS doesn't always get things 100% but surely there's a reason for them to manage memory in the way that they do?

    For example, the paging file could be used because you can't guarentee the RAM retains memory through various changes,

    (\___/) (\___/) (\___/) (\___/) (\___/) (\___/) (\___/)
    (='.'=) (='.'=) (='.'=) (='.'=) (='.'=) (='.'=) (='.'=)
    (")_(") (")_(") (")_(") (")_(") (")_(") (")_(") (")_(")


    This is bunny and friends. He is fed up waiting for everyone to help him out, and decided to help himself instead!

  3. #3
    Senior Member
    Join Date
    Mar 2005
    Posts
    4,825
    Thanks
    161
    Thanked
    358 times in 288 posts
    • badass's system
      • Motherboard:
      • ASUS P8Z77-m pro
      • CPU:
      • Core i5 3570K
      • Memory:
      • 32GB
      • Storage:
      • 1TB Samsung 850 EVO, 2TB WD Green
      • Graphics card(s):
      • Radeon RX 580
      • PSU:
      • Corsair HX520W
      • Case:
      • Silverstone SG02-F
      • Operating System:
      • Windows 10 X64
      • Monitor(s):
      • Del U2311, LG226WTQ
      • Internet:
      • 80/20 FTTC

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Quote Originally Posted by Lucio View Post
    Ok, so MS doesn't always get things 100% but surely there's a reason for them to manage memory in the way that they do?

    For example, the paging file could be used because you can't guarentee the RAM retains memory through various changes,
    Every one else seems perfectly capable of doing this for the past 20 odd years. What ever their reasons, they are not good ones.
    "In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship."

  4. #4
    Get in the van. Fraz's Avatar
    Join Date
    Aug 2007
    Location
    Bristol
    Posts
    2,919
    Thanks
    284
    Thanked
    397 times in 231 posts
    • Fraz's system
      • Motherboard:
      • Gigabyte X58A-UD5
      • CPU:
      • Watercooled i7-980X @ 4.2 GHz
      • Memory:
      • 24GB Crucial DDR3-1333
      • Storage:
      • 240 GB Vertex2E + 2 TB of Disk
      • Graphics card(s):
      • Water-cooled Sapphire 7970 @ 1175/1625
      • PSU:
      • Enermax Modu87+
      • Case:
      • Corsair 700D
      • Operating System:
      • Linux Mint 12 / Windows 7
      • Monitor(s):
      • Dell 30" 3008WFP and two Dell 24" 2412M
      • Internet:
      • Virgin Media 60 Mbps

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    I can't think of any modern OSes that don't uses page files. The idea behind them is sound - maybe Microsoft's implementation is somewhat lacking.

  5. #5
    Dark side super agent
    Join Date
    Dec 2003
    Location
    Nirvana
    Posts
    1,895
    Thanks
    72
    Thanked
    99 times in 89 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Because Windows is a cr*p and clunky OS with far too much legacy code within it even when rewritten from the "ground up" like Vista was meant to be.
    An Atlantean Triumvirate, Ghosts of the Past, The Centre Cannot Hold
    The Pillars of Britain, Foundations of the Reich, Cracks in the Pillars.

    My books are available here for Amazon Kindle. Feedback always welcome!

  6. #6
    TiG
    TiG is offline
    Walk a mile in other peoples shoes...
    Join Date
    Jul 2003
    Location
    Questioning it all
    Posts
    6,213
    Thanks
    45
    Thanked
    48 times in 43 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Its because its had to deal with all the legacy crap.

    If you could make a brand new OS without the requirement to support everything that had gone before you would have a much better system.

    Fraid its not ever going to happen tho.

    Think of it as building a pyramid upside down, we're about 20 stories up now. We need to take it right back to the first floor and rebuild the ENTIRE thing from the ground up.

    Vista was supposed to be that, but sadly it never happened, even after those 5+ years of development and a large amount of shelved code its now back to something much closer to a revision to windows than a replacement.

    I think we will sadly see a more apple approach to OSs by microsoft soon tho, which i think will make things even worse.....

    TiG
    -- Hexus Meets Rock! --

  7. #7
    Senior Member
    Join Date
    Jul 2003
    Posts
    11,597
    Thanks
    763
    Thanked
    476 times in 328 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Quote Originally Posted by TiG View Post
    I think we will sadly see a more apple approach to OSs by microsoft soon tho, which i think will make things even worse.....

    TiG
    Oh god no, can you imagine how even more intollerable and pig headed the Mac Brigade would become?

  8. #8
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    you can't not constantly keep the pagefile uptodate.

    What happens if you've got 4 gig of RAM and then suddenly need an extra 2gig, you would have to page 2 gig immedidately.

    this is why you constantly page.

    you can't have your cake and eat it too.

    however flash SSDs might change this a lot, their random access nature, inherent tending towards high scaleability, really should shake things up.

    Readyboost might be useless for desktops in its current shape, but with SSDs connected via the south bridge, or even sata.... its another issue.

    I'd question what it is you think it should do?

    if you can come up with a huristic, that ensures when an app is open, its not slowed by 'needless' paging, but that when you suddenly need another big block its not going to have too choose something to page. Also do all this without too much CPU time.

    that would be a good PhD in my mind.
    throw new ArgumentException (String, String, Exception)

  9. #9
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Just to get the terminology right - we are talking about the SWAP file - temporary storage on disk - rather than PAGING which is a memory translation technique which is a legacy requirement and part of the Intel architecture.

    I have looked at this with some interest and I will state here that it is from a Linux perspective - but this is not intended to be a Linux v Windows debate,

    However I have noticed improvements in memory useage with successive Linux core releases.

    Using a 32 bit 2.4 Kernel on a system with 1G Memory and a 2G swapfile, I would regularly be using 65% to 75% of the available swapfile with about 85% to 90% RAM utilisation. Switching to the 2.6 Kernel saw a dramatic improvement in memory use efficiency - RAM useage at about 75% to 80%, but swapfile use rarely above 15% - so there was some work done by the Kernel developers to minimise swapfile use - and it shows!

    If you are interested in the detail of how it happens, "Understanding the Linux Kernel" by Bovet and Cesati gives a very good description (I wish I understood it all!). I don't know if a similar description is available for Windows - given the closed source nature of the cde, I suspect not.

    But basically, as The Animus says, if an application suddenly calls for a large amount of RAM, the system has three choices: crash, terminate processes that are using that memory, deny the request or park the inuse memory to the swap file and re-allocate it to the requesting process.
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  10. #10
    Lovely chap dangel's Avatar
    Join Date
    Aug 2005
    Location
    Cambridge, UK
    Posts
    8,398
    Thanks
    412
    Thanked
    459 times in 334 posts
    • dangel's system
      • Motherboard:
      • See My Sig
      • CPU:
      • See My Sig
      • Memory:
      • See My Sig
      • Storage:
      • See My Sig
      • Graphics card(s):
      • See My Sig
      • PSU:
      • See My Sig
      • Case:
      • See My Sig
      • Operating System:
      • Windows 10
      • Monitor(s):
      • See My Sig
      • Internet:
      • 60mbit Sky LLU

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    What's the fuss about? Windows gives you the option to turn off paging if you want to (and understand the risks). I can't see why it's 'rubbish' at memory management when all it's doing is providing a virtual memory fall-back when you run out of physical RAM. As TheAnimus says, what do you think it should do? Wave it's magical wand and predict you'll never (ever) use more than 8GB of memory (or use a 32bit process that wants more than 4gb)?
    Crosshair VIII Hero (WIFI), 3900x, 32GB DDR4, Many SSDs, EVGA FTW3 3090, Ethoo 719


  11. #11
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Without dragging this thread off topic too much....

    The company i work for atm prides itself on its developers, it often referes to itself as a "technology driven hedge fund" we are encoraged to debate the finer points of computer science. So the argument i was having (me, who'd of thought it) was over the OutOfMemoryException. In .Net when any memory allocation operation fails, this is what you get. A lot of 'Front Office' apps are really quickly nocked together code, often running on 32bit. As such you can easily see these if you mess up a little.

    The question is what do you do, i was arguing that there is no 'right' thing to do in all cases, only that you musn't re-package the exception and rethrow it (as doing so would require more memory). He was arguing that you need too let things higher up the call stack have some way of logging it.

    Whilst i know my statement is nasty, its the only practical way. (enless you have some kind of class designed to waste memory, so it can free it when you try to invoke it, purely to let it know your out of memory...... but that gets messy).

    You might not like it, but enless you've got any better ideas, don't slag it off too much.
    throw new ArgumentException (String, String, Exception)

  12. #12
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    TheAnimus has basically answered the question

    Windows memory management is a balancing act - yes having everything loaded into physical RAM would be great for performance, but then if you were to request something else, what is the response from the OS?
    1. Reject the request - "Sorry, no RAM. Unload something."
    2. Page "something" out to make room

    If you disable the pagefile you could encounter the first response, because you have just run out of virtual memory (which happens to equal physical memory).

    If you go with the second choice, how to decide which "something" to page, and then you'll have 2 delays: first when the paging out occurs, and second when the requested load occurs


    The memory manager pages out parts of the virtual address space for all processes which get "aged" and are not locked in physical memory as part of a regular housekeeping operation.
    The principle being "if you've not used it in a while, I can make better use of that limited resource".

    Before Vista, this turned into "available" memory.
    From Vista onwards, this gets used by the system for cache - an attempt to predict what files you might want to load from disk and have them pre-cached.

    The Vista method does not mean the system has to do more work if memory is needed - cache is volatile and is simply "dropped" if the space is required, so in essence it IS "available"

    So Vista's memory manager is trying to give the best of both worlds - physical RAM as soon as it is needed, but in the meantime pre-cached files that you can access without disk I/O needed.

    (People see Vista's "free" memory counter in Task Manager shrinking as time goes by when they are doing nothing, and think it is actually "gone" - you have to add free and cache together to get "available" physical memory.)
    Last edited by Paul Adams; 14-02-2008 at 05:43 PM.
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

  13. #13
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Thank you Paul - a briliantly clear explanation (as usual).

    I think that is the principle used in the Linux Cores, but even then there has been an improvement in the algorithms used, and I'm sure that Windows will evolve too.

    I would also guess that there are different optimum settings depending on the nature of the applications being run - so (say) a mailserver may benefit from different settings (such as page age) from those on a machine used as a file server. Again I think the Linux kernel can be tuned in that way - not sure about Windows. (And again to stress this is NOT a Linux is better than Windows comment, but to point out that different operating systems all face the same basic issues - such as the ones described by The Animus)
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  14. #14
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    AFAIK linux has no support for this volatile pre-caching?

    I've not got any virtual's handy but i'm sure Paul or some other windows bod can conferm, when you switch the optomize this workstation for background service, isn't this ment to make the paging of running applications less agressive, enless that app allocates (ie, decrease teh amount reserved for un-opened apps).
    throw new ArgumentException (String, String, Exception)

  15. #15
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    Quote Originally Posted by TheAnimus View Post
    AFAIK linux has no support for this volatile pre-caching?
    not in a smart manner. it tends to cache files already accessed, on the assumption they'll be accessed again

  16. #16
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: So, why after nearly 23 years is Windows STILL rubbish at memory management?

    I wouldn't call the vista way 'smart' persay, more exhuastive than smart.

    I really do wounder how SSDs with their random access taking over will rock the boat.
    throw new ArgumentException (String, String, Exception)

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Abit IP35 memory config..
    By daveasp in forum PC Hardware and Components
    Replies: 8
    Last Post: 25-10-2007, 07:18 PM
  2. ASUS A8N SLI Deluxe - memory question
    By Logan in forum PC Hardware and Components
    Replies: 6
    Last Post: 13-09-2007, 12:45 PM
  3. How do I restore "Show Desktop" icon in the Quick Launch bar of Windows?
    By davidstone28 in forum Help! Quick Relief From Tech Headaches
    Replies: 7
    Last Post: 09-01-2006, 01:02 PM
  4. Overclocking A64s?
    By Prodigy in forum PC Hardware and Components
    Replies: 4
    Last Post: 09-09-2004, 03:42 PM
  5. Memory Management?
    By Spritzup in forum PC Hardware and Components
    Replies: 0
    Last Post: 09-10-2003, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •