Puncte:0

Free swap file space contained on root partition without rebooting to free space checked by df

drapel om

I have created a temporary Swap file (/var/cache/swap/myswap) of 500GB on a Ubuntu worstation at work wiht 1TB RAM. This swapfile is on a BTRFS filesystem.

I don't need anymore of this swapfile now and I would like that space taken by this swapfile doesn't appear anymore when I do a "df" command.

I would like to free this space without rebooting.

I tried : $ swapoff -a

I have also tried : $ swapoff /var/cache/swap/myswap

I have removed too basically the file /var/cache/swap/myswap

But still space 500GB are taken into account when I do a df command (I have still 64% root partition "/" instead of 10% when there is not swapfile of 500GB)

How could I make really this swapfile to not be taken into account with df command without having to reboot ? I mean, that Swapfile removing to be effective.

Nmath avatar
drapel ng
Ai `rm` dosarul?
youpilat13 avatar
drapel om
@Nmath . Da, l-am eliminat așa cum am spus, dar afișarea memoriei cu `df` nu s-a actualizat, e ciudat.
Nmath avatar
drapel ng
Probabil că există o memorie cache care împiedică actualizarea imediată. Consultați: https://unix.stackexchange.com/q/8485

Postează un răspuns

Majoritatea oamenilor nu înțeleg că a pune multe întrebări deblochează învățarea și îmbunătățește legătura interpersonală. În studiile lui Alison, de exemplu, deși oamenii își puteau aminti cu exactitate câte întrebări au fost puse în conversațiile lor, ei nu au intuit legătura dintre întrebări și apreciere. În patru studii, în care participanții au fost implicați în conversații ei înșiși sau au citit transcrieri ale conversațiilor altora, oamenii au avut tendința să nu realizeze că întrebarea ar influența – sau ar fi influențat – nivelul de prietenie dintre conversatori.