<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>118274</bug_id>
          
          <creation_ts>2006-01-08 03:32 0000</creation_ts>
          <short_desc>SpamAssassin / spamd nice level</short_desc>
          <delta_ts>2006-10-18 08:57:31 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Andreas.Klauer@metamorpher.de</reporter>
          <assigned_to>perl@gentoo.org</assigned_to>
          <cc>rajiv@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>Andreas.Klauer@metamorpher.de</who>
            <bug_when>2006-01-08 03:32:44 0000</bug_when>
            <thetext>I&apos;m using SpamAssassin (spamd/spamc via fetchmail/procmail), and noticed that even with default config, it can cause quite a heavy cpu load at times. Since I receive a lot of mails (or rather, spam) but want my system to be responsive nevertheless, I decided to simply lower the spamd priority using nice.

I &quot;implemented&quot; this by adding a SPAMD_NICELEVEL setting to /etc/conf.d/spamd, and passing this value to start-stop-daemon --nicelevel in /etc/init.d/spamd. I&apos;m not attaching a patch because this change is trivial. If you want a patch nevertheless, please comment.

I think it&apos;d be nice to offer such a configuration setting for all daemons that are likely to be CPU intensive.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2006-03-12 12:23:05 0000</bug_when>
            <thetext>thanks for the tip, commented into the conf.d file that gets installed post-emerge.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-10-17 14:15:49 0000</bug_when>
            <thetext>looks like the conf.d file was updated, but no changes to the init script were made.

Andreas.Klauer @ metamorpher.de: please attach your patched /etc/init.d/spamd file. thanks.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Andreas.Klauer@metamorpher.de</who>
            <bug_when>2006-10-17 15:07:18 0000</bug_when>
            <thetext>Created an attachment (id=99903)
spamd init script that adds --nicelevel to the start-stop-daemon call.

Attached as requested.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-10-18 08:57:31 0000</bug_when>
            <thetext>in cvs. thanks.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>99903</attachid>
            <date>2006-10-17 15:07 0000</date>
            <desc>spamd init script that adds --nicelevel to the start-stop-daemon call.</desc>
            <filename>spamd</filename>
            <type>text/plain</type>
            <data encoding="base64">IyEvc2Jpbi9ydW5zY3JpcHQKIyBDb3B5cmlnaHQgMTk5OS0yMDA1IEdlbnRvbyBGb3VuZGF0aW9u
CiMgRGlzdHJpYnV0ZWQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMg
TGljZW5zZSB2MgojICRIZWFkZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L21haWwtZmlsdGVy
L3NwYW1hc3Nhc3Npbi9maWxlcy8zLjAuMC1zcGFtZC5pbml0LHYgMS41IDIwMDUvMDYvMjggMjM6
MDg6NTIgbWN1bW1pbmdzIEV4cCAkCgojIE5COiBDb25maWcgaXMgaW4gL2V0Yy9jb25mLmQvc3Bh
bWQKCiMgUHJvdmlkZSBhIGRlZmF1bHQgbG9jYXRpb24gaWYgdGhleSBoYXZlbid0IGluIC9ldGMv
Y29uZi5kL3NwYW1kClBJREZJTEU9JH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