Linux-Misc Digest #502, Volume #19               Thu, 18 Mar 99 14:13:08 EST

Contents:
  Why do top and ps disagree about CPU utilization? ([EMAIL PROTECTED])
  Re: 10G disk and fdisk/diskdruid problems (James Knowles)
  Apache server will not connect ("Jason Loll")
  Re: KDE vs GNOME and what about Enlightenment? ("John M. Janney")
  Re: (No) PPP (at all) using Zyxel external ISDN TA ([EMAIL PROTECTED])
  Re: How get rid of "hostname:" message from rxvt, xterm? (Paul Kimoto)
  Re: g77 anyone? ("Oliver D. Bedford")
  Re: PostgreSQL question (ingenuit)
  [?] Help w/ ftpd (Francisco Cribari)
  Re: Ghostscript and HP 882 (Grant Taylor)
  Re: KDE vs GNOME and what about Enlightenment? ("John M. Janney")
  Re: Backing up /proc ? ("David Z. Maze")
  Problem for Linux Gurus (Sasa Ostrouska)
  can I get better MetroX graphics? (Doug Sanderson)
  Re: Althought ping is real fast, Telnet is long to accept connection.... (brian 
moore)
  Re: g77 anyone? (Scott Kruger)

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

From: [EMAIL PROTECTED]
Subject: Why do top and ps disagree about CPU utilization?
Date: Thu, 18 Mar 1999 17:10:38 GMT
Reply-To: [EMAIL PROTECTED]

Top and ps seem to disagree wildly about how much CPU time processes use.  If
I have a process that's chewing lots of CPU, top will report it near 100%,
yet ps shows only moderate CPU usage (typically < 30%).  I wrote a little
Python script to read the relevant /proc/PID/stat file and compute a
percentage from that and got results that tend to agree much better with ps
than with top.  Treating /proc/PID/stat as an array named stat and the
previous stat reading as an array named last, I calculated the CPU
utilization during the latest interval as

    ((stat[13]+stat[14])-(last[13]+last[14]))/interval

where all numbers are in 1/100's of a second.  My interval is currently set at
five seconds.  Does ps perhaps compute CPU utilization over a much longer (or
shorter) interval?  If so, why does my calculation differ so much from top's?
Presumably both use the same raw data and the same interval.

Thanks,

Skip Montanaro
Mojam: http://www.mojam.com/
Musi-Cal: http://www.musi-cal.com/

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

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

From: James Knowles <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup
Subject: Re: 10G disk and fdisk/diskdruid problems
Date: Thu, 18 Mar 1999 18:12:34 +0000


> There is a big difference between a formated and unformatted disk. The
> unformatted disk is 9.1 and formatted 8.6.

Marketing, my son, marketing. They play all kinds of tricks to make you
think you're getting more than you do. 

I always knock off about 10% of the displayed capacity to get a rough
idea of what a formatted disk looks like. 

Caveat Emptor 

(Or in today's world, sue the bleeding slime and let the gov't sit on
'em until they die.)

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

From: "Jason Loll" <[EMAIL PROTECTED]>
Subject: Apache server will not connect
Date: Thu, 18 Mar 1999 09:31:13 -0600

I am trying to set up the Apache server with RedHat5.2 with my dynamic dns
address.

1. When I go to my loopback address (127.0.0.1) I get the Apache index page
telling me
that I have correctly installed Apache.

2. I use traceroute www.redhat.com  or any other address and use the #1
address thinking
that this is my dynamic address.

3. I open Netscape Navigator and go to this address and get a Netscape:
Error
    Netscape's network connection was refused by the server 209.32.53.62 .
    The server may not be accepting connections or may be busy.
    Try connecting again later.

I have looked at the configuration files but have not found anything. what
am I doing wrong?



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

From: "John M. Janney" <[EMAIL PROTECTED]>
Subject: Re: KDE vs GNOME and what about Enlightenment?
Date: Thu, 18 Mar 1999 09:14:41 -0600

>From what I've seen (screenshots), I also prefer the look of GNOME.

But does anyone have experience, in terms of everyday use (not as a
programmer, but as someone who uses their system for daily tasks with tools
like StarOffice)?

I'm interested in as many personal stories about individuals' experiences
with both KDE and GNOME so I (and others who read this newsgroup) can get a
good idea of the stability, usefullness, etc. of both KDE and GNOME, and
thus compare them in order to make an informed decision before fumbling
through one or the other and crashing my (and their) system.

I am really looking to get a full fledge Linux system soon (I use Linux only
for web servers now) to migrate my desktop operations, but am looking at Red
Hat 5.3 (coming soon, so I hear) with GNOME support (and drag-n-drop) or
Caldera with KDE.

I've been impressed with the GNOME hype, but pretty much warned away by all
the negative reviews (system unstable, crashes every hour, etc.). I
understand Red Hat is working hard on bug fixes and GNOME stability... but
any help is very much apreciated in terms of comments from first-hand
experience with both KDE and GNOME.

The other issue of concern is the license situation with KDE... I thought it
was open source, but Red Hat tells me that the reason the don't support it
is because of the license issue...

Thank you, Linux community! :o)

John

Dan Nguyen wrote in message <7cpu5i$4sn$[EMAIL PROTECTED]>...
>brian moore <[EMAIL PROTECTED]> wrote:
>: On Wed, 17 Mar 1999 12:51:16 -0600,
>:  John M. Janney <[EMAIL PROTECTED]> wrote:
>:> From all my reading, I get the impression that KDE (for now) is a
better,
>:> more stable choice for the average user (I want to use my Linux box for
a
>:> variety of tasks, to include using WordPerfect and other apps).
>:>
>:> Does anyone have opinions, experiences, ect. regarding these two
competing
>:> desktop environments?
>:>
>:> And what about Enlightenment? Where does this come into the picture?
>
>: Well, the trick to getting it is to understand what KDE and GNOME are
>: and what they are not.
>
>: Neither is a Window Manager, though they both have a 'preferred' wm,
>: you're not required to use it.
>
>KDE prefers KWM, and GNOME prefers Enlightenment, Window Maker, and I
>think will work well with icewm.
>
>: Neither inhibits use of other programs or each other's.  I sometimes
>: run one of the KDE cd players even though I am running GNOME.
>
>I know that some gnome apps need the panel to run.
>
>
>I personally prefer GNOME, mostly for the look.  I dislike qt for both
>the way it looks and the license on the toolkit.
>
>--
>           Dan Nguyen            | It is with true love as it is with
ghosts;
>        [EMAIL PROTECTED]         | everyone talks of it, but few have seen
it.
>http://www.cse.msu.edu/~nguyend7 |                    -La Rochefocauld,
Maxims
>




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

From: [EMAIL PROTECTED]
Subject: Re: (No) PPP (at all) using Zyxel external ISDN TA
Date: Thu, 18 Mar 1999 15:22:48 GMT

<snip> Problem with ZyXel Omni.net TA.

I own one, I don't use it anymore because of an upgrade to DSL.. While I'm
here, if someone wants it contact me via Email for it, my return address is
valid.

Now, to the problem at hand. Getting PPP working.

I found that the INF files for Windows set up the TA very strangly. I avoided
the problem entirely and used an old DOS term program to set it up. If that
sounds too hard, use the Windows 3.1 config program it comes with. That made
the job a bit eaiser. To set it up yourself just go through the back of the
book and set the options with the AT commands. It's just like a high-speed
modem. Now dial "ATD<number>". Did it work? If not, what errors did you get?
I don't have the LCD model, I just use the huge array of LEDs. :)

When doing this testing, do NOT use the dialer programs Win95 comes with. Use
a BASIC terminal. In Linux 'minicom' should work. In fact, don't load Win95
at all.

Second thought... if it works under Win95, dial out with it (so the unit gets
configured) then go into a terminal and do AT&W0. Now in Linux use ATZ as your
init string. That might work. When loading the terminal make CERTAIN that it
does NOT init the 'modem'. That will change all your settings and mess it up
again.

Hmmm... this may work. Go into the advanced dialing properties (I think..
look arround) and set the modem dial command from ATD to AT&W0D. It will
still dial, but it will save the settings right before dialing. Then just ATZ
to get them back.

Just like a normal modem, there are many ways about this. I'd try that last
one first, it is the easy way, if it works. If the unit is working in Win9x
then it will work under Linux, you just need to get the settings right. When
configuring the PPP daemon just config it like a normal modem with ATZ as the
init string. The dial command should be ATD<number>. If you have dual channel
available use ATD<number>+<number> to get the second channel connected. You
can use the same number both times. There is also an S register that
eliminates the need for that dialing sequence if you have a problem with the
software.

In looking at this message, I noticed that my zeros look like 'O'. The AT&W0
command uses a ZERO, not the letter 'O'. ;) Just in case your font is set like
mine.

Good luck, let me know if you get lost allong the way. :)

Travis Tabbal

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

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

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: How get rid of "hostname:" message from rxvt, xterm?
Date: 18 Mar 1999 09:24:06 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Charles Packer wrote:
> In article <[EMAIL PROTECTED]>, Paul Kimoto wrote:
>> Are you sure that this message is coming from the terminal emulator
>> and not the shell that's starting up in it?

> Well, no, I'm not. That's why I added further details beyond
> what you quoted, so that others might have insights that I
> don't. In particular, I showed what happened when I tried to
> execute the terminal emulator outside of X. I should have
> specified, though that I simply entered "rxvt" to do this,
> with no options.

I think I misunderstood this experiment you tried (although I have
no idea why I did).  It makes no sense to run xterm or rxvt without
an X server running.

Your error message looks like it comes from the "hostname" program,
and I do not know why the terminal emulator would call it directly.
(Besides, I ran "strings - /usr/X11R6/bin/xterm | grep hostname"
and came up empty.)

What happens if you invoke "hostname" from the command line?

What happens if you invoke your shell in a virtual console?

Try putting a (temporary) debugging message at the beginning of your
shell's rc file (.bashrc, .cshrc, whatever is appropriate -- you may
have to _create_ it), of the form

        echo "starting $SHELL rc file";

this will help determine whether the error is occuring during the
shell's startup procedure.

-- 
Paul Kimoto             <[EMAIL PROTECTED]>

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

From: "Oliver D. Bedford" <[EMAIL PROTECTED]>
Subject: Re: g77 anyone?
Date: Thu, 18 Mar 1999 19:01:03 +0100

Scott Kruger wrote:

> In particular, I recommend Portland Group's compiler.  I was able to get
> the same performance with a 450MHz
> Pentium II as with a 300MHz Sun Ultra workstation (not with Sun's latest
> compiler however) (the problem size
> was fairly small also).  All things considered, I am impressed with the

  I am currently benchmarking our PC with a PGI f77 compiler 
and some small (real world) molecular dynamics code. 
Our PC (AMD K6) is slower by a factor of 5 compared to the SGI. 

  I never expected the PC to outperform the SGI, but thought that
it should show similar performance for small programs 
(simply based on the SPEC numbers).

> performance of a machine that cost less than
> $2k and a compiler that runs about $500.

  Of course the PC is still the most cost-effective 
(2k DeutschMarks vs. 40k DM for the SGI). 

  Regards,
                Oliver

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

From: ingenuit <[EMAIL PROTECTED]>
Subject: Re: PostgreSQL question
Date: Wed, 17 Mar 1999 21:49:50 GMT

There are a variety of ways.  For general use, Postgresql comes with
both ODBC and JDBC drivers.  Any conventional thing you can put in a web
page (CGI scripts, for example) that can use ODBC or JDBC can therefore
get to Postgresql data.

The most powerful way to use Postgresql with web pages is, IMHO, to use
Java and JDBC.  You can write applets and servlets which can use the
JDBC and do  very powerful things.  This requires non-trivial Java
programming ability although isn't particularly difficult.

In the near future, Java Server Pages and an XML->Java will be widely
supported by web servers and will allow you to directly insert calls to
JDBC in web pages themselves, with at least as much expressive power as
MS Active Server Pages but with full portability.

Best Wishes,

AT

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

From: Francisco Cribari <[EMAIL PROTECTED]>
Subject: [?] Help w/ ftpd
Date: Thu, 18 Mar 1999 12:43:10 -0600


HELP... I am running Red Hat Linux 5.2 on a i686 computer. When I 
try to ftp into my computer, I get the following error message:

bernoulli% ftp edgeworth.de.ufpe.br
Connected to edgeworth.de.ufpe.br.
421 Service not available, remote server has closed connection
ftp> quit
bernoulli%       

In my /etc/inetd.conf file, I have 

#
# These are standard services.
#
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a
telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
gopher  stream  tcp     nowait  root    /usr/sbin/tcpd  gn

I was wondering if someone could give me some pointers. 
Replies by e-mail (in addition to usenet posts) are especially 
useful. Thanks. 

Francisco 

________________________________________________________________________

Francisco Cribari-Neto               voice: +55-81-2718420
Departamento de Estatistica          fax:   +55-81-2718422
Universidade Federal de Pernambuco   e-mail: [EMAIL PROTECTED]
Recife/PE, 50740-540, Brazil         web: www.de.ufpe.br/~cribari/

          IBM: It is slow, but at least it's expensive. 
________________________________________________________________________



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

From: Grant Taylor <[EMAIL PROTECTED]>
Subject: Re: Ghostscript and HP 882
Date: 18 Mar 1999 13:36:59 -0500

"Boisy G. Pitre" <[EMAIL PROTECTED]> writes:

> I've recently replaced my NEC Superscript 860 with an HP 882 Inkjet
> printer. Like the NEC, the HP is connected to my Windows box, and I use
> samba and magicfilter to print to the printer.

That being the case, you could configure Ghostscript to run on the
Windows box and print to the Windows printer driver.  That would get
you the least imperfect color; if we assume that the HP Windows driver
produce the most accurate color possible...

> In searching for a ghostscript driver for the 882, I've come up totally
> short.  Is there such a driver available for Ghostscript 5.5.0?

The 882 appears to be a PCL 3 printer, like most of the other
DeskJets.  It should work well with both the hpdj driver or the cdj850
driver.

Please report your results here and/or in the Printing HOWTO's printer
compatibility database at http://www.picante.com/~gtaylor/pht/printer_list.cgi

-- 
Grant Taylor - gtaylor@picante<dot>com - http://www.picante.com/~gtaylor/
 Cellphone information: http://www.picante.com/~gtaylor/cell/
 Libretto information:  http://www.picante.com/~gtaylor/portable/
 Linux Printing HOWTO:  http://www.picante.com/~gtaylor/pht/

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

From: "John M. Janney" <[EMAIL PROTECTED]>
Subject: Re: KDE vs GNOME and what about Enlightenment?
Date: Wed, 17 Mar 1999 15:34:12 -0600

Thanks...

I just read the article linked from Caldera's web site about why KDE is a
better choice.

It stated that GNOME crashed quite often (very unstable) and not to use it
unless you were a developer or enthusiast.

Although I am somewhat of a Linux enthusiast, I want to "use" my Linux
machine....

any thoughts...

Thanks,
John


brian moore wrote in message ...
>On Wed, 17 Mar 1999 12:51:16 -0600,
> John M. Janney <[EMAIL PROTECTED]> wrote:
>> From all my reading, I get the impression that KDE (for now) is a better,
>> more stable choice for the average user (I want to use my Linux box for a
>> variety of tasks, to include using WordPerfect and other apps).
>>
>> Does anyone have opinions, experiences, ect. regarding these two
competing
>> desktop environments?
>>
>> And what about Enlightenment? Where does this come into the picture?
>
>Well, the trick to getting it is to understand what KDE and GNOME are
>and what they are not.
>
>Neither is a Window Manager, though they both have a 'preferred' wm,
>you're not required to use it.
>
>Neither inhibits use of other programs or each other's.  I sometimes
>run one of the KDE cd players even though I am running GNOME.
>
>All they are is a collection of programs that are designed to work well
>together and provide a consistent look and feel.  So any of the GNOME
>stuff will change its appearance when you install a new theme and
>they'll have icons that mean the same thing and are used in the same
>way.
>
>Which group of programs you choose (or if you mix and match) depends on
>many things, including personal taste and religion.
>
>Personally, I choose GNOME because of the above two reasons.  You're
>free to choose KDE for the same reasons.  Or you can install both and
>choose some parts from some and some from others (I'm tempted to install
>KLyX, for example, because the XForms based LyX is ugly).
>
>--
>Brian Moore                       | "The Zen nature of a spammer resembles
>      Sysadmin, C/Perl Hacker     |  a cockroach, except that the cockroach
>      Usenet Vandal               |  is higher up on the evolutionary
chain."
>      Netscum, Bane of Elves.                 Peter Olson, Delphi
Postmaster




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

From: "David Z. Maze" <[EMAIL PROTECTED]>
Subject: Re: Backing up /proc ?
Date: 18 Mar 1999 13:53:32 -0500

paulm  <[EMAIL PROTECTED]> writes:
paulm> What is the proper way to handle the proc directory on a full
paulm> system backup.  Should I include just the directory without its
paulm> contents, or skip it all- together? ....

You should skip it altogether.  Its contents are generated by the
kernel at runtime; there's no "real" device behind /proc.  Trying to
save/restore, say, /proc/kcore, which is a copy of the kernel's
addressable memory, can cause huge problems.  Most of the files there
are effectively read-only.

-- 
David Maze             [EMAIL PROTECTED]          http://donut.mit.edu/dmaze/
"Hey, Doug, do you mind if I push the Emergency Booth Self-Destruct Button?"
"Oh, sure, Dave, whatever...you _do_ know what that does, right?"

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

From: Sasa Ostrouska <[EMAIL PROTECTED]>
Subject: Problem for Linux Gurus
Date: Wed, 17 Mar 1999 15:15:06 +0100
Reply-To: [EMAIL PROTECTED]

Hi to everyone!

                I Have a problem and I don't know what it is. The
problem is that when i want to
restart some other window manager my X server crashes with the

fvwm95: can't resolve __register_frame_info

I try also to compile some programs like KDE or Window Maker and the
problem is the same.
Can anybody help or suggest ?
I use Slackware 3.6

Thank you in advance
Sasa


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

From: Doug Sanderson <[EMAIL PROTECTED]>
Subject: can I get better MetroX graphics?
Date: Thu, 18 Mar 1999 08:16:01 -0800

When I'm in linux Xwindows using MetroX, the text looks fine but any
graphics
are really messed up. I tried playing with configX, but changes I made
to the screen
and graphics card selections did not seem to have any effect (good or
bad) on my
display, even after rebooting. I think my laptop is newer than the
version of linux
that I have, so maybe the software just can't handle the hardware.
Should I buy
the latest and greatest Redhat and hope I get better graphics? The
computer has
beautiful graphics when running Windows98.

computer = Sony laptop Vaio 233mhz 4gig 64meg 13.3" active matrix
software = Redhat 4.2

--
Doug Sanderson
email: [EMAIL PROTECTED]
homepage: http://www.halcyon.com/dcs



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

From: [EMAIL PROTECTED] (brian moore)
Subject: Re: Althought ping is real fast, Telnet is long to accept connection....
Date: 18 Mar 1999 18:27:20 GMT

On 18 Mar 1999 08:36:28 GMT, 
 DUGRES Hugues <[EMAIL PROTECTED]> wrote:
> Hi guys,
> 
> I have setup a Linux server with a redhat 5.2 distribution package...
> Everything worked ok for a couple of days, but now, I meet an odd problem !
> 
> If a ping the Linux box from the network, it replys within less than 1ms...
> 
> If I try a telnet on it, whatever the port (25, 110, telnet,...) it replies
> instantly 'connected' and then I have to way for 10 seconds before I am
> allowed to enter any username...
> 
> Does anybody know why it behaves in such a way ?

Yep, because your DNS isn't right.  (The system you're telnetting to is
trying to look up the IP number of the other system and timing out.)

-- 
Brian Moore                       | "The Zen nature of a spammer resembles
      Sysadmin, C/Perl Hacker     |  a cockroach, except that the cockroach
      Usenet Vandal               |  is higher up on the evolutionary chain."
      Netscum, Bane of Elves.                 Peter Olson, Delphi Postmaster

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

Date: Thu, 18 Mar 1999 09:24:50 -0800
From: Scott Kruger <[EMAIL PROTECTED]>
Subject: Re: g77 anyone?



This doesn't surprise me really.  All of the RISC chips (Sparc, Alpha,
MIPS, etc.) have better floating point
performance than Intel chips due to RISC vs. CISC issues and cache size
(unless you get a Xeon).  What compiler
you have also makes a big difference and in general the vendors have very
good f77 compilers (years of optimizing
experience).  If you want to do serious computing on your system, I suggest
checking out commercial fortran
compilers (see the fortran FAQ or Fortran Market web site).

In particular, I recommend Portland Group's compiler.  I was able to get
the same performance with a 450MHz
Pentium II as with a 300MHz Sun Ultra workstation (not with Sun's latest
compiler however) (the problem size
was fairly small also).  All things considered, I am impressed with the
performance of a machine that cost less than
$2k and a compiler that runs about $500.

Scott


Oliver D. Bedford wrote:

> Hello,
>
>   does anybody here use fortran on Linux? I�ve compiled a f77 program on
> a K6-2 (350 Mhz) and it is slower compared to a SGI Box (R10000 @ 195
> Mhz)
> by a factor of 3-4.
>
>   TIA,
>         Oliver

--
========================================================================
| Scott Kruger                      Center for Energy and Space Science |
|  Science Applications Intl. Corp.                [EMAIL PROTECTED] |
|  10260 Campus Point Dr., MS E3X                 Phone: (619) 646-9505 |
|  San Diego, CA 92121-1578                       Fax:   (619) 546-6261 |
========================================================================




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


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to