当前位置:网站首页>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边栏推荐
- Fdisk command – disk partition
- How two hosts in different network segments directly connected communicate
- Investment opportunities and operational risk assessment report of China's engineering consulting industry during the 14th Five Year Plan period 2022-2028
- Wechat applet authorization login + mobile phone sending verification code +jwt verification interface (laravel8+php)
- Go uses channel to control concurrency
- Pre knowledge of asynchronous operation
- Huawei machine test question: splicing URL
- Wechat applet simply realizes chat room function
- Rhcsa day 4
- TFTP command – uploading and downloading files
猜你喜欢

2022 AI trend 8 forecast!
![[kicad image] download and installation](/img/88/cebf8cc55cb8904c91f9096312859a.jpg)
[kicad image] download and installation

Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033

Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026

Wechat applet authorization login + mobile phone sending verification code +jwt verification interface (laravel8+php)

What elements are indispensable for the development of the character? What are the stages

Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034

How to use asemi FET 7n80 and how to use 7n80

Understand what MSS is

MySQL tuning --01--- optimization steps and system performance parameters
随机推荐
Report on the application prospect and investment potential of global and Chinese cell therapy industry 2022-2028
[open source sharing] deeply study KVM, CEPH, fuse features, including open source projects, code cases, articles, videos, architecture brain maps, etc
[short time average zero crossing rate] short time average zero crossing rate of speech signal based on MATLAB [including Matlab source code 1721]
Highway
[Suanli network] technological innovation of Suanli Network -- Key Technologies of green and security
How to use asemi FET 7n80 and how to use 7n80
Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones
MySQL tuning -- 02 -- slow query log
Arm instructions and others
Forecast report on output demand and supply scale of global and Chinese structural ceramics market for semiconductor equipment (2022 Edition)
Wechat applet simply realizes chat room function
2022-02-19: fence installation. In a two-dimensional garden, there are some trees represented by (x, y) coordinates. As the installation cost is very expensive, your task is to enclose all the trees w
Global and Chinese benzoic acid market competition strategy and demand scale forecast report 2022
[hand torn STL] Stack & queue
Go uses channel to control concurrency
[kicad image] download and installation
Guess the size of the number
Handling skills of SQL optimization (2)
Getting started with mongodb
Netstat command – displays network status