Linux-Development-Sys Digest #448, Volume #6      Wed, 3 Mar 99 05:14:04 EST

Contents:
  Re: something like getch needed (Olof Wolgast)
  Re: SMP Support (Peter Samuelson)
  Re: Real Programmers text editors (Dave)
  Kernel 2.0.33: Very high load caused by network driver bug? (Jan Kunzmann)
  Re: waiting for milliseconds? (Larry Blanchard)
  Re: RedHat install crashes -- "buggy cmd640b" error (leslie barstow)
  Re: WHY AM I BEING BLAMED? ([EMAIL PROTECTED])
  Re: waiting for milliseconds? (Adam P. Jenkins)
  UNIX Kernel MYSTIC/GURU WANTED!!! - Job opening ([EMAIL PROTECTED])
  Any Insure++ Users? (Mark Riehl)
  Re: SMP Support (Rob Komar)
  EXT2_UNRM_FL (ZandiNi)
  Kernel NFS Problem; device busy (Rainer Krienke)
  Re: Request for kernel compile w/ cmd640 support (Alex Butcher)
  XFree and fvwm2.2 help?? ("Dan Miller")

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

From: Olof Wolgast <[EMAIL PROTECTED]>
Subject: Re: something like getch needed
Date: Tue, 02 Mar 1999 18:53:50 +0100

ncurses have it

John DeBoard wrote:

> something like getch needed, is there any kind of hack to get the same
> effect as getch?
>
> Heres a hack for  kbhit()
>
> #include <stdio.h>
> #include <sys/time.h>
> #include <sys/types.h>
> #include <unistd.h>
>
> int kbhit(void)
> {
>     fd_set rfds;
>     struct timeval tv;
>
>     FD_ZERO(&rfds);
>     FD_SET(0, &rfds);
>
>     tv.tv_sec = 0;
>     tv.tv_usec = 0;
>
>     if(select(1, &rfds, NULL, NULL, &tv))
>     {
>         return(1);
>     }
>
>     return(0);
> }
>
> Thank you for the help,
>
> John DeBoard


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

From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: SMP Support
Date: 2 Mar 1999 18:43:37 -0600
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[Julian Robert Yon <[EMAIL PROTECTED]>]
> "Just for fun" I did a "make -j" build on a non-smp system. It was
> really rather slow, but it did use all my main memory and 60M+ of
> swap, and pushed my load up to 69, which was a new record for
> me... :-)

You basically never want to use `make -j' without specifying how many
-j's you want....  If you have a lot of object files that don't depend
on each other (i.e. a highly parallelizable build) you can eat all your
memory and swap pretty quickly.  And back before some of the mm patches
in late Linux 2.1 (when Linux learned how to deal with low-memory
situations better) you could easily bring a machine to its knees.  I
haven't tried since then so I don't know how well those patches work.

It *would* be a good stress test for the mm system, I suppose.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

From: [EMAIL PROTECTED] (Dave)
Crossposted-To: 
alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware,fr.rec.voyages
Subject: Re: Real Programmers text editors
Date: 2 Mar 1999 20:29:01 -0600

In article <7bdrob$frd$[EMAIL PROTECTED]>, "Per Olsson" <[EMAIL PROTECTED]>
wrote:

> I found the file at http://www.home.fh-karlsruhe.de/~fema0012/realp.htm
> 
> Per Olsson wrote in message <7bdr1o$fka$[EMAIL PROTECTED]>...
> >Great! I didn't know the original source of my sig. I would be happy if you
> >posted the file here or sent me a copy to mailto:[EMAIL PROTECTED]

Wow!  That's it alright.  Thanks for the pointer.

Nice to see that it "survived".

This is cross-posted because I don't know which group you are reading this
in.  I'm in comp.sys.mac.misc.

Dave

-- 
Brought to you by a Mac and a Windows proxy server. 
Macs and PCs working together for a better world!
It *can* be done!          :-)

Can't we all just get along?

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

From: Jan Kunzmann <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,linux.dev.kernel
Subject: Kernel 2.0.33: Very high load caused by network driver bug?
Date: Wed, 03 Mar 1999 04:12:24 +0100

Hi all,

I have some problems with my Linux box:

Sometimes, when I access Samba or Apache server from other computer in
the network, the load on the linux box climbs up to 10 or higher, so
even the console hangs. According to a top output, the time is consumed
by the kernel (80% of the load), not by daemons or user programs. A
tcpdump on an other computer in the network showed that the linux box
rapidly sends the same TCP packet all the time.

It seems that the network driver gets stuck in a loop. A ping to the box
sometimes causes that user processes get a little execution time: I only
could run top on the box by typing "top" to the console (resp. to the
keyboard buffer) and pinging the box from somewhere else to give sh
enough time to launch the tool.

Usually, the linux box return to normal operation after one minute or
so, but the high load returns soon after I reaccessed Apache or Samba.

Here is my configuration:
Intel 486/33, 20 MB, two NE2000 cards, TELES 16.3 ISDN card.
RedHat 5.0, Linux Kernel 2.0.33 (modular), glibc2.
Apache 1.2.5, Samba 1.9.17p4.
Box does:
 routing between two subnets,
 masqueraded ISDN dialup,
 work as remote boot server for diskless box,
 run SMB and webserver for internal use

If someone has an idea whats wrong here or wants further information,
please contact me. I have neither knowledge nor time to trace this bug
(if it is one), so write if you have an idea.

Thanx, cu Hombre

--
Jan Kunzmann aka Hombre                                   Hombre on IRC
[EMAIL PROTECTED]                     [EMAIL PROTECTED]

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

From: Larry Blanchard <[EMAIL PROTECTED]>
Subject: Re: waiting for milliseconds?
Date: 02 Mar 1999 19:18:30 PST
Reply-To: [EMAIL PROTECTED]

Zefram Cochrane wrote:
> 
> I thought about this sort of thing a few weeks ago: why would anyone want
> to "wait" for something of the order of "milliseconds". *micro*seconds
> I could understand, and *seconds* I could understand.
> 
Well, I'm not the original poster, but I've worked on some projects with
that kind of timimg requirements.  A flight simulation for NASA that
sampled and responded every 4 milliseconds, an aluminum rolling mill
with a 25 millisecond cycle, etc..  Many control systems may indeed have
hardware that can respond in microseconds, but if you sampled them at
that rate you'd get an awful lot of "no change since last time" readings
:-).  For example, at a rough estimate, a plane travelling 600 mph moves
about 1 foot a millisecond.

-- 
Larry Blanchard - Old roses, old motorcycles, and old trains
Homo Sapiens is a goal, not a description.

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

From: leslie barstow <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: RedHat install crashes -- "buggy cmd640b" error
Date: 3 Mar 1999 03:49:09 GMT

Patrick,

I also have a CMD640 controller (a really cheap PCI/ISA multi-function
card), and have had nothing but trouble with it.  Linux does better than
most, but my secondary drive still reports short reads on imaginary sectors.
MS-DOS won't even recognize the secondary controller - I have to initialize
using Linux.

I am using RedHat (5.0), and the kernel comes with CMD640 support compiled
in (that's why you're getting the "buggy cmd640" messages - if it weren't,
you wouldn't get those messages).  This looks like a real problem, perhaps
with the CMD640 workaround code, or perhaps with your system.  Your best
bet is to get an add-on IDE card with BIOS, and go from there (actually,
your best bet if you're shopping is to just get a new mainboard, CPU, and
case for a couple hundred - you'll thank yourself in the morning)

Good Luck

In comp.os.linux.development.system
   Patrick Mueller <[EMAIL PROTECTED]> wrote:

: I am trying to install RedHat 5.2 on a system I inherited. It is a (gasp!)
: Packard Bell Model 3960CD; a P60 with 40MB RAM. I have disconnected the
: proprietary CDROM, and hooked up a spare IDE (Panasonic 24x, I don't have the
: model number here). They are both on the PCI IDE port: the 4.3GB HD as master,
: the CD as slave.
: [I should add that I also upgraded the 400MB HD to the 4.3GB].

: The kernel loads fine w/ only the HD, but once the CD is attached
: to the chain,
: the crash occurs. I have also tried a different CDROM (Creative 32x), but it
: still crashes. Unfortunately, the other IDE connector is so badly placed, that
: it and the floppy connector cannot both be used at the same time; so I can't
: test if the "PCI IDE" connector is bad.

: Anyway, here's the guts of the problem -- I hope there's a guru out there who
: can help me with this. The dump goes like this:

: ide0: buggy cmd640b interface on PCI(type 2) config=0x3e
: ide1: not serialized, secondary interface not responding
: cmd640: drive 0 timings/prefetch(on) preserved, clocks=2/3/3
: cmd640: drive 1 timings/prefetch(on) preserved, clocks=4/16/17
: divide error: 0000

: CPU: 0
: EIP: 0010:[<0016f2d5>]
: EFLAGS: 0010246

: <dump of the registers>

: Code: f7 74 24 0c 89 c1 66 89 4b 20 8b 7e 78 80 4b 0c 40 0f b6 43


: I am checking w/ PBell, to see if there is a BIOS upgrade I can get to see if
: that will help, but I am not confident that they offer much support
: (especially for a relatively old box like this P60).

-- 
Les Barstow                        |  Apple ][ Forever!
[EMAIL PROTECTED]  |
                                   |  "How may I be honest with you today?"
Disclaimer:  I didn't do it!       |            -- Tuvoc

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

From: [EMAIL PROTECTED]
Crossposted-To: alt.society.underwear,comp.sys.mac.misc,comp.sys.amiga.hardware
Subject: Re: WHY AM I BEING BLAMED?
Date: Tue, 02 Mar 1999 19:12:48 GMT

In article <[EMAIL PROTECTED]>,
  Julian Robert Yon <[EMAIL PROTECTED]> wrote:
> This is going too far. Will you French please stop making me a
> scapegoat. I am not responsible for the original postings, and my only
> crime seems to be contributing to a long running discussion, which just
> happens to have been off-topic.


If you don't want to be "blamed" for contributing to a thread that was no
place in the newsgroup where it was posted, DON'T REPLY to it.

Gary Rice

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

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

Subject: Re: waiting for milliseconds?
From: [EMAIL PROTECTED] (Adam P. Jenkins)
Date: 02 Mar 1999 14:46:33 -0500

"Thijs Cobben" <[EMAIL PROTECTED]> writes:
> Am i blundering here, or can you just use sleep(0.001); ? Should
> work fine...

Blundering.  sleep takes an unsigned int argument. See man 3 sleep.
Use usleep to get greater resolution than a second.

-- 
Adam P. Jenkins 
[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.protocols.smb
Subject: UNIX Kernel MYSTIC/GURU WANTED!!! - Job opening
Date: Tue, 02 Mar 1999 20:25:09 -0800


==============E733FD3339A01AC371ACCAF1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

MYSTIC:  Remote from or beyond human comprehension; baffling human
understanding; unkowable; obscure; mysterious

GURU:  A mentor in spiritual and philosophical topics; a spiritual
parent or teacher.

Does that describe you???  If it does, I am looking for you.  I need to
hire a UNIX Kernel GURU/MYSTIC as a Chief Engineer.  You will chart the
course of product development and work directly with the CTO and R & D.

This is an absolute INCREDIBLE job in Sunnyvale, CA in the heart of the
Silicon Valley... where it ALL happens.  Or so we who live and work here
think!!!

Everyone has to live in their own dillusion.

Great start-up company and we will give you lots of money, lots of stock
and demand lots of hours.  Need to know anything else???  Okay, so in
all seriousness, I am really looking for the right candidate to fill
this job and offer a fun environment to work in.

H

--
Herb Alston
[EMAIL PROTECTED]
415.285-8110
415.641-1515Fax


==============E733FD3339A01AC371ACCAF1
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<b><font face="Arial Black"><font size=+2>MYSTIC</font></font></b>:&nbsp;
Remote from or beyond human comprehension; baffling human understanding;
unkowable; obscure; mysterious
<p><b><font face="Arial Black"><font size=+2>GURU</font></font></b>:&nbsp;
A mentor in spiritual and philosophical topics; a spiritual parent or teacher.
<p>Does that describe you???&nbsp; If it does, I am looking for you.&nbsp;
I need to hire a UNIX Kernel GURU/MYSTIC as a Chief Engineer.&nbsp; You
will chart the course of product development and work directly with the
CTO and R &amp; D.
<p>This is an absolute INCREDIBLE job in Sunnyvale, CA in the heart of
the Silicon Valley... where it ALL happens.&nbsp; Or so we who live and
work here think!!!
<p>Everyone has to live in their own dillusion.
<p>Great start-up company and we will give you lots of money, lots of stock
and demand lots of hours.&nbsp; Need to know anything else???&nbsp; Okay,
so in all seriousness, I am really looking for the right candidate to fill
this job and offer a fun environment to work in.
<p>H
<p>--
<br>Herb Alston
<br>[EMAIL PROTECTED]
<br>415.285-8110
<br>415.641-1515Fax
<br>&nbsp;</html>

==============E733FD3339A01AC371ACCAF1==



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

From: Mark Riehl <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Any Insure++ Users?
Date: Tue, 02 Mar 1999 15:42:21 -0500

Guys,

We're looking at purchasing a copy of Insure++ for Linux.  It's pretty
expensive ($2900 per user), we can't get an evaluation copy, and the
only source of info is the Parasoft web page.  

So I'd like to hear from some people who have actually used it.  Any
good or bad experiences?  

Anyone have any alternatives - either commercial or freeware?

Please CC any replies to me.

Thanks,
Mark
[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Rob Komar)
Subject: Re: SMP Support
Date: 3 Mar 1999 06:15:50 GMT

Michael Hirsch ([EMAIL PROTECTED]) wrote:
: 
: Okay, here's what I got.  My box is a dual PII 350 with 128M of RAM,
: an ultra II SCSI can and a Viking II HD.  So these are fairly fast
: CPUs with a fairly fast disk.
: 
: I ran the first make twice to get the source into the cache.  I ran
: 'make clean' between before each compile (though as you can see, that
: make only 7 seconds difference).  As you can see, -j2 was
: slower than -j4 but only by 10 seconds.  -j6 was 3 seconds slower than
: -j4 which hardly seems significant.  As you can see, CPU usage varied
: from 178% to 190% (I'm ignoring the 170% when the cache wasn't full).

Most people probably don't run a kernel compile more than once in a row, 
so the sources wouldn't normally be cached in memory.  If they weren't,
then I would expect a bigger difference going from -j2 to say -j4 
(although that may only be true if compile times are comparable to
disk access times for each file).  Would you be interested in repeating
your measurements without cached source files?  Enquiring minds want
to know.

Cheers,
Rob Komar

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

From: ZandiNi <[EMAIL PROTECTED]>
Subject: EXT2_UNRM_FL
Date: Wed, 03 Mar 1999 06:07:00 GMT

Hello,
I was looking through the ext2 source code, and I found EXE2_UNRM_FL
which will make the file with this flag undeletable (or recoverable).
Is this thing ever implemented ? or if this flag works,  where is the
code for it? Thanx in advance.

In case you were wondering, it is defined in dir
'linux/linclude/linux/ext2_fs.h'
ext2_fs.h:187:#define   EXT2_UNRM_FL                    0x00000002

but I couldn't fine that anywhere else..




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

From: [EMAIL PROTECTED] (Rainer Krienke)
Crossposted-To: comp.os.linux.misc
Subject: Kernel NFS Problem; device busy
Date: 1 Mar 1999 12:14:46 GMT

Hello,

I am running linux with kernel 2.2.2 with knfsd-981204 
(using kernel based NFS).
The problem is that if I export a filesystem like /cdrom to another machine
and this machine NFS mounts uses and umounts this filesystem I
cannot umount /cdrom on locally my machine afterwards. Although there is no NFS
mount on /cdrom and no other process that accesses /cdrom I cannot
umount it. The kernel always says that this mountpoint is busy.

This problem does not occur, if I use /cdrom only locally (do not NFS
mount it from another machine). In this case I can always mount and
umount it later. 

A bug in the kernel NFS code? Any idea ?

Thanks Rainer

-- 
=====================================================================
Rainer Krienke                     [EMAIL PROTECTED]
Universitaet Koblenz,              http://www.uni-koblenz.de/~krienke
Rechenzentrum,                     Voice: +49 261 287 - 1312
Rheinau 1, 56075 Koblenz, Germany  Fax:   +49 261 287 - 1355
=====================================================================

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

From: [EMAIL PROTECTED] (Alex Butcher)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Request for kernel compile w/ cmd640 support
Date: Tue, 02 Mar 1999 22:22:37 GMT
Reply-To: [EMAIL PROTECTED]

On Fri, 26 Feb 1999 12:39:35 -0600, Patrick Mueller <[EMAIL PROTECTED]>
  wrote:
>The problem is that I don't currently have Linux installed. I can't install
>because the RedHat CD *is* a CD and therefore I can't have both hooked up at
>once.
>
>I have a favor to ask -- could someone compile a small kernel *with* CMD640
>support included? I would greatly appreciate it! If could do me that and email
>it to me at <[EMAIL PROTECTED]>, that would be great.. I can then replace the
>kernel on the RedHat boot disk. Tell me if that won't work: can I boot another
>Linux boot floppy, mount the RedHat floppy, rm the included kernel and cp the
>new kernel? 

Why not disable you secondary controller and place the CD-Rom drive on the
primary controller with the disc you wish to install Linux onto?

That's what I had to do when I had a CMD640.

Best Regards,
Alex.
-- 
Alex Butcher   Using Linux since '95 - because windows are too easy to break.
Berkshire, UK  URLBLAST:slashdot.org:www.freshmeat.net:www.dejanews.com:
               lwn.net:www.tomshardware.com:www.stardiv.de:www.gimp.org:

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

From: "Dan Miller" <[EMAIL PROTECTED]>
Subject: XFree and fvwm2.2 help??
Date: Tue, 2 Mar 1999 14:57:55 -0800

I'm sorry if this is the wrong group for this, but there don't seem to be
any active
XWindows or XFree newsgroups anymore...

I'm using RedHat 5.2, and tried to upgrade FVWM to version 2.2.  The install
seemed
to go okay, but when I run X now, I still get the old version of FVWM, and
the
Task Bar has disappeared from the bottom.  I downloaded the new version of
fvwmTaskBar and installed it, but nothing seems to make it appear anymore
(including selecting TaskBar on the start menu).

Is there some trick to get the new version installed, and to get the Task
Bar
working again??




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


** 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.development.system) 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-Development-System Digest
******************************

Reply via email to