Code Monkey home page Code Monkey logo

swap_bot's Introduction

Swap File Management Tool (swap_bot) ๐Ÿ”„

The Swap File Management Tool, also known as swap_bot, is a simple Python program with a graphical user interface (GUI) that allows you to create, manage, and delete swap files on a BTRFS file system. This tool enables users to adjust the size of swap files, change swappiness settings, set priorities for swap files, and more.

Features ๐Ÿ› ๏ธ

  • Create and activate swap files on a BTRFS file system.
  • Resize existing swap files.
  • Customize swappiness (0-100) and swap file priorities (1-32768).
  • Enable automatic priority settings.
  • Delete selected swap files.
  • View information about swappiness and priority settings.

Requirements ๐Ÿ“‹

To use this tool, make sure the following requirements are met:

  • A BTRFS file system is available.
  • You have sudo privileges on your system.
  • Python and the Tkinter library are installed on your system.

Usage ๐Ÿš€

  1. Launch the tool by running the Python script main.py.

  2. Select a folder on your BTRFS file system where the swap file should be created.

  3. Enter the desired size of the swap file in megabytes (MB).

  4. Adjust the swappiness (0-100) and priority (1-32768) settings for the swap file, or enable automatic priority settings.

  5. Click the "Create and Activate Swap" button to create and activate the swap file.

  6. You can select swap files from the list of existing ones and delete them using the "Delete Selected Swap Files" button.

Note ๐Ÿ“

  • Swappiness settings influence how aggressively the system swaps memory pages to the swap partition. Lower swappiness (e.g., 10) prevents swapping as much as possible, while higher swappiness (e.g., 100) causes the system to swap memory pages more frequently.

  • The priority setting determines the order in which swap areas are used. Lower priority (e.g., 1) gives the swap partition a higher priority, while higher priority (e.g., 32768) treats it with lower priority.

License ๐Ÿ“„

This tool is released under the MIT License. For more details, see the License file.

Authors ๐Ÿง‘โ€๐Ÿ’ป

This tool was developed by Hendrik Kaiser and utilizes ChatGPT, an AI model by OpenAI, for development and support.

Support ๐Ÿ“ž

For any questions or issues, please reach out to [Your Contact Information].

swap_bot's People

Contributors

hendkai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.