Ceroni<br>Lol<br>We just had this conversation<br>Vacuum and analyze the table<br><br>Also what's the process that's eating the CPU and what tool are you using for syncing your errata, and is it still running in the background?<br><span style="font-family:Prelude, Verdana, san-serif;"><br><br></span><span id="signature"><div style="font-family: arial, sans-serif; font-size: 12px;color: #999999;">-- Sent from my HP Pre3</div><br></span><span style="color:navy; font-family:Prelude, Verdana, san-serif; "><hr align="left" style="width:75%">On Apr 11, 2013 1:46 PM, Matthew Ceroni <matthewceroni@gmail.com> wrote: <br><br></span><div dir="ltr">About a week ago I loaded all of the CentOS errata for version 5 and 6 (up until April 4), using the following tool<div><br></div><div><a href="http://cefs.steve-meier.de/">http://cefs.steve-meier.de/</a><br>
</div><div><br></div><div style>The errata loaded, however ever since (so almost a week) the CPU usage on my Spacewalk server hovers around 75% and I slowly get Spacewalk Errata Alert indicating that one ore more systems you have registered are impacted by said errata. </div>
<div style><br></div><div style>Looking at the pg Activity log for Postgres I see the following statement that is continually running:</div><div style><br></div><div style><div>SELECT DISTINCT snv.server_id AS server_id, S.name, S.release, SA.name as arch,</div>
<div>         urn.user_id</div><div>       FROM (</div><div> --</div><div> select rhnChannelErrata.errata_id, rhnChannelErrata.channel_id, rhnServerChannel.server_id, rhnErrataPackage.package_id</div><div> from rhnChannelErrata, rhnErrataPackage, rhnChannelNewestPackage, rhnPackageEVR,</div>
<div>         rhnServerChannel, rhnServerPackage, rhnPackageUpgradeArchCompat</div><div> where rhnChannelErrata.errata_id = rhnErrataPackage.errata_id</div><div> --</div><div>         and rhnChannelErrata.channel_id = rhnChannelNewestPackage.channel_id</div>
<div>         and rhnErrataPackage.package_id = rhnChannelNewestPackage.package_id</div><div> --</div><div>         and rhnChannelErrata.channel_id = rhnServerChannel.channel_id</div><div>         and rhnChannelNewestPackage.name_id = rhnServerPackage.name_id</div>
<div>         and rhnServerChannel.server_id = rhnServerPackage.server_id</div><div> --</div><div>         and rhnChannelNewestPackage.evr_id = rhnPackageEVR.id</div><div> --</div><div>         and rhnServerPackage.package_arch_id = rhnPackageUpgradeArchCompat.package_arch_id</div>
<div>         and rhnPackageUpgradeArchCompat.pack</div><div><br></div><div><br></div><div style>I have about 175 systems registered. Is there a way to optimize the DB so that the searching of systems + applicable errata runs quicker. Or a way to terminate the current (going on a week now) process that has been running since I loaded all the Errata? I tried restarting Spacewalk but that didn't resolve anything. </div>
</div></div>