Question Virtual Memory?

meeshu

Member
Jun 9, 2003
194
1
81
Running Windows 10 64 bit with 32 GB RAM, and with two SSD's at 1 TB each and a HDD at 8TB.

Video application installed on the system/boot SSD. On running this application, the application takes almost all of the system RAM.

While running this application, I noticed that my HDD was frequently being used, presumably as virtual memory(?)

The system/boot SSD has 685 GB free space. The second SSD, used for installing and running some applications and games, has 865 GB free space. The HDD is used for data storage only and has 6.95 TB free space.

Why is my computer (apparently) using the storage HDD for virtual memory, and not using the system/boot SSD which has plenty of spare capacity?
 

mikeymikec

Lifer
May 19, 2011
18,471
11,093
136
While running this application, I noticed that my HDD was frequently being used, presumably as virtual memory(?)

That is a rather large presumption and would constitute a pretty serious bug in Windows's code for pagefile management (to be using the slowest drive in the system by orders of magnitude for paging).

For example, my Win11 setup has a boot SSD with plenty of space and a data HDD and pagefile.sys is not on the root of D:\. I'd start with that basic check. To get a dependable result, I would open a command prompt and do DIR driveletter:\ /A (where 'driveletter' is the drive letter of your HDD), which will show all files and folders on the root of the drive. The typical hidden ones I'd expect on a non-system volume are $RECYCLE.BIN and "System Volume Information".

In very odd exceptional scenarios (e.g. IIRC if a user bans all pagefile usage and Windows is crossing its legs and saying "I really wanna go though!"), IIRC a 'swapfile.sys' file gets created elsewhere, maybe in C:\Windows?

I think the more likely explanation for unexpected HDD usage is for example that Windows decided to defrag the drive in the background or virus-scan it. When my system is booted into Win11 and it's allowed to run idle and switch the screen off, it's almost invariably the case that the HDD LED starts going nuts and CPU usage is evidently going up because fan noise becomes noticeable. Windows likes to find stuff to do. Another possibility is you've set one of your user's "special folders" (e.g. Documents / Pictures / Videos) to the HDD and Windows therefore wants to index it.
 

meeshu

Member
Jun 9, 2003
194
1
81
Thanks for the comments.

I've had a look at the video application preferences. There doesn't seem to be a setting for location of temporary files listed, but there's a setting for cache which was set to the boot/system SSD anyway.

The system virtual memory was set to the system/boot SSD with the second SSD and the HDD unset. Setting for virtual memory using the system/boot SSD was at ~ 15 GB, I increased that to 64GB.

While doing test processing of a video using the video application, I had maybe five instances of File Explorer open with perhaps three of them referencing files on the HDD. My internet browser was open with perhaps around a dozen tabs open referencing various websites with the browser running from the system/boot SSD. All of these open applications would have taken up some of my system RAM.

While processing the video, the HDD was working away. But on closing the video application, the HDD was no longer working away.

I had trouble closing the video application as it seemed to have difficulty in closing, so I had to use the Task Manager to close the application. After this, I noticed that except for one instance of File Explorer window, all other instances were closed! Also all of the browser tabs had lost their website content (temporarily) and I had to refresh the website contents for each instance of browser tab.

Now guessing that the system was trying to maintain the contents of those instances of File Explorer referencing the HDD, but couldn't do so due to lack of system RAM (and possibly due to lack of virtual memory availability on the system/boot SSD) while the video application was running.

Bottom line is that it seems I'll need more RAM, which I'm planning to increase to 64GB as it seems that there was insufficient RAM (32GB) to run the video application, internet browser and File Explorer instances at the same time.
 

sdifox

No Lifer
Sep 30, 2005
96,845
16,140
126
if the app is not configured to use the hdd and the virtual memory is set to ssd, I don't see how your hdd is thrashing. Is the source files from the HDD?
 

mikeymikec

Lifer
May 19, 2011
18,471
11,093
136
Thanks for the comments.

I've had a look at the video application preferences. There doesn't seem to be a setting for location of temporary files listed, but there's a setting for cache which was set to the boot/system SSD anyway.

Therefore the most likely place that the application would be storing temp files is in the user's temp folder (C:\users\username\appdata\local\temp).

If the app was running with elevated privs then *maybe* it would be storing temp files in C:\Windows\Temp (though I think for this to be the case the program would have to be a background service e.g. third party antivirus, running with system privs or something similar), but if it's just an app I'd expect it to be the first location I mentioned.
 

sdifox

No Lifer
Sep 30, 2005
96,845
16,140
126
Therefore the most likely place that the application would be storing temp files is in the user's temp folder (C:\users\username\appdata\local\temp).

If the app was running with elevated privs then *maybe* it would be storing temp files in C:\Windows\Temp (though I think for this to be the case the program would have to be a background service e.g. third party antivirus, running with system privs or something similar), but if it's just an app I'd expect it to be the first location I mentioned.

he said in post #6 the source is in the HDD xd
 

meeshu

Member
Jun 9, 2003
194
1
81
Yes. The source video was from the HDD.

In hindsight it would have been preferable to place the source video (or a copy of the source video) within either of the two SSD's for faster data reads.

There were no other (significant) applications running in the background like anti-virus etc. while processing the video.

But there seemed to be a memory issue due to lack of physical RAM. As mentioned previously, I am intending to increase system RAM from 32 GB to 64 GB. Funny thing is that the minimum RAM required for running the video application is 16GB while the recommended RAM is 32 GB which I already have. But despite the 32 GB RAM, I had memory problems and slow video processing issue.
 

mikeymikec

Lifer
May 19, 2011
18,471
11,093
136
What video processing is this application doing exactly?

I'm just curious because while I don't do much in the way of video transformation work, ripping DVD/BR content to H.264 / H.265 has never in my experienced caused significantly elevated RAM usage.

It's not a topic that I regard myself to be particularly knowledgeable about, but my understanding always was that video processing is first and foremost hard on the CPU (or GPU if hardware acceleration is in use).
 

meeshu

Member
Jun 9, 2003
194
1
81
The application is After Effects and I was attempting to use Content Aware to remove a small area of text from a short video of 33 minutes as a test. Video is MP4 format.

In my case the memory usage after running AE jumped from around 25~30% to about 95+%. I don't recall CPU usage for certain but I think it did fluctuate somewhat and jumped from somewhere around 10~20% to maybe 80+% at times(?)
 

In2Photos

Golden Member
Mar 21, 2007
1,969
2,006
136
After Effects is more of a video editing software rather than a processing software. I suspect that the RAM usage is greatly affected by the resolution of the file you are editing as well as the length of the file. A 33 minute video is rather large. What happens to the RAM usage if you work on a smaller file?

Also, always work off of the SSD, then move your completed work to the HDD.
 

meeshu

Member
Jun 9, 2003
194
1
81
Thanks for the additional comments.

With 32GB RAM installed on my system, AE allocated 26GB for itself, leaving 6GB for other applications.

I've now installed 64GB of system RAM and did another AE Content Aware Fill on the test video. The test video clip was copied to my other SSD to maximize data read rates when processing the clip with AE.

The system RAM usage jumped from around 30% and slowly increased to around 86% before I terminated the test. CPU usage was varying somewhat from around 60% to nearly 100% at times.

With 64GB RAM installed, AE allocated 58GB for itself, leaving 6GB for other applications.

The analysing part of Content Aware Fill process still seemed to be slow and remained at 0% after waiting for about 15 minutes before terminating the process.

The test video is a random video downloaded from YouTube. Test video is 1280 x 720 @ 224MB.

Shorter video should process faster and should take less resources. I'll cut a small part of the test video for further testing.
 

sdifox

No Lifer
Sep 30, 2005
96,845
16,140
126
It will take as much ram as you let it.

 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |