当前位置:网站首页>Why can't GC () free memory- Why does gc() not free memory?
Why can't GC () free memory- Why does gc() not free memory?
2022-06-25 06:25:00 【Superior virtue and weak water】
problem :
I run simulations on a Windows 64bit-computer with 64 GB RAM . I have 64 GB RAM Of Windows 64 Bit computer Run the simulation on .Memory use reaches 55% and after a finished simulation run I remove all objects in the working space by rm(list=ls()) , followed by a double gc() . Memory utilization rate reaches 55%, And after the simulation run , adopt rm(list=ls()) Delete all objects in the workspace , And then add double gc() .
I supposed that this would free enough memory for the next simulation run, but actually memory usage drops by just 1% . I thought this would free up enough memory for the next simulation run , But actually memory usage Just down 1% .Consulting a lot of different fora I could not find a satisfactory explanation, only vague comments such as: Consulted many different forums , I can't find a satisfactory explanation , Only vague comments , for example :
"Depending on your operating system, the freed up memory might not be returned to the operating system, but kept in the process space."“ It depends on your operating system , The freed memory may not be returned to the operating system , Instead, it remains in the process space .”
I'd like to find information on: I want to find information about :
- 1) which OS and under which conditions freed memory is not returned to the OS, and1) Which operating system and under what conditions the memory released will not be returned to that operating system , as well as
- 2) if there is any other remedy than closing R and start it again for the next simulation run?2) In addition to closing R And start again for the next simulation run , Are there any other remedies ?
Solution :
Reference resources : https://stackoom.com/en/question/zAz3边栏推荐
- The sum problem
- Optimal Parking
- Lesson 9: workspace introduction
- Leetcode topic [array] -36- effective Sudoku
- 北京网上开股票账户安全吗?
- Grep command – powerful text search tool
- delphi-UUID
- Getting started with mongodb
- Sword finger offer II 095 Longest common subsequence
- Wireless industrial Internet of things data monitoring terminal
猜你喜欢

【LeetCode】40. Combined summation II (2 strokes of wrong questions)
[kicad image] download and installation
![[short time energy] short time energy of speech signal based on MATLAB [including Matlab source code 1719]](/img/a1/0cb61368cb1d0817d74781084a4466.jpg)
[short time energy] short time energy of speech signal based on MATLAB [including Matlab source code 1719]
![[speech discrimination] discrimination of speech signals based on MATLAB double threshold method [including Matlab source code 1720]](/img/36/ad86f403b47731670879f01299b416.jpg)
[speech discrimination] discrimination of speech signals based on MATLAB double threshold method [including Matlab source code 1720]

Understand what MSS is

Gb28181 protocol -- timing

Hands on deep learning (III)

Gavin's insight on transformer live class - line by line analysis and field experiment analysis of insurance BOT microservice code of insurance industry in the actual combat of Rasa dialogue robot pro

Uni app wechat applet customer service chat function

50 days countdown! Are you ready for the Landbridge cup provincial tournament?
随机推荐
Highway
Handling skills of SQL optimization (2)
Day21 JMeter usage basis
Getting started with mongodb
MV command – move or rename files
Click to send text messages without response is a common problem for many users in building the elegant grass Dragonfly Q system - solve the problem of clicking to send text messages without response
Tail command – view the contents at the end of the file
Day22 send request and parameterization using JMeter
Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
Lesson 8: FTP server setup and loading
Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
BigDecimal. Summary of setscale usage
At the age of 26, I was transferred to software testing with zero foundation. Now I have successfully entered the job with a monthly salary of 12K. However, no one understands my bitterness
JS to realize the encapsulation of the function of obtaining the mouse click position
Processes and threads - concepts and process scheduling
CTFSHOW
Research Report on demand and Competitive Prospect of global and Chinese welding personal protective equipment industry 2022-2027
Pre knowledge of asynchronous operation
Optimal Parking
Fdisk command – disk partition