Editing Ereswap
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 42: | Line 42: | ||
edit: | edit: | ||
- | /home/user/. | + | /home/user/.ereswap/config |
...providing locations for main swap, it's size, and backup swap. | ...providing locations for main swap, it's size, and backup swap. | ||
'''Then, run:''' | '''Then, run:''' | ||
- | /home/user/. | + | /home/user/.ereswap/adjust-rcS-late.sh |
It will adjust Your "/etc/event.d/rcS-late", to - during boot - enable Your main swap and to reset Mb's-written-to-swap counter. This step must be done only once. | It will adjust Your "/etc/event.d/rcS-late", to - during boot - enable Your main swap and to reset Mb's-written-to-swap counter. This step must be done only once. | ||
'''Now, at any time, invoke:''' | '''Now, at any time, invoke:''' | ||
- | ereswap | + | ereswap.sh |
- | ...from terminal. It will check counter and inform You about | + | ...from terminal. It will check counter and inform You about ammount of data left before hitting swap fragmentation (or any arbitrary value set in config file), or, how many Mb's after it You are. In second case, it will also re-enable swap. |
'''To re-enable swap at any time, unconditionally, invoke:''' | '''To re-enable swap at any time, unconditionally, invoke:''' | ||
- | freswap | + | freswap.sh |
...it's useful, if You're close to hit limit, and planning to do memory-hungry stuff. | ...it's useful, if You're close to hit limit, and planning to do memory-hungry stuff. | ||
'''If You ever change Your swap's location, just edit config file and invoke:''' | '''If You ever change Your swap's location, just edit config file and invoke:''' | ||
- | /home/user/. | + | /home/user/.ereswap/update-rcS-late.sh |
It will update Your rcS-late with respect to new swap locations and/or size. | It will update Your rcS-late with respect to new swap locations and/or size. |
Learn more about Contributing to the wiki.