Results 1 to 4 of 4

Thread: swap increases

  1. #1
    Join Date
    Jun 2020
    Beans
    334

    swap increases

    why,the longer the uptime on my pc,the more swap gets?
    if i reboot swap goes back to 0%. is that normal?
    i thought swap only kicks in when you running out of ram.
    (ps. swappines set to 10)
    my uptime now is 3,5 days and swap is at 10% , ram 61%.

  2. #2
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,821
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: swap increases

    It's normal. Swap that only kicks in when there's really no ram available any more wouldn't be the fastest way to handle memory and swap.

    Just after booting, there isn't much in ram, so there's no need to use swap. Caching a file that's used every hour is more useful than keeping a page of memory that's never used after process initialisation in ram, so if you run out of ram, it may sometimes be better to use swap than to drop cached files. And it may be a good idea to begin copying things to to swap when it's likely the system will run out of ram, so that you won't see a long delay when it indeed has run out of ram and has to drop things.

  3. #3
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: swap increases

    3.5 days? Linux can run for years without a reboot, but after 3 or 4 years the PSU usually blows up.

  4. #4
    Join Date
    Jun 2020
    Beans
    334

    Re: swap increases

    It's normal.
    thanks you , i feel easier now

    Linux can run for years without a reboot
    yea i know , but in this country my pc wont be on for longer than a week cause off loadshedding lol

    thanks guys!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •