Results 1 to 6 of 6

Thread: RAM eater: cups

  1. #1
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,340
    Distro
    Ubuntu 14.04 Trusty Tahr

    RAM eater: cups

    Hi all

    I used to have a printer attached to my home server, but the printer died a few months back and the new one is no longer connected to my server.

    I was checking the RAM usage, and I realize I still had cups running:
    Code:
    $ free -m
                 total       used       free     shared    buffers     cached
    Mem:          1498       1461         36          0        249       1044
    -/+ buffers/cache:        167       1330
    Swap:         1906          0       1906
    
    $ sudo service cups stop
    [sudo] password for user: 
     * Stopping Common Unix Printing System: cupsd                           [ OK ] 
    
    $ free -m
                 total       used       free     shared    buffers     cached
    Mem:          1498        424       1074          0        180        107
    -/+ buffers/cache:        136       1361
    Swap:         1906          0       1906
    WOW, I freed more than a gig of RAM!

    I wonder if anyone have experience this, and if it is a problem with cups, or a configuration issue?

    Thanks in advance.
    Regards.

  2. #2
    Join Date
    Nov 2013
    Location
    On the edge
    Beans
    786
    Distro
    Ubuntu

    Re: RAM eater: cups

    If cups is constantly polling its long lost printer then that could account for the ram usage. I suppose you could watch your network traffic to see what cups is up to.

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,050
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: RAM eater: cups

    Check /var/log/cups for large log files. That may account for some of the RAM usage. Were there a bunch of pending print jobs waiting for this printer from other users? That could also take up some space.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: RAM eater: cups

    Thanks for tips bashiergui and tgalati4. I'll look into it.

    Regards.

  5. #5
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: RAM eater: cups

    Actually, you only freed up about 30MiB of ram, if you look at the buffer/cache line. The rest of the ram that was freed up was just reserved for cups, if another process needed the ram, it would be made available for it's usage

  6. #6
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: RAM eater: cups

    There was a 'ghost' process trying to print even after uninstall cups, so I image something was not properly working.

    Thanks cariboo907, I think I understand better 'free' now. It also makes sense with the output of these tool: ps_mem.py .

    Thanks for all your help.
    Regards.

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
  •