LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-10-2008, 04:25 AM   #1
pixel_paul
LQ Newbie
 
Registered: Jan 2008
Location: Bristol, UK
Distribution: CentOS
Posts: 3

Rep: Reputation: 0
setroublshootd using 50% memory


Hi,

setroubleshootd appears to be using 50% of the memory available on my server - I have pretty much nailed all of the setroubleshoot messages, so I am only getting one or two a day, but it still appears to be using loads of memory.

any one any ideas as to how to reduce this? (without turning selinux off please!)

Thanks,

Paul
 
Old 04-10-2008, 07:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Did you change anything in the setroubleshoot.cfg?
Does setroubleshootd.log show anything?
And if you change the warning level to info or even debug in setroubleshoot.cfg?
Or else by attaching 'strace' to the PID?
Anything else related in syslog or audit.log that may help?
 
Old 04-10-2008, 09:39 AM   #3
pixel_paul
LQ Newbie
 
Registered: Jan 2008
Location: Bristol, UK
Distribution: CentOS
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Did you change anything in the setroubleshoot.cfg?
No

Quote:
Does setroubleshootd.log show anything?
Empty file

Quote:
And if you change the warning level to info or even debug in setroubleshoot.cfg?
Warning level is set to info

Quote:
Or else by attaching 'strace' to the PID?
Lots of this:
poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 2, 100) = 0
futex(0xa013d28, FUTEX_WAKE, 1) = 0
futex(0xa013d28, FUTEX_WAKE, 1) = 0
futex(0xa013d28, FUTEX_WAKE, 1) = 0
futex(0xa013d28, FUTEX_WAKE, 1) = 0
futex(0xa013d28, FUTEX_WAKE, 1) = 0
futex(0xa013d28, FUTEX_WAKE, 1) = 0
futex(0xa149a20, FUTEX_WAKE, 1) = 0

But then I don't know what I'm looking for!

Quote:
Anything else related in syslog or audit.log that may help?
Not that I can see.

I ran ps aux | grep setroubleshootd and got this:

MEM: 48.8% COMMAND: /usr/bin/python -E /usr/sbin/setroubleshootd

Not sure if this means it is a related python issue?

Thanks for your help

Paul
 
Old 04-11-2008, 07:42 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Could be. IIGC Python allocates all the meory it needs for a process, I'm seeing a virtual size of fifty megs and resident is aprox fifteen megs but fifty percent of total memory is ridiculous. Looking aroud I see some metnioning of the same situation but same as here w/o OS/package version specs nor fixes. I'd suggest you check CentOS' bug tracking for similar issues and open a ticket if there's none.
 
Old 06-26-2008, 05:01 AM   #5
pixel_paul
LQ Newbie
 
Registered: Jan 2008
Location: Bristol, UK
Distribution: CentOS
Posts: 3

Original Poster
Rep: Reputation: 0
Just to answer this problem:

It turns out that versions of setroubleshootd prior to 2.x branch could lead to this problem. Redhat has released an upgrade of EL5.1 to EL5.2, which upgrades setroubleshootd to 2.x branch. This has now been reflected by CentOS with 5.2 now available.

The selinux mailing list is useful for figuring out/answering these problems:

http://www.redhat.com/mailman/listin...a-selinux-list

Cheers,

Paul
 
Old 01-14-2009, 10:07 AM   #6
vesperatus
Member
 
Registered: Feb 2004
Posts: 44

Rep: Reputation: 15
Had the same issue here.

I dont know if it is related, but my "hald-addon-stor" was taking a lot of cpu time due to a CD being mounted for a couple of week.

I unmounted the CD, stopped the setroubleshootd process, waited a couple of minute and VOILA, 200 MB of ram freed and load average back to normal.

By the way, if anyone wonders how to restart the process :

Code:
/etc/init.d/setroubleshoot restart
 
Old 05-24-2010, 01:26 AM   #7
dwhswebhosting
LQ Newbie
 
Registered: Jun 2004
Location: Earth
Distribution: CentOS 6 and 7
Posts: 27

Rep: Reputation: 0
Quote:
Originally Posted by vesperatus View Post
Had the same issue here.

I dont know if it is related, but my "hald-addon-stor" was taking a lot of cpu time due to a CD being mounted for a couple of week.

I unmounted the CD, stopped the setroubleshootd process, waited a couple of minute and VOILA, 200 MB of ram freed and load average back to normal.

By the way, if anyone wonders how to restart the process :

Code:
/etc/init.d/setroubleshoot restart
Is there a better fix for this yet, sorry for the old thread I didn't want to open another for the same problem. Seems like needing to restart it is just a temp fix.
 
  


Reply

Tags
selinux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tool to detect number of memory slots, memory module type, speed, and size stefanwolf Linux - Hardware 8 04-22-2013 09:48 AM
LXer: This week at LWN: Memory part 7: Memory performance tools LXer Syndicated Linux News 0 11-22-2007 08:51 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration