Linux-Development-Sys Digest #697, Volume #6 Mon, 10 May 99 14:14:17 EDT
Contents:
Re: Linux disk defragmenter (Tim Smith)
Understanding Linux development (Jim Bailey)
Sendmail aliases question. (Nico Zigouras)
Aliases question in sendmail. (Nico Zigouras)
Re: kernel panic error (Zoran Cutura)
-= Environment variables using bash =- ("JB")
Re: Reliable (!) nic for 2.2 kernel? ("David Murray")
Re: Reliable (!) nic for 2.2 kernel? (Etienne Lorrain)
what means cli() and sti()? (lckun)
NFS-Server setup ("Alfred Glass")
SQUID'S ACCESS.LOG AND URL FORMAT ("JB")
Re: Linux disk defragmenter (The Ghost In The Machine)
Scancodes, please help! (Eric Plaster)
Re: why top give false results? (Etienne Lorrain)
Re: why top give false results? ("Gerry S. Hayes")
cs4232-based sound cards ([EMAIL PROTECTED])
Re: 3D Graphics Speed in Linux (Aurel Balmosan)
Re: Reliable (!) nic for 2.2 kernel? (Johan Kullstam)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Tim Smith)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Linux disk defragmenter
Date: 10 May 1999 03:48:59 -0700
Mark Hahn <[EMAIL PROTECTED]> wrote:
>in short, sorting linear block addresses makes sense and works,
>since seeks are monotonic in linear address. this ignores bad-block
Seek time is monotonic in linear address, but access time is not. On modern
disks, rotational latency is much larger than seek latency for typical
requests.
--Tim Smith
------------------------------
From: Jim Bailey <[EMAIL PROTECTED]>
Subject: Understanding Linux development
Date: Wed, 05 May 1999 16:19:40 -0400
A word of warning - I am a Linux newbie.
I'm not however, new to development. I've been programming 20 years but
never on Unix/Linux systems (VMS, much Windows, other various). I'm
trying to move to the Linux world but hitting some obstacles. The main
one seems to be in understanding the various C compilers and reqd libs
with which to do development. I installed Caldera 2.2 and set up the
common stuff (PPP, mail, news etc.). I immediately opened up an editor
typed in the old "Hello world", and built it with gcc in an Xterm, and
it worked. Wow - maybe this won't be so bad after all.
Then I decide to try my hand at KDE devlopment - download the samples
from KDE, type them in, and per the sample, try G++ and my system knows
of no such thing. So for the last week I've tried to find the answers
to things like:
1. What is egcs ? Is g++ hidden in there somewhere ? Must not be because
the Kpackage tool says that's already installed. There's another
package called egcs-c++ that won't install because it has a dependency
on '==2.9' - yes thats the error.
2. The Kde sample references some includes that I can't find anywhere
on my system - where (what RPM) are the Kde includes ?
3. I really can't tell if I have all the Qt stuff I need either.
I've tried the Troll site, KDE, the Linux programming books I've bought,
other newgroups etc. but can't figure out what compilers need what
librarys for what window manager/desktop environments. Those sites
weren't really meant for the 'new' developer. Antoher person suggested I
look at Kdevelop - I will check it out but I'd feel much better if I
understood some of this.
-- jim bailey
------------------------------
From: Nico Zigouras <[EMAIL PROTECTED]>
Subject: Sendmail aliases question.
Date: Mon, 10 May 1999 00:57:03 -0400
Hi all:
I have a question that is more relevant to sendmail, but since I am
running it on my Linux box, I will ask it here. I have an alias for all
the users on my system. As the admin, I want to send to all these
aliases. No problem. But I want to prevent regular users from being
able to respond to all or send a new message to all. Essentially I just
want a to all email only to be allowed as sent from the admin box.
Thanks in advance for your help, please at least respond to my email
address.
------------------------------
From: Nico Zigouras <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Aliases question in sendmail.
Date: Mon, 10 May 1999 01:03:07 -0400
Hi all:
I have a question that is more relevant to sendmail, but since I am
running it on my Linux
box, I will ask it here. I have an alias for all the users on my system.
As the admin, I
want to send to all these aliases. No problem. But I want to prevent
regular users from
being able to respond to all or send a new message to all. Essentially I
just want a to all
email only to be allowed as sent from the admin box.
Thanks in advance for your help, please at least respond to my email
address.
- Nico.
------------------------------
From: Zoran Cutura <[EMAIL PROTECTED]>
Subject: Re: kernel panic error
Date: Mon, 10 May 1999 16:00:21 +0200
RoadRunner wrote:
>
> Here's the error message I am getting kernel panic: VSF: unable to mount
> root fs on 03:02. I boot up my system with a floppy disk. What can I do to
> correct this problem
what is the root-fs assigned to on the floppy? Is it trying to mount /
from harddisk or from floppy to? Are you just installing or are you
trying to boot a allready installed distribution?
At least this message indicates that the root-fs is not found in the
place configured in the kernel. (one can check the kernel for its
root-fs
by using rdev, you need a running system to do so!)
Bye
Zoran
--
LISP is worth learning for the profound enlightenment experience you
will have when you finally get it; that experience will make you a
better programmer for the rest of your days. Eric S. Raymond
========================================================================
_/_/_/_/_/ _/_/_/_/ from: Zoran Cutura,
_/ _/ _/ IMH-Innovative Motorentechnik Prof. Huber,
_/ _/ post: DaimlerChrysler AG, EP/VES, T900,
_/ _/ 70546 Stuttgart, Germany,
_/ _/ phone: +49711 17-42353
_/ _/ _/ mobil: +49171 4488407
_/_/_/_/_/ _/_/_/_/ email: [EMAIL PROTECTED]
PGP fingerprint: F0 C3 30 F4 B3 7E 22 36 1C 51 B7 60 A9 BB 23 BE
------------------------------
From: "JB" <[EMAIL PROTECTED]>
Subject: -= Environment variables using bash =-
Date: Mon, 10 May 1999 13:55:13 +0100
Hi,
When I set an environment variable within bash, it doesn't remain.
How can I do ?
Dave
------------------------------
From: "David Murray" <[EMAIL PROTECTED]>
Subject: Re: Reliable (!) nic for 2.2 kernel?
Crossposted-To: comp.os.linux.networking
Date: Mon, 10 May 1999 13:42:41 GMT
Me too.. I have a tulip card and I think it is very, very nice.. I think
this person's problem is not the card itself but something else in the
system.
> That's weird. One of the servers I administer has a tulip card and the
> server has been up now for 178 days without any problems. Here's some
> numbers:
>
> RX packets:104749300 errors:0 dropped:13 overruns:0
> TX packets:71530160 errors:4 dropped:0 overruns:4
>
------------------------------
From: Etienne Lorrain <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: Reliable (!) nic for 2.2 kernel?
Date: Mon, 10 May 1999 16:58:20 +0100
Reply-To: [EMAIL PROTECTED]
bryan wrote:
> my tulip card is totally unreliable. I can bring it down with an ftp
> xfer (local lan) at 10 or 100, in a minute or less. network hangs and
> will NOT be reset by software.
I am probably completely wrong, but would your test work
with a 2.2 kernel compiled as UP, not SMP - or even better
SMP without support of the improved IRQ hardware management ?
probably completely wrong,
Etienne.
--
My hard drive is currently failling, I can still write - I just
hope to have time to press the "send" button...
------------------------------
From: lckun <[EMAIL PROTECTED]>
Subject: what means cli() and sti()?
Date: Tue, 11 May 1999 00:56:11 +0900
Hello!
What means the functions cli() and sti() in the source sched.c of
kernel?
Please tell me what it means and where can i find the more infomation
for this functions...
Thanks
lckun
------------------------------
From: "Alfred Glass" <[EMAIL PROTECTED]>
Subject: NFS-Server setup
Date: Mon, 10 May 1999 17:37:04 +0200
I want to setup a small RedHat-Linux-System (RH5.1) as NFS-server for
software developement. So I looked into the NFS-HOWTO.
First I have configured TCP/IP. The "ping" works.
Then I wrote the "/etc/exports" - file.
Then I have started the "portmap" daemon. I checked this with "ps aux" .
In the next step I have startet "rpc.mountd". Now I got the following answer
:
Cannot register service: RPC: Unable to send; errno = Network is
unreachable.
What�s the problem ???
Thanks,
Alfred...
------------------------------
From: "JB" <[EMAIL PROTECTED]>
Subject: SQUID'S ACCESS.LOG AND URL FORMAT
Date: Mon, 10 May 1999 14:32:20 +0100
Hi out there !
Is there a way to store the parameters used by a CGI script with the
script's URL, in Squid's access.log file ?
Thanx !
Morce
------------------------------
From: [EMAIL PROTECTED] (The Ghost In The Machine)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Linux disk defragmenter
Date: Mon, 10 May 1999 16:05:04 GMT
On 10 May 1999 03:48:59 -0700, Tim Smith <[EMAIL PROTECTED]> wrote:
>Mark Hahn <[EMAIL PROTECTED]> wrote:
>>in short, sorting linear block addresses makes sense and works,
>>since seeks are monotonic in linear address. this ignores bad-block
>
>Seek time is monotonic in linear address, but access time is not. On modern
>disks, rotational latency is much larger than seek latency for typical
>requests.
>
>--Tim Smith
It gets even goofier when one realizes that a lot of disks
are variable-geometry, meaning that there are a different
number of sectors depending on which cylinder is being
discussed. How does one optimize disk access for such
a beast without detailed knowledge of where each
sector is?
Add to that:
* the "faking out" of BIOS by reporting a huge number of heads
and sectors for each cylinder, and reducing the number of
cylinders reported; this helps to get around the 1024-cylinder
limitation, apparently, which was a lot more problematical
several years ago than it is now
* the SCSI bad block remapping on some drives, which means block
A might not be next to block A+1 (hopefully it's on the same
cylinder, but I can't say I know the specifics, and, in any
event, it's more or less left up to the disk electronics);
I suspect this option is either transparent to the user
or infrequently used, but it is a potential problem for SCSI
* the interleave factor of the drive; nowadays it's almost always
1, but in days of yore the interface wasn't fast enough to
read successive blocks, which means the disk had to be
formatted so that at least one block is skipped prior to the
reading of the next block (ah, the "good old days" :-) )
(it's even possible to be different for different cylinders!
Who knows what evil lurks in the servo control surface... :-) )
* the entire notion of "optimized access" may differ,
depending on what's running what when and where -- and what
DLLs are required. One hopes they are cached, to be sure,
on subsequent accesses -- Linux does this reasonably well
* the speed versus optimization tradeoff; one could implement a
defragger that simply plays "swap the blocks" after precomputing
what it considers the optimum file and directory placement,
but it would be rather slow! (And then there's the requirement
that volume damage be minimized, requiring an occasional block
update away from the actual block swap -- i.e., a dir entry might
have to change, or the FAT or inode table(s) updated),
and one has a pretty good inkling that defrag is a complicated
concept. Microsoft's attempts at defrag do not appear to be
the absolute best, but they do help somewhat; of course,
a well-designed disk format (and block allocation and deallocation
routines within the kernel/file I/O routines) should not require
defrag in the first place, unless one has a file that is (a) very
large, and (b) continually changing size -- maybe like
/var/log/messages? Hmm... :-)
(I do wonder if NT and Diskeeper Lite (the defrag we use at work)
are trying to do different things; NT may be trying to keep things
on the same cylinder, or scatter things rather evenly across the
disk; Diskeeper Lite wants to try to keep the files defragmented
near the top of the disk. This means that Diskeeper Lite has
to be run rather often. And then there's Win95's FAT defragmenter.
I don't precisely know what it does, but it does seem to like to
bubble files on occasion, and takes a highly variable time to
defragment a drive.)
----
[EMAIL PROTECTED] -- and yes, I am a little interested in this subject; I've
watched Win95's defragger enough to wonder what the
best way to organize a disk is... :-)
------------------------------
From: Eric Plaster <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,linux.dev.x11
Subject: Scancodes, please help!
Date: Mon, 10 May 1999 11:49:35 -0500
==============848D365F53350070EFAEBD23
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I didn't get much response the last time I posted and I'm starting to
get a little desperate
We are doing some work on hardware that will generate scancodes like a
keyboard (i.e. something like 0xE025). To use as a development tool,
I'm using a tronix keyboard (model number: scorpius 98N plus) which has
special keys labeled WWW, BACK, SRCH, etc... When I boot up the linux
box and hit a key it will generate an error that will tell me the
scancode. I can also get the scancode by using "showkey -s" before
going into xwindows.
The problem is I loose the scancodes in X. It's almost as though X
swallows scancodes that it doesn't recognize. Using setkeycodes works
well under linux but doesn't follow through into X.
Is XKEYBOARD the answer? I've downloaded the source to XFree86 and took
a look at the code for xkb, but I can't make heads or tails of it (it
would be nice to see at least one comment!). And I searched the net for
days on any information on the xkb. Any ideas?
And yes I tried Xev and I get no events when I press the key.
--
Eric Plaster Image Manipulation Systems
Software Engineer (612)753-5602 x117
[EMAIL PROTECTED] www.imageman.com
==============848D365F53350070EFAEBD23
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BR>I didn't get much response the last time I posted and I'm starting
to get a little desperate
<BR>
<BR>We are doing some work on hardware that will generate scancodes like
a keyboard (i.e. something like 0xE025). To use as a development
tool, I'm using a tronix keyboard (model number: scorpius 98N plus) which
has special keys labeled WWW, BACK, SRCH, etc... When I boot up the
linux box and hit a key it will generate an error that will tell me the
scancode. I can also get the scancode by using "showkey -s" before
going into xwindows.
<P>The problem is I loose the scancodes in X. It's almost as though
X swallows scancodes that it doesn't recognize. Using setkeycodes
works well under linux but doesn't follow through into X.
<P>Is XKEYBOARD the answer? I've downloaded the source to XFree86
and took a look at the code for xkb, but I can't make heads or tails of
it (it would be nice to see at least one comment!). And I searched
the net for days on any information on the xkb. Any ideas?
<P>And yes I tried Xev and I get no events when I press the key.
<PRE>--
Eric
Plaster
Image Manipulation Systems
Software
Engineer
(612)753-5602 x117
[EMAIL PROTECTED]
www.imageman.com</PRE>
</HTML>
==============848D365F53350070EFAEBD23==
------------------------------
From: Etienne Lorrain <[EMAIL PROTECTED]>
Subject: Re: why top give false results?
Date: Mon, 10 May 1999 15:35:30 +0100
Reply-To: [EMAIL PROTECTED]
"Jacek Pop�awski" wrote:
> Why 'top' shows false results?
Because it is broken, it counts the CPU time used by asking
each process how much time they have used: it does not work
for very short live processes. The right way is to ask the kernel
its local statistics (in /proc) as xosview does.
One year ago, the maintainer of the procps package ask for
someone to recode this part because he had no time to do so,
and he was not using it neither - nobody answered the call. If
you have few month (code + test) to give for free (GPL),
you will probably still be welcome...
> And why if 50% cpu resources is free
> - sometime when I will do a lot with graphics or even text (!) - music
> breaks for a moment?
Maybe a process living 0.05 second has taken 100 % CPU...
Maybe CPU is not a problem, it was just waiting for the disk
to finish its task... if one process waits data from a disk, its CPU
use is exactly 0%.
Music will break quickly if the "request for next data block" is
not served in time, i.e. before the DMA has finished its transfert
and card buffers are completely empty. Resynchronisation can
take quite long depending on the sound hardware.
> What is good way to know how much cpu is in use at the moment?
Try xosview or better datas in /proc
> PS. load avg is bad too :-)
It is another information: the average of the number of process which
are waiting at clock ticks, when the kernel selects the right process to
run. For instance, if load average is below 1, you do not need to buy
a multiprocessor board, buy a faster processor, or even try to select
another sckeduling method as kernel 2.x enable you to do.
#include <std_disclaimer.h>
Etienne.
------------------------------
From: "Gerry S. Hayes" <[EMAIL PROTECTED]>
Subject: Re: why top give false results?
Date: Mon, 10 May 1999 10:52:26 -0400
"Jacek Pop�awski" wrote:
>
> And why if 50% cpu resources is free - sometime when I will do a lot
> with graphics or even text (!) - music breaks for a moment?
That's a latency issue. You can help it by setting the mp3 player to
a higher priority; niceing it to -20 is moderately helpful, but to
really fix it you'll need to set it to real-time priority.
Alternatively, you could increase the size of the RAM buffer that
mpg123 is using ("-b 1024" or bigger, if I remember my mpg123
options correctly)
[Aside: A long time ago I set up mp3 playing on a 486/33; it was
fairly nasty but worked. We basically decompressed the mp3 into an
lzo-compressed WAV file and played that; the next mp3 would decompress
while the previous one was playing, with a bit of a pause between songs]
For real-time privs:
sched_setscheduler is the call to look at. All of the 2.0 and 2.2
kernels support it just fine. Either hack the mpg123 source to set
real-time privs, use one of the rtnice programs floating around out
there, or write your own (it's about 10 lines of C at most, e-mail me
if you need help).
All of these solutions require root priviledges. The most transparent
solution is to put { sched_setscheduler(....); setuid(getuid); } at
the start of mpg123's main() and make it setuid root, but that means
that anyone who has execute priviledges on mpg123 can lock up the
system if they are malicious. Caveat admin.
--Sumner
------------------------------
From: [EMAIL PROTECTED]
Subject: cs4232-based sound cards
Date: Mon, 10 May 1999 11:49:21 -0500
has anyone been able to get theirs to work in kernel 2.2.x?
i had mine working in 2.0.x just fine but now when i use the same
settings it works for some time, sometimes breaking shortly after the
module is loaded, other times running fine until a warm reboot.
in any case it doesn't work for me again until a cold reboot (even when
i warm reboot into windows, it is not functional.)
i'm guessing this is some sort of PnP problem but i'm not familiar with
what i need to do to fix it.
please respond by mail to [EMAIL PROTECTED] if possible.
------------------------------
From: Aurel Balmosan <[EMAIL PROTECTED]>
Subject: Re: 3D Graphics Speed in Linux
Date: Mon, 10 May 1999 13:51:11 GMT
Mike Harrison <[EMAIL PROTECTED]> wrote:
> I am no hardware genius, but I have been using Linux for
> developping software engineering applications for about 3 years. Best
> damn development platform out there I think. I've converted my whole
> research group in fact. Well, I have been taking a ribbing from coworkers
> about graphics(specifically gaming with quake II). Why is it that Win9x
> is so much faster than Linux on the exact same hardware? Is the kernel
> getting in the way? Bad drivers? Can someone explain this to me? I can
> see why under X it would be slow with that data pipe set up, but why in
> console? What could be done to speed up real time 3D rendering.
> michael harrison
Well XFree86-4.0 will support 3D hardware via a X-extension. As a frontend
OpenGL will be used. (In general there is no reason why X should be concidered
slower then i.e. Windows. A command/data pipe is not slower in general then
sync. library calles from different tasks.)
Bye,
Aurel Balmosan.
--
================================================================
Aurel Balmosan | [EMAIL PROTECTED], [EMAIL PROTECTED]
http://gaia.owl.de/~aurel/ |
================================================================
------------------------------
From: Johan Kullstam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: Reliable (!) nic for 2.2 kernel?
Date: 10 May 1999 13:12:15 -0400
bryan <[EMAIL PROTECTED]> writes:
> its totally repeatable. I wonder if its my SMP that is throwing a
> monkey wrench into the works? is anyone happy with their tulip in
> 2.2.7 AND smp??
i am happy. i have a dec tulip 21140 card in a quad ppro box and it
seems fine. i use tulip driver v89h (what comes with linux 2.[12].x
kernels) and have tried v90 as well. i have run big ftp jobs (100's
of Mb) to move data back and forth between it and my other machine. i
have a 100Mbps setup through a little 4 port hub. i've got two more
dec tulips in my uniprocessor box. one 10Mbps 21041 and one 21140.
i can't recall the minor rev letter/numbers at this time.
what tests would you have me perform to inflict maximum punishment
upon these ethercard?
--
johan kullstam
------------------------------
** 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
******************************