I have 256MB Orange Pi Zero that I want to run OctoPrint on. It starts and run for some time, then it gets killed because of out of memory. I can't add more RAM so I tried to increase swap size. I added 1GB but it doesn't help. Also I don't understand why but I have "htop" running at the same time, and from what it shows the swap ("Swp") isn't used, and there is still free 1/3 of physical memory ("Mem") all the time. What is going on. I don't care about the performance at this point. Is there any way I can force it to run on swap?
How can I prevent oom-kill without increasing RAM
1.9k Views Asked by Krzysiek At
1
There are 1 best solutions below
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in SWAP
- Swap method results in disappearing points in Manim scene
- need an function swap for swaping elements
- fstab logs out the swap-related configuration, but swap is still turned on after the machine restarts
- Can I swap with 1inch swap apis with forked hardhart?
- Increase swap memory in Rancher or Podman with Mac Apple Sillicon
- Switching values of columns by condition
- Why my print statement inside the swap function is giving such output?
- Are rvalue references Cpp17MoveConstructible?
- logic fault with reversing the order of vector elements using std::swap
- Label are not scrolled and swap with table and their respectieve rows
- How to swap Solana on devnet?
- Solana: How to fix an invalid public key problem?
- Random Image Swapping using Javascript not working
- How can swap through Raydium using Python
- How to Swap Solana Tokens on Raydium DEX?
Related Questions in ORANGE-PI
- How do I convert the update.img artifact from the Orange Pi 4 LTS Android build to an image I can flash on a microSD card?
- Error compiling dts (Device Tree source) file for dtb
- How do I add Aosp-Node-Prebuilts to the Orange Pi 4 LTS Android 8.1 build?
- Terminal errors when running my project code, which uses GPIO
- GPIO I2C IMU on OrangePi CM4 Running Android Doesn't Interface With Native Apps
- wiringpi cross-compiling error undefine reference to `pthread_join@GLIBC_2.34'
- Could not find GPIO edge file on OrangePi Lite
- How do I connect an Orange Pi 4 LTS running Android to Android Studio on a Mac?
- orange pi lite pcm5102 i2s
- Orange Money Payment - React Native
- Cannot duplicate virtual camera on Orange Pi 5B
- how transfer from memory to device with dma in linux
- The group of gpio is reset after reboot the Orangepi 5 plus
- 'gpiod' is not a package
- My tkinter app wont start on armbian startup
Related Questions in OCTOPRINT
- How to make OctoPrint API calls from an android app to controll devices with similar functionality to 3D printers?
- Installing Module wrapt says - ModuleNotFoundError: No module named 'wrapt'
- Configuring HAProxy in docker (503 Service Unavailable)
- Serving Website With Nginx on Raspberry Pi Alongside Octoprint
- OctoPrint API, error 400 when making a POST request
- Websocket not working with basic authentication on nginx-ingress
- pip in path but command not found
- Errors installing Netfaces for Python in Win10
- Auto Run Script after power on - Raspberry Pi
- ModuleNotFoundError: No module named 'apscheduler'
- How to Nginx reverse proxy (proxy_pass) from inside Docker container to ouside (local network)
- How do bind/map a device to Rancher?
- Python: using RPi GPIO input to switch smart plug via curl (octoprint plugin API)
- How can I prevent oom-kill without increasing RAM
- Can't hit site with Traefik in Docker
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could tell OOM Killer to ignore the OctoPrint process.
See https://backdrift.org/oom-killer-how-to-create-oom-exclusions-in-linux.
Or you could adjust swappiness so that Linux swaps earlier. See https://www.howtoforge.com/tutorial/linux-swappiness/.