Modify

Ticket #996 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Packages high memory usage

Reported by: https://www.google.com/accounts/o8/id?id=AItOawml9FLAlJIPpclq6kl9_xqDnOqthAW9VF4 Owned by: desai
Priority: critical Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-server Version: 1.0
Keywords: memory Cc:

Description

When starting up bcfg2-server, it uses 2G+ of memory within 30 seconds, at which point it gets killed by the OOMKiller on my VM. I tested it with a couple repositories...

I am using version 1.1.1.

Fedora 14 Everything/x86_64/os

This is the problematic repository.

config.xml:

<Sources>
  <!-- Fedora 14 Supported -->
  <YUMSource>
    <Group>fedora-14</Group>
    <Recommended>True</Recommended>
    <RawURL>http://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/14/Everything/x86_64/os/</RawURL>
    <Arch>x86_64</Arch>
  </YUMSource>
</Sources>

Test:

[[email protected] ~]# rm -rf /srv/bcfg2/Packages/cache/*
[[email protected] ~]# /usr/sbin/bcfg2-server -d -v
Searching for new models to add to the statistics database
Running upgrade of models to the new one
Presently at version 17 updated the 2010-07-02T00:00:00
Packages: File read failed; falling back to file download
Packages: Updating http://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/14/Everything/x86_64/os/repodata/9898b192b32412fbbc2645ef28295b9012aea1bead0f8f91e19351526f5edb15-filelists.xml.gz
Packages: Updating http://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/14/Everything/x86_64/os/repodata/fb245e5247a375e9d0bce5054ce4279409e0c41016d17fdec6aa1b61dfa0914a-primary.xml.gz
Killed

Result: the bcfg2-server process climbed to 2G before being killed.

Fedora 14 Everything/x86_64/debug

This is a much smaller repository.

config.xml:

<Sources>
  <!-- Fedora 14 Supported -->
  <YUMSource>
    <Group>fedora-14</Group>
    <Recommended>True</Recommended>
    <RawURL>http://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/14/Everything/x86_64/debug/</RawURL>
    <Arch>x86_64</Arch>
  </YUMSource>
</Sources>

Test:

[[email protected] ~]# /usr/sbin/bcfg2-server -d -v
Searching for new models to add to the statistics database
Running upgrade of models to the new one
Presently at version 17 updated the 2010-07-02T00:00:00
Packages: File read failed; falling back to file download
Packages: Updating http://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/14/Everything/x86_64/debug/repodata/24012e1d5be44e9017eec034ee8da6fc91f8fd5b2e5e0ba064cb723e30143dae-filelists.xml.gz
Packages: Updating http://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/releases/14/Everything/x86_64/debug/repodata/776257a6637ac9a54f49a5bea353b77baaecdeacb2a4bdd7622db24e069b5eb5-primary.xml.gz
Loading experimental plugin(s): Packages
NOTE: Interfaces subject to change
service available at https://bcfg2-luke.foo.zymeworks.com:6789
serving bcfg2-server at https://bcfg2-luke.foo.zymeworks.com:6789
serve_forever() [start]

Result: the bcfg2-server process climbed to 818M before stabilizing at ~500M.

Attachments

Change History

comment:1 Changed 11 years ago by solj

  • Priority changed from major to critical
  • Milestone set to Bcfg2 1.2.0 Release

comment:2 Changed 11 years ago by solj

  • Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.2.1 Release (Bugfix)

comment:3 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.2.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.