rsyslog V6 & V7: high load on FreeBSD 8.1

This is the place for developers to discuss bugs, new features and everything else about code changes.

Google Ads


rsyslog V6 & V7: high load on FreeBSD 8.1

Postby mkuerschner » Thu Feb 28, 2013 1:33 pm

Hi,

I updated my installation from rsyslog V5 to V6.6.0 and later 7.2.4. After that updates, I got really high load on my system. I check with top and found the rsyslogd runs with 80% of CPU times. I found the following lines in logfiles for the rsyslog process:
- imudp: cannot set thread scheduling policy, pthread_setschedparam() not available
- recvfrom inet: Socket operation on non-socket
- recvfrom inet: Bad file descriptor

I did'nt seen this messages before the upgarde and not after the switch back to version 5.10.0. Is there a special option missing in my configurtion or a switch to compile the program in the right way? Is version 5 the last usable version for my installation? Which addition information can I send to solve this topic?

My installation:
- FreeBSD 8.1 on sparc
- install rsyslog with pgsql support from ports repository

Thanks & Regards,
Michael
mkuerschner
New
 
Posts: 6
Joined: Thu Feb 28, 2013 12:55 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby sporkman » Fri Mar 01, 2013 8:52 am

I'm just starting setting up v7 on a FreeBSD 8.3 host, and while I'm not seeing the high cpu usage, I can confirm the "rsyslogd: imudp: cannot set thread scheduling policy, pthread_setschedparam() not available" message.

PTHREAD_SCHEDPARAM(3) does exist on FreeBSD, so I'm not sure what that's about.
sporkman
New
 
Posts: 9
Joined: Wed Feb 27, 2013 1:01 am

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby mkuerschner » Mon Mar 04, 2013 2:37 pm

Thanks for feedback of your FreeBSD installation. Which is your CPU architecture?

My next step are an release update of FreeBSD.

Regards,
Michael
mkuerschner
New
 
Posts: 6
Joined: Thu Feb 28, 2013 12:55 pm

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby trungmv » Tue Mar 05, 2013 2:54 am

Hi Michael,

How to do to update to new version? Installation by overwrite the old version or remove the old version and installation a new version?
Can you show me the step to installation?
Any help is appreciated,

Best regards,
trungmv
Advanced
 
Posts: 43
Joined: Fri Jan 20, 2012 10:08 am

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby mkuerschner » Tue Mar 05, 2013 10:40 am

Hi Trugmv,

>How to do to update to new version? Installation by overwrite the old version or remove the old version and installation a new version?
>Can you show me the step to installation?

For the upgrade I used the FreebBSD Ports distribution. For the first jump from V5 to V6, I used the portupgrade tool, which compile, deinstall old package and install the new version. After the performance problems on my machine, I try the new version with the following steps:
- deinstall old rsyslog V6 via pkg_delete
- configure rsyslog V7 Ports package with "make config", add support for Postgresql
- compile and install via "make install clean"
- start new service via "/usr/local/etc/rc.d/rsyslog start"

So I think the new/other version will be installed and deinstalled in a clean way. My configuration rsyslog.conf is same on all versions except a statement with "*" user destination, which is handled in version 6 and 7 in another way.

Regards,
Michael
mkuerschner
New
 
Posts: 6
Joined: Thu Feb 28, 2013 12:55 pm

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby sporkman » Tue Mar 05, 2013 11:04 pm

Others running v7 on FreeBSD, do you still see this error on startup?

Code: Select all
cannot set thread scheduling policy, pthread_setschedparam() not available
sporkman
New
 
Posts: 9
Joined: Wed Feb 27, 2013 1:01 am

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby mkuerschner » Wed Mar 06, 2013 9:20 am

Hi sporkman,

yes, this start message is in my log files with version 6 and above.

Regards,
Michael
mkuerschner
New
 
Posts: 6
Joined: Thu Feb 28, 2013 12:55 pm

Re: rsyslog V6 & V7: high load on FreeBSD 8.1

Postby mkuerschner » Wed Apr 03, 2013 11:37 am

Hi,

a status update: I switched the version from FreeBSD to 9.1 STABLE and also rsyslog to version 7.2.4.

The current load in tis configuration is ok, but the service don't run very well.
- error message at start of service: imudp: cannot set thread scheduling policy, pthread_setschedparam() not available
- error message billion times: recvfrom inet: Bad file descriptor

I have no good idea to catch this problem. Run service in debug mode and wrote a debug log file, but found no point to grab deeper.

Regards,
Michael
mkuerschner
New
 
Posts: 6
Joined: Thu Feb 28, 2013 12:55 pm

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron