Re: amavisd uses high cpu usage?
On 2014/08/23 09:02, Indunil Jayasooriya wrote: Hi Stuart, amavisd-new runs fine for me on OpenBSD without particularly high CPU use. I am very glad to hear that it is running fine on my favourite Operating system OpenBSD. is Amavisd-new running on OpenBSD 5.5 ? I've had it running on every version since about 5.2. I did a debug with the command /usr/local/sbin/amavisd debug (I set $log_level = 5 in /etc/amavisd.conf file) it says Segmentation fault Then, I uncommented @bypass_spam_checks_maps = (1); in /etc/ amavisd.conf file. Pls see below # @bypass_virus_checks_maps = (1); # controls running of anti-virus code @bypass_spam_checks_maps = (1); # controls running of anti-spam code # $bypass_decode_parts = 1; # controls running of decoders dearchivers Then. restarted amavisd ( /etc/rc.d/amavisd restart ) . Then, It started working.. I did a debug with the command /usr/local/sbin/amavisd debug again then, it gave this. The amavisd daemon is already running, PID: [4909] amavisd debug runs a standalone copy, displaying log entries on screen rather than to a file. You should run it when amavisd is not already running. I think may be something is wrong with perl modules. Could be. How did you install things? Is this a fresh 5.5 install or an upgrade from an earlier version? Did you upgrade all packages?
Re: amavisd uses high cpu usage?
Hi Stuart, I think may be something is wrong with perl modules. Could be. How did you install things? Is this a fresh 5.5 install or an upgrade from an earlier version? Did you upgrade all packages? Yeah, This is a fresh 5.5 64 bit. I downloaded iso from this http://ftp.jaist.ac.jp/pub/OpenBSD/5.5/amd64/install55.iso and burnt it to CD and installed. Then, I downloaded below stuffs and copied to a CD . http://ftp.jaist.ac.jp/pub/OpenBSD/5.5/src.tar.gz http://ftp.jaist.ac.jp/pub/OpenBSD/5.5/sys.tar.gz http://ftp.jaist.ac.jp/pub/OpenBSD/5.5/ports.tar.gz Then I mounted the cd and copied them to /usr directory and ran below commands as explained here. http://www.openbsd.org/anoncvs.html#starting # *cd /usr/src* # *tar xzf ../sys.tar.gz* # *tar xzf ../src.tar.gz* # *cd /usr* # *tar xzf ports.tar.gz* But, I still have NOT updated src and port tree. Could you pls let me kow which command do I need? I want to stay in Stable branch - it is patched branch isn't it? Are below commands ok? to update the src # cd /usr/src Now which is the right command for a patch branch? cvs -d anon...@anoncvs.jp.openbsd.org:/cvs -q up -Pd or cvs -d anon...@anoncvs.jp.openbsd.org:/cvs -q up -rOPENBSD_5_5 -Pd to update the port tree. # cd /usr/ports Again, which is the right command for a patch branch? cvs -d anon...@anoncvs.jp.openbsd.org:/cvs -q up -Pd or cvs -d anon...@anoncvs.jp.openbsd.org:/cvs -q up -rOPENBSD_5_5 -Pd Pls let me know. I will run and add a cronjob on daily basis. Anyway, I installed posfix amavisd-new with pkg_add -v command. export PKG_PATH=http://ftp.jaist.ac.jp/pub/OpenBSD/5.5/packages/amd64/ then pkg_add -v postfix pkg_add -v amavisd-new potput of pkg_info amavisd-new-2.8.1p0 interface between mailer MTA and content checkers arc-5.21p create extract files from DOS .ARC files autoconf-2.13p3 automatically configure source code on many Un*x platforms autoconf-2.65p0 automatically configure source code on many Un*x platforms autoconf-2.67p0 automatically configure source code on many Un*x platforms autoconf-2.68p0 automatically configure source code on many Un*x platforms autoconf-2.69p1 automatically configure source code on many Un*x platforms automake-1.10.3p7 GNU Standards-compliant Makefile generator automake-1.11.6p1 GNU Standards-compliant Makefile generator automake-1.12.6p0 GNU Standards-compliant Makefile generator avahi-0.6.31p13 framework for Multicast DNS Service Discovery bash-4.2.45p0 GNU Bourne Again Shell bison-2.3p1 GNU parser generator bzip2-1.0.6p0 block-sorting file compressor, unencumbered cabextract-1.4 extracts files from Microsoft CAB archives cairo-1.12.16 vector graphics library clamav-0.98.1 virus scanner cups-libs-1.7.1 CUPS libraries and headers curl-7.34.0p0 get files from FTP, Gopher, HTTP or HTTPS servers cyrus-sasl-2.1.26p10 RFC SASL (Simple Authentication and Security Layer) db-4.6.21p0v0 Berkeley DB package, revision 4 dbus-1.8.0v0message bus system docbook-4.5p1 technical documentation XML/SGML definitions docbook-dsssl-1.79 modular DSSSL stylesheets for the DocBook DTD docbook-xsl-1.68.1p5 docbook XSL modular stylesheet e2fsprogs-1.42.7p0 utilities to manipulate ext2 filesystems easy-rsa-2.2.0p0small RSA key management package gd-2.0.35p1 library for dynamic creation of images gdbm-1.10p0 GNU dbm gettext-0.18.2p4GNU gettext glib2-2.38.2p6 general-purpose utility library gmake-4.0p0 GNU make gnugetopt-1.1.4p2 GNU getopt(1) utility gnupg-1.4.16GNU privacy guard - a free PGP replacement gobject-introspection-1.38.0p1 GObject Introspection gperf-3.0.4p0 perfect hash functions, to help write parsers groff-1.22.2p4 GNU troff typesetter help2man-1.41.1p0 generates simple manual pages from program output icu4c-52.1 International Components for Unicode iftop-1.0pre2p0 display bandwidth usage on an interface intltool-0.50.2 internationalization tools iso8879-1986p0 character entity sets from ISO 8879:1986 (SGML) jdk-1.6.0.32p6 Java2(TM) SE Dev Kit v1.6.0.32 jnettop-0.13.0p1capture network traffic, display streams sorted by bandwidth jpeg-9p0IJG's JPEG compression utilities lha-1.14i.ac20050924.1 archive files using LZW compression (.lzh files) libdaemon-0.14p0lightweight C library that eases the writing of daemons libelf-0.8.13p1 read, modify, create ELF files on any arch libexecinfo-0.2p3v0 clone of backtrace facility found in the GNU libc libffi-3.0.9p6 Foreign Function Interface libgcrypt-1.6.1 crypto library based on code used in GnuPG libghttp-1.0.9p2GNOME http client library libgpg-error-1.12p0 error codes for GnuPG related software libiconv-1.14p1 character set conversion library libidn-1.28p0 internationalized string handling libltdl-2.4.2p0 GNU libtool
amavisd uses high cpu usage?
Hi, I am running amavisd-new-2.8.1p0 with postfix on OpenBSD 5.5 64 bi . I noticed amavisd uses high cpu usage. This is the OUTPUT of top command 18748 _vscan640 94M 68M onproc/1 -48:11 99.27% perl Could you pls explain why? anyway to solve this? -- cat /etc/motd Thank you Indunil Jayasooriya http://www.theravadanet.net/ http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts
Re: amavisd uses high cpu usage?
On 2014 Aug 22 (Fri) at 14:53:47 +0530 (+0530), Indunil Jayasooriya wrote: :Hi, : :I am running amavisd-new-2.8.1p0 with postfix on OpenBSD 5.5 64 bi . : :I noticed amavisd uses high cpu usage. : : : :This is the OUTPUT of top command : :18748 _vscan640 94M 68M onproc/1 -48:11 99.27% perl : : :Could you pls explain why? : the program requires a lot of CPU time to process the data. : :anyway to solve this? : : Use less data. Or, ask the amavisd-new group. -- A CONS is an object which cares. -- Bernie Greenberg.
Re: amavisd uses high cpu usage?
: :This is the OUTPUT of top command : :18748 _vscan640 94M 68M onproc/1 -48:11 99.27% perl : : :Could you pls explain why? : the program requires a lot of CPU time to process the data. Thanks for your quick response. : :anyway to solve this? : : Use less data. Or, ask the amavisd-new group. In Linux (CentOS), It DOES NOT use so much CPU as in OpenBSD. Anyway, Amavisd-new group is the right place for it. I will go with them. Thanks once again. -- A CONS is an object which cares. -- Bernie Greenberg. -- cat /etc/motd Thank you Indunil Jayasooriya http://www.theravadanet.net/ http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts
Re: amavisd uses high cpu usage?
On 2014-08-22, Indunil Jayasooriya induni...@gmail.com wrote: Hi, I am running amavisd-new-2.8.1p0 with postfix on OpenBSD 5.5 64 bi . I noticed amavisd uses high cpu usage. This is the OUTPUT of top command 18748 _vscan640 94M 68M onproc/1 -48:11 99.27% perl Could you pls explain why? anyway to solve this? amavisd-new runs fine for me on OpenBSD without particularly high CPU use. Investigate your logs (maybe turn on debug logging), check your configuration, maybe ktrace or nytprof will give clues as to what's happening.
Re: amavisd uses high cpu usage?
Hi Stuart, amavisd-new runs fine for me on OpenBSD without particularly high CPU use. I am very glad to hear that it is running fine on my favourite Operating system OpenBSD. is Amavisd-new running on OpenBSD 5.5 ? I did a debug with the command /usr/local/sbin/amavisd debug(I set $log_level = 5 in /etc/amavisd.conf file) it says Segmentation fault Then, I uncommented @bypass_spam_checks_maps = (1); in /etc/amavisd.conf file. Pls see below # @bypass_virus_checks_maps = (1); # controls running of anti-virus code @bypass_spam_checks_maps = (1); # controls running of anti-spam code # $bypass_decode_parts = 1; # controls running of decodersdearchivers Then. restarted amavisd ( /etc/rc.d/amavisd restart ) . Then, It started working.. I did a debug with the command /usr/local/sbin/amavisd debug again then, it gave this. The amavisd daemon is already running, PID: [4909] I think may be something is wrong with perl modules. U guys are experts. any comments? -- cat /etc/motd Thank you Indunil Jayasooriya http://www.theravadanet.net/ http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts