Linux-Development-Sys Digest #719, Volume #6 Mon, 17 May 99 07:13:46 EDT
Contents:
Re: A Real Puzzler, (try your hand) ("Ian")
Re: Looking for code (Bob Skinner)
Re: How to make linux boot/shutdown rapidly (Michael Hirsch)
Re: How to make linux boot/shutdown rapidly (Michael Hirsch)
Re: programming with MMX instructions (Philipp Thomas)
Re: A Real Puzzler, (try your hand) ("Ian")
Re: Microsecond resolution timer? (Peter Samuelson)
Re: A Real Puzzler, (try your hand) (Albert Schueller)
Re: Porting Kernel Module: 2.0.x -> 2.2.x (Jan Willamowius)
Re: Microsecond resolution timer? ("dave madden")
Re: programming with MMX instructions (Arun Sharma)
Re: A Real Puzzler, (try your hand) (Jeffrey L Straszheim)
Re: Linux disk defragmenter (Stefaan A Eeckels)
mmap() and do_mmap() ("Vladimir G. Stanishev")
Send AT commands to a modem during a PPP connection (FX)
Re: Looking for code (Alex Rhomberg)
Token-ring cards (Fulajtar Pal)
Re: Token-ring cards (Owen Brotherwood)
Re: Searching for Kernel Hacker's Guide (Michael Powe)
----------------------------------------------------------------------------
From: "Ian" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.setup,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.setup
Subject: Re: A Real Puzzler, (try your hand)
Date: Mon, 17 May 1999 10:33:45 +1200
You haven't got a screen saver up or something stupid like that, have you?
They take a lot of resources. Just a random guess. I have seen this on NT
servers quite a bit.
Ian
Albert Schueller wrote in message ...
>Please read on, you've probably never run into this before!
>
>As you may have noted from the subject heading I'm experiencing a
>very strange problem with my newly upgraded Redhat 6.0 box. It's a Pentium
>133 on an ethernet, kernel version 2.2.9.
>
>The problem is that when I connect to it from home (over a 14.4 modem, ppp
>connection) from either windows or linux (rh6.0), everything runs slowly
>and by slowly, I mean at the processing level. For instance, I did the
>following timings of a clean mutt source tree compilation:
>
<snip>
------------------------------
From: Bob Skinner <[EMAIL PROTECTED]>
Subject: Re: Looking for code
Date: Sun, 16 May 1999 19:31:09 -0400
Shockwave wrote:
>
> Hi,
>
> I'm interested at looking at the code for the finger, who and rwho command.
> Could someone please tell me where I can find them or could someone post the
> code as a reply to this message.
>
> Thank you
Assuming that you're using Linux, and that installed all the source, it
should be under /usr/src in a directory named something like
"linux-<your version number>"
Good luck
Bob Skinner
------------------------------
From: Michael Hirsch <[EMAIL PROTECTED]>
Subject: Re: How to make linux boot/shutdown rapidly
Date: 16 May 1999 20:48:57 -0400
"Stefan Monnier <[EMAIL PROTECTED]>"
<[EMAIL PROTECTED]> writes:
> >>>>> "Konrad" == Konrad Mieredorff <[EMAIL PROTECTED]> writes:
> > I'm wondering if it also saves the hardware state and/or reinitializes
> > the hardware befor loading the image.
>
> I'd expect that most of the boot process works just as before pretty
> much until the hand is normally passed to init. Of course, I have no clue.
The boot process is the same until swap is turned on, at which point
it sees the saved image and restores it.
--
Michael D. Hirsch Work: (404) 727-7940
Emory University, Atlanta, GA 30322 FAX: (404) 727-5611
email: [EMAIL PROTECTED] http://www.mathcs.emory.edu/~hirsch/
Public key for encrypted mail available upon request (or finger
[EMAIL PROTECTED]).
------------------------------
From: Michael Hirsch <[EMAIL PROTECTED]>
Subject: Re: How to make linux boot/shutdown rapidly
Date: 16 May 1999 20:47:49 -0400
Konrad Mieredorff <[EMAIL PROTECTED]> writes:
> Michael Hirsch wrote:
> >
> > Michael Hirsch <[EMAIL PROTECTED]> writes:
> >
> > > I was thinking that one could write a kernel module that would imitate
> > > my ThinkPad. When loaded it would immediately write the contents of
> > > memory to a disk file, then shutdown the CPU. At boot time, you'd
> > > need a new boot loader that would load the file back into memory, then
> > > return execution to the appropriate place. Thus, shutdown would only
> > > take as long as it takes to write RAM to disk (and if you are clever
> > > you would only have to write the buffers that aren't just images of
> > > one on the disk). Start up would take as long as it takes to read
> > > them off disk.
> >
> > Sorry to followup to my own post, but I've since found a kernel patch
> > that seems to do almost exactly what I was talking about:
> >
> > http://falcon.sch.bme.hu/~seasons/linux/swsusp.html
> >
> > Here's a quote from the homepage:
> >
> > Enable the possibilty of suspendig machine. It doesn't need APM. You
> > may suspend your machine by either pressing Sysrq-d or with 'swsusp'
> > or 'shutdown -z (patch for sysvinit needed). It creates an image which
> > is saved in your active swaps. By the next booting the kernel detects
> > the saved image, restores the memory from it and then it continues to
> > run as before you've suspended. If you don't want the previous state
> > to continue use the 'noresume' kernel option.
> >
> > I gotta try this.
>
> I'm wondering if it also saves the hardware state and/or reinitializes
> the hardware befor loading the image.
Apparently not. It is on the todo list and currently supports only
the serial ports and the RTC. In my experience it does not succeed in
restoring the X server.
--
Michael D. Hirsch Work: (404) 727-7940
Emory University, Atlanta, GA 30322 FAX: (404) 727-5611
email: [EMAIL PROTECTED] http://www.mathcs.emory.edu/~hirsch/
Public key for encrypted mail available upon request (or finger
[EMAIL PROTECTED]).
------------------------------
From: [EMAIL PROTECTED] (Philipp Thomas)
Subject: Re: programming with MMX instructions
Date: Mon, 17 May 1999 02:15:23 GMT
On Fri, 30 Apr 1999 16:04:33 GMT, Arun Sharma <[EMAIL PROTECTED]>
wrote:
>But a recent version of Linux 2.2 with the Pentium III patch does have
>that support.
Which still won't give you Support from as or gdb though. So for assembly
you'd have to issue the opcodes directly instead of using the mnemonics.
Philipp
--
You have moved your mouse. Windows must be rebooted for the
changes to take effect.
------------------------------
From: "Ian" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.setup,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.setup
Subject: Re: A Real Puzzler, (try your hand)
Date: Mon, 17 May 1999 16:11:56 +1200
Jeffrey L Straszheim wrote in message <[EMAIL PROTECTED]>...
>Ian wrote:
>
>> You haven't got a screen saver up or something stupid like that, have
you?
>
>> They take a lot of resources. Just a random guess. I have seen this on NT
>> servers quite a bit.
>
>And, of course, it's always so nice to present that big bill for
>going out and shutting down the stupid 3d screen saver :)
>
>Which, furthermore, raises the question: why does MICROS~1 even
>ship the OPENGL screensavers with NT server?
I beleive you answered your own question.
Ian
Programmer, Network Engineer and all round good-guy Consultant.
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: Microsecond resolution timer?
Date: 16 May 1999 22:11:46 -0500
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Rob <[EMAIL PROTECTED]>]
> I'm writing a library designed to talk to some (non-PC) hardware that
> I have via the parallel port. Some of the timing is critical however.
> What I really need is a microsecond resolution timer, so I can get
> pauses of 20us.
For that sort of RT you need kernel support. Write your driver partly
or completely in kernel space.
You might look into the kernel option CONFIG_RTC which provides a
hi-res timer /dev/rtc. Unfortunately, according to the docs, the RTC
will only go to 8kHz, not what you need. Those docs may be a bit
misleading, though; I seem to remember someone reporting getting higher
frequencies....
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: [EMAIL PROTECTED] (Albert Schueller)
Crossposted-To:
comp.os.linux.setup,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.setup
Subject: Re: A Real Puzzler, (try your hand)
Date: Mon, 17 May 1999 04:25:09 GMT
Reply-To: [EMAIL PROTECTED]
On Sun, 16 May 1999 22:06:23 GMT, Dave Platt <[EMAIL PROTECTED]> wrote:
>I'd guess that the machine which is suffering from the inconsistent
>results, has APM power-management features enabled. The CMOS/BIOS
>settings are probably set to put the system into a lower-power mode of
>operation after some number of minutes of inactivity. The APM
>low-power mode in question is probably reducing the CPU clock speed
>(either by actually slowing down the clock, or by running the clock in
>short bursts and stopping it entirely in between bursts).
That's it! Thank you. Had me going there.
Albert
------------------------------
From: [EMAIL PROTECTED] (Jan Willamowius)
Subject: Re: Porting Kernel Module: 2.0.x -> 2.2.x
Date: Mon, 17 May 1999 04:48:32 GMT
Oliver Wahlen <[EMAIL PROTECTED]> writes:
>I would like to use the videoteXt program that is e.g. shipped with SUSE
>6.1, Kernel 2.2.5.
>I had the whole software-/hardware-system working under kernel 2.0.xx.
>But now I upgraded my system and the kernel-module does not compiled
>under kernel 2.2.5.
Richard Gooch has put together a list of things that changed in the kernel
API from 2.0x -> 2.2x. It can be found at
http://www.atnf.csiro.au/~rgooch/linux
--
Jan Willamowius, http://www.willamowius.de/
Microsoft has a year 2000 problem. I'm part of it. I'm running Linux.
------------------------------
From: "dave madden" <[EMAIL PROTECTED]>
Subject: Re: Microsecond resolution timer?
Date: 16 May 1999 22:17:21 -0700
In article <7hmj9u$7qs$[EMAIL PROTECTED]> Rob <[EMAIL PROTECTED]>
writes:
=>I'm writing a library designed to talk to some (non-PC) hardware that
=>I have via the parallel port. Some of the timing is critical however.
=>What I really need is a microsecond resolution timer, so I can get
=>pauses of 20us. I read somewhere that doing something like
=>select(0, 0, 0, 0, *time) can't pause for shorter than 100ms (100000us),
=>which is obviously far too long for my needs. Is there a way to get this
=>sort of timing resolution under Linux?
I think you'll have to write a driver instead of a (user-space)
library. I don't know of any way to sleep for part of a timeslice
(and get the rest of the slice -- of course, you can always sleep for
the rest of the current slice). I believe the only way to do things
20us apart is to put them in kernel-land and spinlock. If you sleep,
you're gone until the scheduler brings you back.
=> And if there is no 'proper' way
=>to do it, will anything break if I access the system timer hardware at
=>0x40-0x5f?
Several parts of the timer are already in use; I don't know the I/O
ports, so I don't know if the channel you're talking about is busy.
Check http://www.tux.org/lkml/timer.txt for information on the latest
kernels.
d.
--
header address is anti-spamified. use caution when replying by
email to <[EMAIL PROTECTED]> because my real address
omits the hostname.
------------------------------
Subject: Re: programming with MMX instructions
From: Arun Sharma <[EMAIL PROTECTED]>
Date: Mon, 17 May 1999 05:45:32 GMT
[EMAIL PROTECTED] (Philipp Thomas) writes:
> On Fri, 30 Apr 1999 16:04:33 GMT, Arun Sharma <[EMAIL PROTECTED]>
> wrote:
>
> >But a recent version of Linux 2.2 with the Pentium III patch does have
> >that support.
>
> Which still won't give you Support from as or gdb though. So for assembly
> you'd have to issue the opcodes directly instead of using the mnemonics.
>
binutils-2.9.1.0.23-1 supports it. For gdb you need some patches
though.
-Arun
------------------------------
From: Jeffrey L Straszheim <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.setup,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.setup
Subject: Re: A Real Puzzler, (try your hand)
Date: Sun, 16 May 1999 23:43:08 -0400
Ian wrote:
> You haven't got a screen saver up or something stupid like that, have you?
> They take a lot of resources. Just a random guess. I have seen this on NT
> servers quite a bit.
And, of course, it's always so nice to present that big bill for
going out and shutting down the stupid 3d screen saver :)
Which, furthermore, raises the question: why does MICROS~1 even
ship the OPENGL screensavers with NT server?
--
--Jeffrey Straszheim
---Systems Engineer, Programmer
----stimuli AT shadow DOT net
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Linux disk defragmenter
Date: 16 May 1999 13:34:56 GMT
In article <7hkmkg$s8p$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (M Sweger) writes:
>
> It's only a 2Gig partition on the hard drive - Drive E: that is set aside
> for the UMSDOS linux filesystem. I only run defrag on this partition.
Then why not convert it to ext2? Running Linux on UMSDOS really
only makes sense if you're trying to find out if Linux is
right for you, and you don't want to repartition your existing
Windows system.
--
Stefaan
--
PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exup�ry
------------------------------
From: "Vladimir G. Stanishev" <[EMAIL PROTECTED]>
Subject: mmap() and do_mmap()
Date: Mon, 17 May 1999 03:35:31 -0400
These two have me rather confused. Does calling mmap invok do_mmap? if
yes how are the parameters translated. if the file parameter to do_mmap
is null, then an empty page of size len is mapped to the process (or so
it says in a book here), but how is do_mmap called, what's teh relation
to mmap?
and on a somewhat unrelated note.
is there a good resource on the web which can help with figuring out
what's part of the kernel and what's part of glibc? is there a rule of
thumb to follow? it can be rather confusing, for instance, isn't the
mmap described in the man page supposed to be defined in the kernel
sources somewhere (where is it????).
Thanx.
Vladimir
------------------------------
From: FX <[EMAIL PROTECTED]>
Subject: Send AT commands to a modem during a PPP connection
Date: Mon, 17 May 1999 10:11:21 +0200
Hello,
I want to know if it's possible with LINUX to send AT commands to a
modem, after PPP
connection establishment ...
I want for example to perform File Transfer over PPP, stop the transfer,
send
AT commands for Diagnostic purposes, and then resume the file transfer
...
Thanks for help.
FX
------------------------------
Date: Mon, 17 May 1999 11:16:45 +0200
From: Alex Rhomberg <[EMAIL PROTECTED]>
Subject: Re: Looking for code
Shockwave wrote:
>
> Hi,
>
> I'm interested at looking at the code for the finger, who and rwho command.
> Could someone please tell me where I can find them or could someone post the
> code as a reply to this message.
forrest:~% rpm -q -f `which finger`
finger-0.10-24
forrest:~% rpm -q -f `which who`
sh-utils-1.16-23
forrest:~% rpm -q -f `which rwho`
rwho-0.10-23
you can get the sources from the src rpms from ftp.redhat.com or from a
mirror:
forrest:~% ls
/alex/ch/cnlab-switch/sunsite/mirror/redhat/current/SRPMS/SRPMS/{finger,sh-utils,rwho}*
/alex/ch/cnlab-switch/sunsite/mirror/redhat/current/SRPMS/SRPMS/finger-0.10-24.src.rpm
/alex/ch/cnlab-switch/sunsite/mirror/redhat/current/SRPMS/SRPMS/sh-utils-1.16-23.src.rpm
/alex/ch/cnlab-switch/sunsite/mirror/redhat/current/SRPMS/SRPMS/rwho-0.10-23.src.rpm
(alex is a ftp <-> nfs translator, verry nice :)
- Alex
------------------------------
From: Fulajtar Pal <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.misc
Subject: Token-ring cards
Date: Mon, 17 May 1999 10:55:34 +0200
Reply-To: [EMAIL PROTECTED]
Hi,
I have a 3com Velocity ISA16/4 token-ring card. Does anybody know,
where can i find Linux driver for it?
In the kernel I found only two supported cards. No more cards has Linux
support?
Regards,
Pal
------------------------------
From: Owen Brotherwood <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: Token-ring cards
Date: Mon, 17 May 1999 11:42:44 +0200
Madge has just released linux drivers for their non "true blue" TR cards
on their web site.
- I'm using a PCMCIA Madge card on a RH6.0/Dell Latitude and it works.
Madge have PCI cards so Linux TR hits the PCI bus at last?
I don't like the ibmtr driver that has been available until now(which may
work with certain 100% IBM TR compatible cards)
- it can hang the system with a cable error: the madge driver doesn't.
I don't know if IBM will sudenly release more drivers (also for PCI)
Olicom also have drivers: but the guy who was maintaining them left the
company(?)
- it is also an installation that patches the kernal source which may mean
it ill not work with RH60
Fulajtar Pal wrote:
> Hi,
>
> I have a 3com Velocity ISA16/4 token-ring card. Does anybody know,
> where can i find Linux driver for it?
> In the kernel I found only two supported cards. No more cards has Linux
> support?
>
> Regards,
>
> Pal
------------------------------
Subject: Re: Searching for Kernel Hacker's Guide
From: Michael Powe <[EMAIL PROTECTED]>
Date: 17 May 1999 01:23:29 -0700
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
>>>>> "Soohyung" == Soohyung Lee <[EMAIL PROTECTED]> writes:
Soohyung> I wanna get Postscript version of Kernel Hacker's
Soohyung> Guide.. Can you help me..? Any help will be
Soohyung> appreciated.. Thanks in advance..
Hmm, it says right on the Kernel Hacker's web page that it's only
available in html. So, if you did find a ps version, it'd probably be
out of date.
mp
- --
powered by GNU/linux since Sept 1997 Penguin spoken here
[EMAIL PROTECTED] http://www.trollope.org
Michael Powe Portland, Oregon USA
"Would John the Baptist have lost his head if his name was Steve?"
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v0.9.0 (GNU/Linux)
Comment: Encrypted with Mailcrypt 3.5.1 and GNU Privacy Guard
iD8DBQE3P9H2755rgEMD+T8RAmecAJ4tfV+2EZVfkZ6jMl4brYsrHkxrFgCfTmsO
WRdRPVjOD8SwrsXmAmEEZgw=
=vTA/
=====END PGP SIGNATURE=====
------------------------------
** 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
******************************