Cramsession Linux Newsletter

Cramsession.com Linux News Archive

Please note that I've stopped writing the Linux News as of January 30, 2003, as Cramsession has cancelled most of their newsletters. You can send any questions or comments about this content to me (sean at ertw . com)
People have been asking for a downloadable version of the archives. [My mbox (one big file, 1.4MB)] [Individual files, text, tarball] [Individual files, html, tarball]
If you're looking for more Linux content, you might like my blog.
Jan 30, 2003
  Linux News - Issue #117
Jan 23, 2003
  Linux News - Issue #116
Jan 16, 2003
  Linux News - Issue #115
Jan 9, 2003
  Linux News - Issue #114
Jan 2, 2003
  Linux News - Issue #113
Dec 19, 2002
  Linux News - Issue #112
Dec 12, 2002
  Linux News - Issue #111
Dec 5, 2002
  Linux News - Issue #110
Nov 28, 2002
  Linux News - Issue #109
Nov 21, 2002
  Linux News - Issue #108
Nov 14, 2002
  Linux News - Issue #107
Nov 7, 2002
  Linux News - Issue #106
Oct 31, 2002
  Linux News - Issue #105
Oct 24, 2002
  Linux News - Issue #104
Oct 17, 2002
  Linux News - Issue #103
Oct 10, 2002
  Linux News - Issue #102
Oct 3, 2002
  Linux News - Issue #101
Sep 26, 2002
  Linux News - Issue #100
Sep 19, 2002
  Linux News - Issue #99
Sep 12, 2002
  Linux News - Issue #98
Sep 5, 2002
  Linux News - Issue #97
Aug 29, 2002
  Linux News - Issue #96
Aug 22, 2002
  Linux News - Issue #95
Aug 15, 2002
  Linux News - Issue #94
Aug 8, 2002
  Linux News - Issue #93
Aug 1, 2002
  Linux News - Issue #92
Jul 25, 2002
  Linux News - Issue #91
Jul 18, 2002
  Linux News - Issue #90
Jul 11, 2002
  Linux News - Issue #89
Jul 4, 2002
  Linux News - Issue #88
Jun 27, 2002
  Linux News - Issue #87
Jun 20, 2002
  Linux News - Issue #86
Jun 13, 2002
  Linux News - Issue #85
Jun 6, 2002
  Linux News - Issue #84
May 30, 2002
  Linux News - May 30, 2002
May 23, 2002
  Pearl In The Shell
May 16, 2002
  Linux Filesystems - Part Two
May 9, 2002
  Inside The Linux Filesystem
May 2, 2002
  CD Burning Under Linux
Apr 25, 2002
  Star Office Vs. Open Office
Apr 18, 2002
  Surfing With Mozilla
Apr 11, 2002
  "We Don't Support Linux..."
Apr 4, 2002
  Visit The UNIX Library
Mar 28, 2002
  Linux and World Domination
Mar 21, 2002
  Working With Keyservers
Mar 14, 2002
  A Look At Public Key Cryptography
Mar 7, 2002
  Monitoring Systems With "vmstat"
Feb 28, 2002
  Star Office 6 Not to be Free for Linux?
Feb 21, 2002
  How Can Programming Benefit a Systems Administrator?
Feb 14, 2002
  Alias: It's Not Just a TV Show
Feb 8, 2002
  Using The diff and patch Utilities
Jan 31, 2002
  How To Detect Cracks
Jan 24, 2002
  Using Razor to Shave Away Spam
Jan 17, 2002
  Stomping Spam
Jan 10, 2002
  Sair Linux Courseware Review
Jan 3, 2002
  2002: The Year of the Penguin!
Dec 27, 2001
  UNIX Apps on a Windows Box?
Dec 20, 2001
  Directory Assistance
Dec 13, 2001
  How Do You Kill Zombies?
Dec 6, 2001
  Using Hard and Soft Symlinks
Nov 29, 2001
  Change Terminal-Based Apps Into Network Apps
Nov 22, 2001
  Adventures In Booting
Nov 15, 2001
  Getting To Know PAM
Nov 8, 2001
  Know Your Enemy
Nov 1, 2001
  Do Mulder and Scully Use X-Windows?
Oct 25, 2001
  A Quick Look at the RHCE Certification
Oct 18, 2001
  What's Up With Linux Certification?
Oct 11, 2001
  Express Yourself Regularly
Oct 4, 2001
  Advice For Lazy Penguins?
Sep 27, 2001
  NVIDIA Jumps On Linux Bandwagon
Sep 20, 2001
  Understanding DNS in a Linux Environment
Sep 13, 2001
  Be Careful With Binaries
Sep 6, 2001
  Party Like It's 999,999,999
Aug 30, 2001
  Rooting Out Memory Hogs
Aug 23, 2001
  Spin Your 'Top'
Aug 16, 2001
  Keeping Time With NTP
Aug 9, 2001
  Supporting True Type Fonts
Aug 2, 2001
  Getting Perl To Fetch
Jul 26, 2001
  Who's The Man?!
Jul 19, 2001
  Adobe Cracks The DMCA Whip
Jul 12, 2001
  Due Processes
Jul 5, 2001
  Going Adobe Free
Jun 28, 2001
  Don't Send Mixed SIgnals
Jun 21, 2001
  Everything is a File. (almost)
Jun 14, 2001
  Know Your Partitions
Jun 7, 2001
  Where it's "at"!
May 31, 2001
  A Sneak Peek at RedHat 7.1
May 24, 2001
  Scheduling Tasks With cron - Part 2
May 17, 2001
  Scheduling Tasks With cron
May 10, 2001
  Open Source - Seeing Through The FUD
May 3, 2001
  A Look At Ximian's New Release
Apr 26, 2001
  Rev Up Your X-Windows Session
Apr 19, 2001
  Wrangling With GNU Cash
Apr 12, 2001
  Tame the syslogd Daemon
Apr 5, 2001
  Test Your Admin Skills At Honeynet
Mar 29, 2001
  Software RAID on Your Linux Box
Mar 22, 2001
  Prevent Disasters: Back It Up
Mar 15, 2001
  Notes From Underground!
Mar 8, 2001
  SuSE 7.1 - A First Look
Mar 1, 2001
  Certification Boot Camp
Feb 22, 2001
  Understanding Runlevels
Feb 15, 2001
  What Are The Advantages of Joining a LUG?
Feb 8, 2001
  Diving For Perls
Feb 1, 2001
  How To Secure Your Linux Installation
Jan 25, 2001
  Linux Problem Solving
Jan 18, 2001
  Stand up and Be Counted!
Jan 11, 2001
  2.4.0 is Here!
Jan 4, 2001
  When will Mom use Linux?
Dec 28, 2000
  The Year in Review
Dec 21, 2000
  The SourceForge Solution
Dec 15, 2000
  How to Compile and Install the New Kernel
Dec 7, 2000
  Put Your E-mail Into A Blackberry Basket
Nov 30, 2000
  Using Perl With Linux
Nov 23, 2000
  Working With MP3's Under Linux
Nov 16, 2000
  Apache 2.0 alpha 4
Nov 9, 2000
  Dell loves Linux!
Nov 2, 2000
  What's Up With RedHat 7?
===========================================================
                        LINUX NEWS
            RESOURCES & LINKS FROM BRAINBUZZ.COM
                 Thursday, August 23, 2001
           Read By 7,000 Linux Enthusiasts Weekly!
===========================================================

-----------------
TABLE OF CONTENTS
-----------------

1) Sean's Notes

2) Linux News

	RSA's Official Guide to Cryptography
	Mandrake 8.1 Beta Available
	I Can't Believe It's Not Linux!
	Red Hat Stands Behind ext3

3) Linux Resources

	The Linux Cookbook
	Some Tips and Tricks for Samba
	NIST Special Publication on Intrusion Detection Systems
	RHCE Essentials
	Various Handy Commands

4) App o' the week


~~~~~~~~~~~~~~~~~~~~~~ ADVERTISEMENT ~~~~~~~~~~~~~~~~~~~~~~~

Overview of Java 2 for $9.95 plus shipping and handling.
Save $95 and learn the skills you need for today's
demanding job market. Save yourself Time and Money by
having the training you need at your fingertips.

http://ad.brainbuzz.com/?RC06&AI772

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For information on how to advertise in this newsletter
please contact mailto:adsales@BrainBuzz.com or visit
http://cramsession.brainbuzz.com/marketing/default.asp

===========================================================
1) Sean's Notes
===========================================================
So, everything's been running fine on your web server ever
since you converted it to Linux.  You locked it down,
verified it, and now stuff like Code Red doesn't worry you.
Suddenly, your daydream of how you'll spend your raise is
interrupted by the phone ringing!  It appears your company's
web site is responding very slowly!

You log in, sure enough, everything is slow.  What's causing
it?  Too many hits?  Evil crackers?  How do you fix it?
More RAM?  Extra CPUs?  Maybe move the database off to a
separate server?

Your first indication of how your server is running is the
Load Average.  The quickest way to get this is through the
"w" or "uptime" commands.  The load average is returned as
three numbers:

load average: 0.13, 0.12, 0.09

These numbers represent the average number of processes in
the run queue over 1, 5, and 15 minutes respectively.  The
run queue contains all the processes that are waiting for
the CPU...that is, they aren't waiting on IO, and haven't
been suspended.

In the case above, the numbers are very low, and fairly
consistent across the three time periods.  The latter
indicates a level load, i.e. there were no bursts.  If you
had a 15 in the first column, but 0.10 in the other two,
you're either temporarily loaded, or just starting into
some heavy processing.

On a system with one CPU, anything above one would mean that
processes are contending for the CPU.  This isn't a bad
thing, things will just be slower.  Obscene numbers like 20
are usually a sign that things have run away.  Check your
process listing (ps -ef) for processes you don't expect,
such as 100 odd sendmail processes.

On a system that normally sits at, say, 0.20 across the
board, but is at 1.20, check for a process that is spinning,
or otherwise taking more than its fair share of CPU.  To do
that, we'll look at the "top" program.

Top, as its name implies, shows the most intensive
processes.  You'll see some status information first:

7:42pm  up 18 days,  1:16,  3 users,  load average: 1.10, 1.08, 1.08
98 processes: 95 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: 99.6% user,  1.1% system,  0.0% nice,  0.0% idle
Mem:  384392K av,  351296K used,  33096K free,  0K shrd,  87940K buff
Swap:      0K av,       0K used,      0K free  165224K cached

We'll read more into this another day, but for now, notice
the consistent load average of around 1.10.  Look at the CPU
state line -- 98.8% user load, so it's going to be user
process as opposed to the kernel.  Skipping down to the list
of processes:

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
28598 root      19   0   304  304   248 R    99.4  0.0 346:24 cpusucker

There we are -- that "cpusucker" process has been hogging
the CPU!  Take a peek at the "time" column, it's been going
for a while.  This time represents the seconds of CPU usage
that the process has soaked up.  A process that spends most
of its time on the CPU will thus have a high time.  Processes
like these are rare, most programs do a lot of IO.  Examples
of heavy CPU using programs would be SETI, raytracers, and
password crackers.

After killing off PID 28598, your system returns to normal,
and everyone is happy.  The next thing you do is find out
what that process was, and plan your resources around it.
On a web server, this could be a sign of some sloppy coding
in a CGI.

This time, we were lucky and it was an easily spottable CPU
hog.  Next week, we'll look at how to check on the status of
memory and other resources.

A final note about the load average -- It's a good indicator,
but it doesn't tell the whole story.  You can have a busy
system with a low load, or an idle system with a high load.
More often than not, though, a high load is a sign of some
trouble.

Long live the Penguin,

Sean
mailto:swalberg@brainbuzz.com

Visit the Linux News Board at
http://boards.brainbuzz.com/boards/vbt.asp?b–2


===========================================================
2) Linux News
===========================================================

------------------------------------
RSA's Official Guide to Cryptography
------------------------------------
Yep, it's by the same guys that made the algorithms that
protect your e-commerce transactions. This book provides a
great introduction to cryptography and its applications,
without getting into the math.

http://itresources.brainbuzz.com/tutorials/tutorial.asp?t=S1TU1390

---------------------------
Mandrake 8.1 Beta Available
---------------------------
Looking at the software list, this thing is still smoking
hot! KDE 2.2, GNOME 1.4, Kernel 2.4.8 with ReiserFS, JFS,
and ext3 as options right out of the install, not to mention
a bunch of updates to the tools.

http://www.linux-mandrake.com/en/test81beta1.php3

-------------------------------
I Can't Believe It's Not Linux!
-------------------------------
Caldera, who makes a Linux distribution, bought SCO, who
has its own version of UNIX (Unixware) for Intel. Then it
announces that it's added support for Linux binaries to
Unixware, and that it's going to come bundled with the
"Linux Environment". So is it Linux? Or isn't it? How is
this different from FreeBSD or Solaris?

http://www.sco.com/press/releases/2000/6948.html

--------------------------
Red Hat Stands Behind ext3
--------------------------
This one was a surprise to me...Red Hat is going to push
the ext3 filesystem. Like ReiserFS, it's journalled, but
according to this story, it has a lot of added features.

http://linuxtoday.com/news_story.php3?ltsn 01-08-22-004-20-NW-RH


===========================================================
3) Linux Resources
===========================================================

------------------
The Linux Cookbook
------------------
This book is made for people who use Linux for their
everyday work, and want to know how to get the job done.
Lots of examples and clear organization make this one a
winner. You can even read the book online, but this is one
you'll want in dead tree format.

http://itresources.brainbuzz.com/tutorials/tutorial.asp?t=S1TU1416

------------------------------
Some Tips and Tricks for Samba
------------------------------
This site provides some handy tips for working with Samba,
the daemon that emulates Windows filesharing. Examples
include policies and profiles, and how to increase speed.

http://www.patoche.org/LTT/samba/

-------------------------------------------------------
NIST Special Publication on Intrusion Detection Systems
-------------------------------------------------------
The US National Institute of Standards and Technology wrote
a paper on the proper use of Intrusion Detection Systems,
which was converted to HTML and mirrored on cryptome.org.
It is a very complete paper, covering network, host, and
application IDS.

http://cryptome.org/sp800-31.htm

---------------
RHCE Essentials
---------------
The Red Hat Certified Expert certification combines both
written and practical tests, and successful candidates must
have a mastery of Linux in order to pass. This article
chronicles one person's trip through the program, and offers
some insight for those looking to make it themselves.

http://certcities.com/editorial/exams/story.asp?EditorialsID!

----------------------
Various Handy Commands
----------------------
This collection of tips shows the use of strace, od, and
even some parts of ls that I'll bet you didn't know about.
There are even some commands to help you find who's hogging
all your disk space!

http://www.linuxlookup.com/html/totw/2001/july.html


===========================================================
4) App o' the week
===========================================================

Thought switches protect from sniffing? Think again. Dsniff
is a tool for network security auditing. It does some really
interesting things with your network, such as impersonating
the gateway. It's also a great tool for learning about how
the lower levels of the network work.

http://www.monkey.org/~dugsong/dsniff/

===========================================================
(C) 2001 BrainBuzz.com. All Rights Reserved.
===========================================================

_______________________________________________________

         This message is from BrainBuzz.com.

You are currently subscribed to the
   Hottest Linux News and Resources
   as: sean@ertw.com

To un-subscribe from this newsletter by e-mail:
   send a blank email message to:
   mailto:leave-linuxnews-3825955Y@list.cramsession.com

-------------------------------------------------------

To Subscribe to this newsletter by e-mail:
   send a blank email message to:
   mailto:join-linuxnews@list.brainbuzz.com
_______________________________________________________