Recommended Posts

I have 16G of hard memory in my Windows box and have been playing around with the swap file. When I had it off I was using an average of 29% of the physical memory. Once I turned it back on the use of the physical memory almost doubles to 58%. Any ideas why? I have an SSD for my OS and was wondering the long term benefits of turning off the swap file permanently.

  On 06/06/2019 at 13:36, devnulllore said:

I turned off the swap file and memory usage is down to 30%, system boots, and shuts down faster as well.

Expand  

 Could it be instead certain things are no longer starting because you disabled it? MS has a lot of caching schemes in place to speed up performance for often used applications, that likely cannot function with no swap file and a measly 16GB of ram. That’s could be where your decreased usage comes from. Of

course that extra memory it uses isn’t really in use—it’s released as it’s not needed and more pressing matters need it. 

 

The reason it shuts down and boost faster is because you likely still have the “fast boot” settings enabled, which actually uses a hybrid sort of shutdown method; starting up, some things start fresh and some are resumed from hibernation. That probably doesn’t work with your page file disabled, and is only really beneficial to spindle drive machines. Also, you disabled system restore point generation and the ability to write memory dumps which I’m sure had some sort of minimal impact. 

 

My advice is to leave it on, especially with 16GB of ram. If you had 64+, that might be different. I myself use 64GB on any given day—so if I disabled my swap file, things would crash. 

I tried turning on the swap file again and ran several memory hogs and my hard memory usage went up to 59% while the swap file remained unused. Sounds crazy but those are the facts. Since I am using an SSD I am going to try turning off the swap for a while and see how things work. I will report back.

  • 2 weeks later...

Because I have only half the hard RAM you do (8 GB) I've left the swapfile alone (I also am using one of the slowest traditional HDDs as my boot drive, a WD EcoGreen - and this one came out of a WD MyBook).  If anything, performance has increased along the way - for example, I'm posting this from an Ubuntu VM in WSL 2 via Xming X Server for Windows,  while running Facebook in three tabs in the background and installing BlueStacks 4 atop that..  Hence my referring to the whole thing as "torture" in my own post.

  • 5 months later...

Hello,

Are you actually having troubles or noticeable performance issues from having the swap file enabled?  From my perspective, unused RAM is wasted RAM.

 

I can see how there might be an issue for a system where it has to start swapping the contents of RAM memory to virtual memory paging file,  If you are just being arbitrarily told that X% of physical RAM is in use and everything you normally use the computer for is working normally as expected, then I would suggest just continuing to use the computer with the swap file enabled.  If it turns out there are performance problems later as a result, investigate them, but otherwise it seems one would be falling down the rabbit hole of diminishing returns trying to optimize memory usage on a desktop.

 

Regards,

 

Aryeh Goretsky

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • You cannot disable or fully delete Safari on either iOS or macOS. You can ignore it, just like you can with Edge, if that's what you want to do.
    • UniGetUI 3.3.1 by Razvan Serea UniGetUI is an application whose main goal is to create an intuitive GUI for the most common CLI package managers for Windows 10 and Windows 11, such as Winget, Scoop and Chocolatey. With UniGetUI, you'll be able to download, install, update and uninstall any software that's published on the supported package managers — and so much more. UniGetUI features Install, update and remove software from your system easily at one click: UniGetUI combines the packages from the most used package managers for windows: WinGet, Chocolatey, Scoop, Pip, Npm and .NET Tool. Discover new packages and filter them to easily find the package you want. View detailed metadata about any package before installing it. Get the direct download URL or the name of the publisher, as well as the size of the download. Easily bulk-install, update or uninstall multiple packages at once selecting multiple packages before performing an operation Automatically update packages, or be notified when updates become available. Skip versions or completely ignore updates in a per-package basis. Manage your available updates at the touch of a button from the Widgets pane or from Dev Home pane with UniGetUI Widgets. The system tray icon will also show the available updates and installed package, to efficiently update a program or remove a package from your system. Easily customize how and where packages are installed. Select different installation options and switches for each package. Install an older version or force to install a 32bit architecture. [But don't worry, those options will be saved for future updates for this package] Share packages with your friends to show them off that program you found. Here is an example: Hey @friend, Check out this program! Export custom lists of packages to then import them to another machine and install those packages with previously-specified, custom installation parameters. Setting up machines or configuring a specific software setup has never been easier. Backup your packages to a local file to easily recover your setup in a matter of seconds when migrating to a new machine UniGetUI 3.3.1 changelog: Adress executable corruption/integrity detection and semi-automatic resolution: UniGetUI will check for corruption issues. If found, the user will be prompted to repair them. The crash report will contain an integrity report In both cases, if UniGetUI detects an integrity violation and the UniGetUI installer is placed on the installation directory (which will be by default since this release), UniGetUI will ask the user to confirm to start an automated reinstall process. UniGetUI can be reinstalled from Windows Apps and Features -> UniGetUI -> Modify. This will force a reinstall Fixed crashes and issues with GitHub cloud backup and GitHub login Fixed an issue where certain in-app popups wouldn't show the acrylic background properly Migrated to AppSdk Titlebar, and removed WinUIEx as a dependency Improvements to UniGetUI Elevator Fix a few UI crashes and deadlocks involving loading dialogs Reverted a Toolbar UI change that combined different options into a menu. Now the main action has its own button again Other fixes and improvements What's Changed Update icons and screenshots from the excel file by @github-actions[bot] in #3884 Load translations from Tolgee by @martinet101 in #3937 Download: UniGetUI 3.3.1 | 53.3 MB (Open Source) Links: WingetUI Home Page | GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You have reported this issue at least once into their feedback hub?
    • You can disable Chrome on Android and forget that it even exists, you can do the same for Safari in Apple's operating systems. Only ChromeOS is tied with Chrome because the whole OS is Chrome. Safari doesn't have dominant market share but Apple allows you to disable Safari. So why exactly we can't have the same with Edge and only EU Windows users can uninstall Edge? There isn't any valid reason having Edge, the browser, needed for any other app, for widgets etc. That is what Edge webview2 is for.
    • China throws a wrench into Nvidia's H20 comeback plan by Paul Hill China’s Cyberspace Administration (CAC) has summoned Nvidia over alleged security vulnerabilities in its H20 chips. The CAC said that the chips have serious security issues with specific concerns over tracking and positioning and remote shutdown technologies. This development poses a big hurdle for Nvidia just as H20 sales were set to resume after the US reversed a ban that was first imposed in April. According to CNBC, Nvidia had already taken a $4.5 billion writedown on the unsold H20 inventory in May and said sales in its last financial quarter would have been $2.5 billion if export curbs could have been avoided. The CAC is concerned about the chips because of calls from US lawmakers for mandatory tracking features on advanced chip exports. For example, the proposed US Chip Security Act from Senator Tom Cotton and others would require location reporting and remote modification capabilities. If these backdoors have already been baked in, or get added in the future, China would view them as a threat to national security and data privacy. US lawmakers argue that these tracking capabilities are needed to prevent chip smuggling to ensure compliance with export controls which also apply to China. Given its actions, the CAC has reason to believe that the tracking technology is already present. Nvidia CEO Jensen Huang recently visited the Chinese capital, Beijing, to signal the company’s commitment to the Chinese market and announced the resumption of sales of the H20. It is believed that Nvidia placed new orders for 300,000 H20 chipsets with TSMC to meet the anticipated demand. Given the CAC’s decision, it could mess up Nvidia’s plans and force it to consider new ways to navigate US export policies and retain its lucrative China market share. The US is keen to hamper China's AI efforts so that it maintains a lead in the AI race. By limiting access to powerful hardware, it forces China to make more efficient models, or develop powerful hardware itself, slowing down its progress.
  • Recent Achievements

    • Week One Done
      whiloh earned a badge
      Week One Done
    • Week One Done
      memnoch earned a badge
      Week One Done
    • First Post
      UAVXP earned a badge
      First Post
    • Dedicated
      Xinotema earned a badge
      Dedicated
    • Rookie
      MrNukes went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      664
    2. 2
      ATLien_0
      207
    3. 3
      Xenon
      133
    4. 4
      neufuse
      124
    5. 5
      Michael Scrip
      122
  • Tell a friend

    Love Neowin? Tell a friend!