Timeline for How to clear up RAM without exiting kernel?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 12, 2022 at 9:45 | history | edited | Alexey Popkov | CC BY-SA 4.0 | improved formatting |
| Feb 11, 2022 at 23:11 | comment | added | John Taylor | It does not clean RAM, and says "Symbol Number1Dat already removed". | |
| Feb 11, 2022 at 23:09 | comment | added | John Taylor | Thanks! Could you please tell me what is wrong with this toy cycle? MemoryInUse[] Clear[tabb] tabb = {{1, 1}}; For[i = 0, i <= 4, i++, Number1Dat = RandomReal[{0, 1}, 10^8]; Number2Dat = RandomReal[{3, 4}, 10^8]; tabb = Join[tabb, {{Mean[Number1Dat], Mean[Number2Dat]}}]; Remove[Number1Dat]; Unprotect[Out]; Clear[Out]; Remove[Number2Dat]; Unprotect[Out]; Clear[Out]; ] MemoryInUse[] tabb | |
| Feb 11, 2022 at 22:51 | comment | added | Nate | If you had another variable say table1 that was storing those other tables, clearing Out shouldn't get rid of those tables unless you also cleared those individually. | |
| Feb 11, 2022 at 22:50 | comment | added | John Taylor | But if I have the other output (say, the other computed tables used for calculating tabbb) then Clear[Out] would delete also it? | |
| Feb 11, 2022 at 22:48 | comment | added | Nate | The definitions shouldn't be cleared when using this approach. It just clears what is stored in the Out variable. | |
| Feb 11, 2022 at 22:48 | history | edited | Nate | CC BY-SA 4.0 | added 48 characters in body |
| Feb 11, 2022 at 22:47 | comment | added | John Taylor | Maybe then it would be possible to keep the needed definitions in one kernel while using another kernel inside the notebook for calculating the tabbb? | |
| Feb 11, 2022 at 22:44 | history | answered | Nate | CC BY-SA 4.0 |