Opened 5 months ago

Closed 4 months ago

#18971 closed enhancement (duplicate)

delete the swap file after disabling virtual memory and rebooting

Reported by: dovsienko Owned by: nobody
Priority: low Milestone: R1/beta6
Component: System Version: R1/Development
Keywords: Cc:
Blocked By: #4843 Blocking:
Platform: All

Description

Preferences -> Virtual Memory

By default the virtual memory is enabled and the swap file size is 2GB. After the user disables virtual memory and reboots the host, the swap file is still there and consuming 2GB of disk space:

> ls -l /system/var/swap 
-rw------- 1 user root 2146369536 Feb  20 13:52 /system/var/swap

One of the reasons to disable virtual memory is to reclaim disk space, so it would be most useful to delete or to truncate the swap file when not in use. This may be a bit more complicated than it seems due to the reasons discussed in #7550 and #8971.

Change History (3)

comment:1 by waddlesplash, 5 months ago

Milestone: UnscheduledR1/beta6

comment:3 by diver, 4 months ago

Blocked By: 4843 added
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.