LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2002, 02:30 PM   #1
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Talking processes


Hi there over msg board!
I wanted to ask: How can I exclude agetty and klogd loading? And can I do that?
thnx
 
Old 09-27-2002, 04:03 PM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 48
I'm not sure why you would want to do that, but I'll show you how. . .

<lecture>
Before you start, you really should read the man pages on both klogd and agetty (man klogd; man agetty).

klogd is the kernel system message logger, and if it's disabled, you won't
get any messages about what your system is doing. If you have any errors (on loading modules, for example), you won't be able to get any meaningful output from the kernel.

Anway, enough with the lecturing:
</lecture>

in /etc/rc.d
do a
grep klogd *
you'll get something like:
rc.syslog: if [ -x /usr/sbin/syslogd -a -x /usr/sbin/klogd ]; then
rc.syslog: echo -n "Starting sysklogd daemons: "
rc.syslog: sleep 1 # prevent syslogd/klogd race condition on SMP kernels
rc.syslog: echo " /usr/sbin/klogd -c 3 -x"
rc.syslog: /usr/sbin/klogd -c 3 -x
rc.syslog: killall klogd 2> /dev/null

the first field is the filename that contains klogd, so edit that file (in this
case, rc.syslog) and comment out the lines above (don't forget to comment out the "fi" that closes the if statement).

<lecture>
agetty is used for allowing multiple "virtual consoles" access to which is
gained by hitting Alt-F1, Alt-F2...Alt-F6 (or more). This ability can really aid
in debugging (especially if you have problems with X). You can switch from X by hitting Ctrl-Alt-F6, and fix whatever problems you're having, say
Netscape has frozen X completely, but you can't reboot because you're in
the middle of FTPing a large file from work. You can switch to console
mode, kill netscape and switch back to X (Ctrl-Alt-F7) and let your FTP
session finish. If you disable all of the gettys, you will not be able to do that.

Anyway, enough with the lectures.
</lecture>

To disable gettys, edit your /etc/inittab file and comment out the lines:

# These are the standard console login getties in multiuser mode:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

Read a couple of lines down (don't comment out this, just read it):

# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:wait:/etc/rc.d/rc.4

Before you do any of this, make sure you know how to boot from a boot
disk (CDROM or floppy) and fix these files if something goes horribly wrong.

Good luck, have fun.

Cheers,
Moses
 
Old 09-27-2002, 04:41 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
I would totally not recommend disabling these. What would be your purpose in getting rid of these, first off, they don't take up too much space or resources, so I see no real reason to stop these processes.

Just a warning.
 
Old 09-27-2002, 07:32 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I'd say not a good idea either, I really enjoy these features. One of my favorite things about linux is being able to have 6 different logins doing 6 different things. And the kernel messages, oh I think I'd still be back asking how to use my mouse if I didn't have those.

Really suggest against it buddy.

Cool
 
Old 09-28-2002, 05:53 AM   #5
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
Why some program always takes alot processes, for example:
I start xmms >> ps -aux
root 546 12.2 3.9 14748 4996 ? S 11:52 0:00 xmms
root 547 0.0 3.9 14748 4996 ? S 11:52 0:00 xmms
root 548 0.0 3.9 14748 4996 ? S 11:52 0:00 xmms
root 549 0.0 3.9 14748 4996 ? S 11:52 0:00 xmms
Why not one?
 
Old 09-28-2002, 07:10 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Maybe for xmms it's plugins. If you have alot of plugins that start with the program, I'd bet they also count as processes. Try something simpler, like pico, and see if it gives you the same thing.

Cool
 
Old 09-28-2002, 07:12 AM   #7
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
But not only XMMS gives such thing, but GALEON, MOZILLA OPERA etc....
 
Old 09-28-2002, 07:33 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Same deal. Those are all complex programs, loading external plugins et all. That's why I am saying try a simple program, something like vi. If you get vi showing 5 processes, then I'd probably dig up something on google.com/linux if I were you, and see what the deal is. But I am guessing that it's because these are complex programs, not simple command line text editors.

Cool
 
Old 09-28-2002, 07:37 AM   #9
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
And one more question: Don't what is the difference between processes in [some process] and all other, for example:
root 8 0.0 0.0 0 0 ? SW 10:32 0:00 [kreiserfsd]
root 52 0.0 0.0 0 0 ? SW 10:32 0:00 [eth0]
root 55 0.0 0.5 1860 644 ? S 10:32 0:00 /usr/sbin/syslogd
root 58 0.0 0.3 1296 380 ? S 10:32 0:00 /usr/sbin/klogd -c 3 -x
root 60 0.0 0.2 1284 352 ? S 10:32 0:00 /usr/sbin/inetd
?
 
Old 09-28-2002, 07:41 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Well from your example, I'd deduce that processes in brackets [] are kernel processes, system processes. Where the others such as /usr/sbin/syslogd are user processes.

If you are pulling these from top, it might also explain some of this in the man, but since I am not a linux box, I couldn't really tell you very easily.

Cool
 
Old 09-28-2002, 07:49 AM   #11
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
So the ones in brackets are kernel processes.....ok
 
Old 09-28-2002, 07:55 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Well, that is only my deduction, but from your example, assuming you pulled that straight from top, that would appear to be a close guess anyway.

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Too many processes CelticSoul Linux - Software 1 10-22-2005 03:09 AM
How many processes does everyone have? Furlinastis Slackware 22 09-26-2005 03:53 AM
To many #*$!$@!%! Processes! vaderj Linux - General 4 01-01-2005 11:31 PM
What are these processes doing? Dark Jedi Linux - Newbie 1 12-15-2004 08:44 AM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 02:58 AM


All times are GMT -5. The time now is 08:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration