当前位置:网站首页>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边栏推荐
- General test point ideas are summarized and shared, which can be directly used in interview and actual software testing
- Rational investment and internationalism
- 3-7sql injection website instance step 3: attack type and attack strategy
- Observation configuring wmic
- Uname command – displays system information
- Processes and threads - concepts and process scheduling
- Sword finger offer II 095 Longest common subsequence
- Cat command – display the file contents on the terminal device
- Analysis report on global and Chinese pharmaceutical excipients industry competition and marketing model 2022-2028
- Research Report on marketing channel analysis and competitive strategy of China's polycarbonate industry 2022
猜你喜欢
RT thread i/o device model and layering
CTFSHOW
Understand what MTU is
Socket, network model notes
2022 AI trend 8 forecast!
Mongodb basic concept learning - set
Wireless industrial Internet of things data monitoring terminal
Day21 performance test process
[data visualization application] draw spatial map (with R language code)
50 days countdown! Are you ready for the Landbridge cup provincial tournament?
随机推荐
Tablespace free space
Mongodb delete data
Mount command - file system mount
How often should you refactor- How often should you refactor?
Highway
The sum problem
@The difference between notempty, @notnull and @notblank
Wireless industrial Internet of things data monitoring terminal
Research Report on marketing channel analysis and competitive strategy of China's polycarbonate industry 2022
Hands on deep learning (III)
3-7sql injection website instance step 3: attack type and attack strategy
Notes on dashboard & kuboard installation in kubernetes cluster
JS implementation mouse can achieve the effect of left and right scrolling
Understand what ICMP Protocol is
Handling skills of SQL optimization (2)
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
Distributed solar photovoltaic inverter monitoring
Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
北京网上开股票账户安全吗?
What happens when redis runs out of memory