Re: funcd / yum memory usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Raoul Thill wrote:
Hi,

OK, you're right. I've made new tests this time with a bit more information:

1. Before yum and rpm db update, Memory usage is at 0.5:

[root@BANANN ~]# free
            total       used       free     shared    buffers     cached
Mem:       2050684    1218252     832432          0      34336     554344
-/+ buffers/cache:     629572    1421112
Swap:      2031608          0    2031608
[root@BANANN ~]# ps aux | grep funcd
root 3280 0.5 0.5 27940 10908 ? S 08:26 0:00 /usr/bin/python /usr/bin/funcd --daemon root 3383 0.0 0.0 4044 676 pts/1 S+ 08:27 0:00 grep funcd

2. After yum / rpm update:

[root@BANANN ~]# free
            total       used       free     shared    buffers     cached
Mem:       2050684    1318380     732304          0      34580     555548
-/+ buffers/cache:     728252    1322432
Swap:      2031608          0    2031608
[root@BANANN ~]# ps aux | grep funcd
root 3280 16.4 5.4 138792 112520 ? S 08:26 0:12 /usr/bin/python /usr/bin/funcd --daemon root 3395 0.0 0.0 4044 680 pts/1 S+ 08:27 0:00 grep funcd

Memory remains at 5.4 for process funcd, when running my update process a 2nd time, memory goes up to 10.2 and so on.

My code to update the database:

import func.overlord.client as fc

def pingAgent(agt):
   client = fc.Client("%s" % agt)
   ping = client.test.ping()
   return ping

def rpm(agt):
   client = fc.Client("%s" % agt, async=0)
   rpms = client.rpms.inventory()
   return rpms
      def update(agt):
   client = fc.Client("%s" % agt, async=0)
   updates = client.yumcmd.check_update()
   return updates

--
Raoul

Michael DeHaan wrote:
Raoul Thill wrote:
Hi All,

in reference to a previous post on the mailing list, I would like to see if you have an idea how to fix this. I'd really like to help, but I am not sure in what module the memory is used? Could it be a wrong yum call?

I've tried this also on the latest version and it remains the same error.

Raoul

This data does not include any stats on the func process, so it does not point at Func.

It would be more helpful to see relevant parts from "ps aux", etc.

Also depends on what "your application" does :)

--Michael




Ok, I'm not seeing this...

I'm seeing a momentary spike as libraries are being loaded/used, which settles back down later. I can't pad func into consuming tons of RAM, for instance...

--Michael





_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux