Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5359984
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-08-02 09:27:59

Performance on Red Hat 8/9/Fedora Core 1 is terrible, compared to other OSes.
Are you using the default $LANG setting? Do this:
  echo $LANG
If it contains "utf8", then that's probably the problem. Change it so it does not contain "utf8" (see RedHatMalformedUtf8), and the performance issues will clear up.
Perl 5.8 uses Unicode character sets internally in this situation, and unfortunately, this greatly hurts performance of all Perl code which operates heavily on strings (like SpamAssassin).
 
RedHatMalformedUtf8
I get 'Malformed UTF-8 character' errors on Red Hat 8, or using perl 5.8.0, with SA 2.43.
Perl 5.8 introduces a policy change to using UTF-8 character sets by default, which broke a massive amount of existing perl code, including SpamAssassin. SpamAssassin 2.50 will contain a fix, but in the meantime, add this line to the script which starts spamd, or runs the spamassassin script:
        LANG=en_US; export LANG
 
 
阅读(734) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~