Linux-Misc Digest #912, Volume #20 Sun, 4 Jul 99 08:13:10 EDT
Contents:
Re: nanosleep() ?? ("Michael T. Bird")
Re: kernel patch 2.2.10 (Frederic L. W. Meunier)
Re: Playing wav files ([EMAIL PROTECTED])
Re: Playing wav files (Frederic L. W. Meunier)
Re: Beating MS and a manifestation of tradition. (Local)
Autofs (Hilton Travis)
Re: How do I create the soundcore.o module? ([EMAIL PROTECTED])
Re: vmware review (Tom Shannon)
Re: x on rlogin (Stephen Chadfield)
Linux in Win98??? (Hilton Travis)
Re: Help....After setting the Chinese Fonts... (Alleyoop Sam)
Re: want to learn linux (Tobias Anderberg)
Re: kppp probs ("Al Kooz")
Recommended First Linux Books- online and off ("Graeme Fenwick")
Re: Linux Partition Question (Radek Zitek)
logins (goldrush)
links (Shawn Lang)
Re: Mr. Kulisz wisdom ( is there any? ) (Hobbyist)
----------------------------------------------------------------------------
From: "Michael T. Bird" <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc,comp.sys.sgi.misc
Subject: Re: nanosleep() ??
Date: Mon, 21 Jun 1999 18:56:08 -0700
==============F10CB4D854D98314496E32A5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello J.,
man nanosleep says:
=====================================================================
...
BUGS
The current implementation of nanosleep is based on the
normal kernel timer mechanism, which has a resolution of
1/HZ s (i.e, 10 ms on Linux/i386 and 1 ms on Linux/Alpha).
Therefore, nanosleep pauses always for at least the speci-
fied time, however it can take up to 10 ms longer than
specified until the process becomes runnable again. For
the same reason, the value returned in case of a delivered
signal in *rem is usually rounded to the next larger mul-
tiple of 1/HZ s.
As some applications require much more precise pauses
(e.g., in order to control some time-critical hardware),
nanosleep is also capable of short high-precision pauses.
If the process is scheduled under a real-time policy like
SCHED_FIFO or SCHED_RR, then pauses of up to 2 ms will be
performed as busy waits with microsecond precision.
CONFORMING TO
...
====================================================================
Which seems to mean that there are exactly two classes of pauses:
1. short pauses (< 2 ms) which are only available to processes
using real-time scheduling. This wait chews up cpu cycles?
2. long pauses (> 10 ms) regardless of scheduling priority which
don't suck up any cpu time.
So if your real-time process requests a 1 ms delay, the cpu spins
until 1 ms has elapsed. If you request a 3 ms wait, the process
goes to sleep for the minimum supported time (ie 10 ms).
Sounds like you're SOL with nanosleep. Try setitimer and sigsuspend.
I didn't read though the man pages carefully, but at first glance
they appear to have the capabilities you want.
Later,
Mike Bird
"J. Song" wrote:
> I am trying to use nanosleep() in real-time mode, where I only want to
> suspend processing for only a few milliseconds. It seems like the
> nanosleep() call still works like the usleep() where it's 'sleeping' for
> 10 ms or longer...I can't get my loop to run faster than 100 Hz. Am I
> missing something? I do the following:
>
> struct sched_param p;
> p.sched_priority = sched_get_priority_max(SCHED_FIFO);
> sched_setscheduler(0, SCHED_FIFO, (const struct sched_param *)&p);
> .....
> .....
>
> BEFORE going into my loop that contains:
>
> nanosleep((const struct timespec *)&a, &b);
>
> where
> a.tv_sec = 0;
> a.tv_nsec = sleep_time_in_nsecs;
>
> Any help would be greatly appreciated. Thank you.
>
> Jae.
>
> ps. If I comment the nanosleep() call out, my loop runs at a speed of
> over 20 KHz.
--
Michael T. Bird email: [EMAIL PROTECTED]
AETC, Inc.
8910 University Center Ln.
Suite 900 voice: (619) 450-1211
San Diego, CA 92122-1012 FAX: (619) 450-1794
==============F10CB4D854D98314496E32A5
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt>Hello J.,</tt><tt></tt>
<p><tt>man nanosleep says:</tt>
<br><tt>---------------------------------------------------------------------</tt>
<br><tt>...</tt><tt></tt>
<p><tt>BUGS</tt>
<br><tt> The current implementation
of nanosleep is based on the</tt>
<br><tt> normal kernel
timer mechanism, which has a resolution of</tt>
<br><tt> 1/HZ s (i.e, 10 ms on Linux/i386
and 1 ms on Linux/Alpha).</tt>
<br><tt> Therefore, nanosleep pauses
always for at least the speci-</tt>
<br><tt> fied time, however it can
take up to 10 ms longer than</tt>
<br><tt> specified until
the process becomes runnable again. For</tt>
<br><tt> the same reason, the value
returned in case of a delivered</tt>
<br><tt> signal in *rem is usually
rounded to the next larger mul-</tt>
<br><tt> tiple of 1/HZ s.</tt><tt></tt>
<p><tt> As some applications
require much more precise pauses</tt>
<br><tt> (e.g., in order
to control some time-critical hardware),</tt>
<br><tt> nanosleep is also capable
of short high-precision pauses.</tt>
<br><tt> If the process is scheduled
under a real-time policy like</tt>
<br><tt> SCHED_FIFO or SCHED_RR, then
pauses of up to 2 ms will be</tt>
<br><tt> performed as busy waits with
microsecond precision.</tt><tt></tt>
<p><tt>CONFORMING TO</tt><tt></tt>
<p><tt>...</tt><tt></tt>
<p><tt>--------------------------------------------------------------------</tt><tt></tt>
<p><tt>Which seems to mean that there are exactly two classes of pauses:</tt><tt></tt>
<p><tt>1. short pauses (< 2 ms) which are only available to processes</tt>
<br><tt> using real-time scheduling. This wait chews up cpu
cycles?</tt><tt></tt>
<p><tt>2. long pauses (> 10 ms) regardless of scheduling priority
which</tt>
<br><tt> don't suck up any cpu time.</tt><tt></tt>
<p><tt>So if your real-time process requests a 1 ms delay, the cpu spins</tt>
<br><tt>until 1 ms has elapsed. If you request a 3 ms wait, the process</tt>
<br><tt>goes to sleep for the minimum supported time (ie 10 ms).</tt><tt></tt>
<p><tt>Sounds like you're SOL with nanosleep. Try setitimer and sigsuspend.</tt>
<br><tt>I didn't read though the man pages carefully, but at first glance</tt>
<br><tt>they appear to have the capabilities you want.</tt><tt></tt>
<p><tt>Later,</tt><tt></tt>
<p><tt>Mike Bird</tt>
<br><tt></tt> <tt></tt>
<p><tt>"J. Song" wrote:</tt>
<blockquote TYPE=CITE><tt>I am trying to use nanosleep() in real-time mode,
where I only want to</tt>
<br><tt>suspend processing for only a few milliseconds. It seems
like the</tt>
<br><tt>nanosleep() call still works like the usleep() where it's 'sleeping'
for</tt>
<br><tt>10 ms or longer...I can't get my loop to run faster than 100 Hz.
Am I</tt>
<br><tt>missing something? I do the following:</tt><tt></tt>
<p><tt>struct sched_param p;</tt>
<br><tt>p.sched_priority = sched_get_priority_max(SCHED_FIFO);</tt>
<br><tt>sched_setscheduler(0, SCHED_FIFO, (const struct sched_param *)&p);</tt>
<br><tt>.....</tt>
<br><tt>.....</tt><tt></tt>
<p><tt>BEFORE going into my loop that contains:</tt><tt></tt>
<p><tt>nanosleep((const struct timespec *)&a, &b);</tt><tt></tt>
<p><tt>where</tt>
<br><tt>a.tv_sec = 0;</tt>
<br><tt>a.tv_nsec = sleep_time_in_nsecs;</tt><tt></tt>
<p><tt>Any help would be greatly appreciated. Thank you.</tt><tt></tt>
<p><tt>Jae.</tt><tt></tt>
<p><tt>ps. If I comment the nanosleep() call out, my loop runs at
a speed of</tt>
<br><tt>over 20 KHz.</tt></blockquote>
<tt></tt>
<p><br><tt>-- <br>
Michael T.
Bird
email:
[EMAIL PROTECTED] <br>
AETC,
Inc. <br>
8910 University Center Ln. <br>
Suite
900
voice: (619)
450-1211 <br>
</tt>San Diego, CA 92122-1012 FAX:
(619) 450-1794
<br> </html>
==============F10CB4D854D98314496E32A5==
------------------------------
From: Frederic L. W. Meunier <[EMAIL PROTECTED]>
Subject: Re: kernel patch 2.2.10
Date: 4 Jul 1999 08:09:19 GMT
This worked for me too. Kind of disapointing that a patch has to be
modified by the end user. For the record I'm using patch 2.1b
,,,
Hmm. You're talking about what? I got the 2.2.0 tarball and 2.2.1-2.2.10.bz2
patches and never had a problem using the patch command. Maybe it's a problem
with your patch. I used patch -p0 and it worked fine.
(sorry if it wasn't your problem, but I can't get the initial message of this
thread).
------------------------------
Subject: Re: Playing wav files
From: [EMAIL PROTECTED]
Date: 04 Jul 1999 01:21:45 -0700
Johan den Boer <[EMAIL PROTECTED]> writes:
> Hi,
>
> I am using SuSe 6.1 and kernel 2.2.5. I can play sound
> through my cd-player but can't play wav files.
> Does anyone know how to play wav files ?
Read the Sound-HOWTO...it will tell you a lot, then you can ask again if you
have trouble.
------------------------------
From: Frederic L. W. Meunier <[EMAIL PROTECTED]>
Subject: Re: Playing wav files
Date: 4 Jul 1999 08:19:09 GMT
Does anyone know how to play wav files ?
,,,
Try wavplay. Search for it at http://filewatcher.org/ . Maybe there's a better
program for this. I don't have a sound card since 10/98. 7 months is a long
time in the Linux world.
------------------------------
From: Local <[EMAIL PROTECTED]>
Crossposted-To: comp.sys.amiga.misc
Subject: Re: Beating MS and a manifestation of tradition.
Date: Sun, 04 Jul 1999 01:24:59 -0700
Don't Harvest This Address --> wrote:
>
> In article <[EMAIL PROTECTED]>,
> "Timothy Rue" <[EMAIL PROTECTED]> wrote:
> > On 01-Jul-99 17:01:17 Don't Harvest This Address --> <[EMAIL PROTECTED]>
>wrote:
> >
> > DHT> I hope there are a lot of contradictions between you and Jim Collas;
> > DHT> the last thing we need at this point is for Amiga to take your
> > DHT> half-baked advice and go with the VIC instead of proven solutions like
> > DHT> Java or REBOL.
> >
> > You have proven yourself to be one that follows me around to dog me.
>
> Amazing you should mention that. Just last night I was in the
> check-out line at the grocery and guess what I see on the cover
> of the new TV Guide? The Taco Bell dog!
Yo Quiro Taco Bell?
------------------------------
From: Hilton Travis <[EMAIL PROTECTED]>
Subject: Autofs
Date: Sun, 04 Jul 1999 19:57:00 +1000
Hi All,
I am trying to nut out autofs. I had it working before, then had to do
a reinstall of my RedHat 6.0 system, and now cannot get it to bahave
itself.
The autofs version is 3.1.3-2. The same auto.master and auto.* scripts
are being used as the previous install.
Autofs will not mount the CD-ROM, floppy or LS-120 present on the Linux
box, however I can manually mount each of these devices. This has got
me stumped.
Also, I have never been able to be able to figure out how to get autofs
to mount shares from my Windows 98 SE box. Again I can mount these
manually, but autofs seems unable to do it.
Any and all help appreciated.
Regards,
Hilton
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: How do I create the soundcore.o module?
Date: Sun, 04 Jul 1999 10:09:29 GMT
Silviu Minut <[EMAIL PROTECTED]> wrote:
>If your kernel was configured correctly and you didn't get soundcore.o then why
>do you think you need it? For instance I only have sound.o, sb.o, awe_wave.o
>opl3.o and soundlow.o (I have a Sound Blaster). And sound works just fine.
Because its required for the sblive.o driver with the 2.0.36 kernel.
NJR
------------------------------
From: [EMAIL PROTECTED] (Tom Shannon)
Subject: Re: vmware review
Date: Sat, 3 Jul 1999 16:28:03 -04-59
In the interest of saving bandwidth I'll post my own review in a more
succinct fashion:
Worth every penny.
Tom
------------------------------
From: Stephen Chadfield <[EMAIL PROTECTED]>
Subject: Re: x on rlogin
Date: Sun, 04 Jul 1999 10:04:04 +0100
Franck Aguado wrote:
>
> Hi,
>
> i rlogin from a mac onto a pc and can work fine but how can i have x to run
> from server on client ? running linuxconf on server gives graphical interface
> on client. can anybody help and explain ? Thanks
> franck
First, let's make sure we are clear on terminology. The X clients are
your GUI based programs (netscape, xclock etc.) and the X server is the
display that is used by those clients.
If you want to run X clients on your PC using the Mac as a display then
you are going to have to run an X server on the Mac. I have no idea what
the availability of X servers is for the Mac. I would imagine that they
are likely to be commercial products.
--
Stephen Chadfield
http://www.aquamarine.demon.co.uk/
------------------------------
From: Hilton Travis <[EMAIL PROTECTED]>
Subject: Linux in Win98???
Date: Sun, 04 Jul 1999 20:03:44 +1000
Hi All,
I was wondering if there is a version of Linux that will work inside
Win98? I know it's a bit of an ask (for Win98 to support ANYTHING), but
anyway...
What I want to do, without having to build yet another machine, is to
have a single machine that has Win98 running and accessing my Linux
server. I want to be able to test config changes by using "Linux in a
Window" so to speak, without having to reboot this machine into Linux,
and then back into Win98 - a PITA and waste of time to boot!
Anyone know of any distribution like this?
Regards,
Hilton
------------------------------
From: Alleyoop Sam <[EMAIL PROTECTED]>
Subject: Re: Help....After setting the Chinese Fonts...
Date: Sun, 04 Jul 1999 16:00:43 +0800
Thx for you help first,
I haven't install any TrueType fonts yet. Although I have tried so after
reading you help message, I still can't start my X session! I have checked
that my linux box have no /usr/X11R6/lib/X11/fonts/TrueType dir, do I need to
expliciltly create such directory?? During my installation of the big5 fonts
(they are just taipei15.pcf.gz, taipei16.pcf.gz, taipeik20.pcf.gz &
taipeik24.pcf.gz), I just add those files in the /usr/X11R6/lib/X11/fonts/misc
directory. Then "mkfontdir".
Well, thx for your nice reply, K.
"R.K.Aa" wrote:
> Alleyoop Sam wrote:
> >
> > I have followed the steps for install chinese fonts under Chinese
> > HOW-TO page, after make
> > Zip file and "mkfontdir" I can't check for the exsitance of the big5
> > font. Although I have
> > download the file sepcified and get some taipei fonts, I still can't
> > find the big5 fonts
> > installed. (Try the "xlsfonts | grep big5", but no outcome ah)
> >
> > And it's even worse after I reboot the system, it halted with the
> > responce:
> > "According to /var/run/gdm.pid, gdm was already running, but seems to
> > have been murdered mysteriously"
> > This made my monitor to blink for 10 times, (with the above string
> > printed on the screen for 10 times)
> > after that it shows:
> > "INIT: ld "x" respawing too fast: disabled for 5 mintues."
> >
> > There after, my machine will start to run the gdm but the same responce
> >
> > is shown for that, too.
> > Then, I have shutdown my PC.
> >
> > Any help for that? I need your kindness help! pls.
------------------------------
From: [EMAIL PROTECTED] (Tobias Anderberg)
Subject: Re: want to learn linux
Reply-To: [EMAIL PROTECTED]
Date: Sun, 4 Jul 1999 10:51:46 +0200
>please email me directly @ [EMAIL PROTECTED]
Eh, no. Sorry.
>my question is how much frustration will i be in for, assuming i buy a
>new PC and then attempt to partition my hard drive and have a choice of
>running windows98 and linux, or is that even possible.
That depends on how bad you screw up. But it's generally not hard to partition
you HD for dual boot Linux/Windows/Whatever. I guess it would take 5 min.
>i'm sure some of the frustration will lead to learning, but i don't want
>to regret my decision,
Just remember that Linux isn't for everybody. But I guess you have to try it
to find out :-) So go ahead..
>further what components of the PC are a must to run linux? do most new
>PCs come with generally what i will need. EG if i get 4 gigs of HD,
>128mb RAM, an 8mb vid card, aren't there some cards that won't work with
>linux.
That'll do more that well. I have a few 486's that run Linux, one SX40 and one
DX100 with 8 resp. 20 mb ram. The work just fine. But then again, they're not
as fast as my P2-450 128mb. I guess should atleast go with a Pentium and
32-64mb ram, it's really not expensive these days.
>lastly, i suppose linux crashs less than windows, but do people use
>linux for everyday tasks like webrowsing, email, word processing and not
>use it at the same time for server functions, or things that linux
>uniquely does and therefore one needs linux.
Hm, I don't understand what you mean with the last two questions. But, yes,
people do use it for everyday functions as those you mention. But if you only
plan to browse the web, read email and to some wordprocssing you should
probably stick with you Mac or with Windows. Although I to use Linux to do the
above things I mainly use for heavy development/servers and such.
>any suggestions besides books on getting started.
Scout the web and the various Linux newsgroups. There you'll learn a lot.
/tobias
------------------------------
From: "Al Kooz" <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux,comp.os.linux.setup,comp.windows.x.kde,linux.redhat,linux.redhat.install,linux.redhat.misc,redhat.config,redhat.general
Subject: Re: kppp probs
Date: Sun, 4 Jul 1999 12:45:17 +0200
Thanx Randy for the reply but I don't quiet understand what to do. I'm a
newbie at linux (sorry). Could you please tell me where to put that AT&F1 ?
Do I have to insert it in the login-script ?
thanx Al
------------------------------
From: "Graeme Fenwick" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Recommended First Linux Books- online and off
Date: Sun, 04 Jul 1999 10:58:43 GMT
Hi all...
Simple question (though I doubt the answer will be):- Which is the best
Linux book for a (near) beginner?
I know... this has been asked countless times before (slap me with a wet
fish if you're sick of seeing the same question ;-), but trawling the
archives hasn't turned up a suitable answer. So I'll try to be as specific
as I can....
I recently installed Linux (Red Hat 5.2) on my PC, and I've been using
Linux Installation and Getting Started to do just that. It's good, but
clearly isn't meant to be comprehensive, so what I'm after now is a book to
help me get "into" Linux- in other words, a quality, general-purpose book.
What I don't want is something that's..... patronising, simplistic, or
bloated. I don't expect coverage of every conceivable Linux obscurity at the
expense of any depth either, just something that covers the core topics in
reasonable detail, and credits me with more than two brain cells. I thought
about Running Linux from O'Reilly Publishing, but it's a few years old now
unfortunately.
Online (free) documentation was quite a common suggestion. Much as I
find this sort of stuff very useful (cheaper, and usually more up-to-date),
I still prefer the dead tree variety for day-to-day learning and reference-
*if* they justify the cost, that is..
Something else that got said more than once was that there are very few
good Linux books out there, (and some of those that are available are very
similar to online books/docs anway). If this is so, would it be better to go
for a (general) Unix book, using the online docs and HOWTOs for
Linux-specific stuff?
How many words did it take me to ask that "simple question"? 1, 2, 3, 4,...
whatever. ;-)
Any help appreciated, at any rate.
--
======================================================================
"What do you mean, spontaneous human combustion?! Dammit! I was
promised they'd get that Halt and Catch Fire instruction removed
before we went into production."
"Good job it wasn't our flagship model, Sir."
======================================================================
Graeme Fenwick
- [EMAIL PROTECTED]
(Don't forget to remove "BYESPAM" filter if replying by mail)
------------------------------
From: Radek Zitek <[EMAIL PROTECTED]>
Subject: Re: Linux Partition Question
Date: Sun, 04 Jul 1999 11:50:39 GMT
It's not possible to use the Linux partition from Windows/DOS (if it's=20
possible
then it's not trivial). It's very easy to use DOS partition from=20
Linux. I would try
to keep all native Linux files on Linux partition and all your files=20
(downloads,
documents). This is confusing ... I think it's safe to say - if you=20
run out of
space on Linux partition you can always spil over to DOS - if you run=20
out of DOS
space you can not use the Linux space. As well depends how are you=20
going to use
both systems ... do you plan to use a lot of Windows apps ... you=20
will need a LOT
of DOS space.=20
Radek
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 7/4/99, 3:52:57 AM, [EMAIL PROTECTED] wrote regarding Linux=20
Partition Question:
> New Linux user question:
> If I partition a 1GB hard disk to have MS-DOS and Linux partitions is
> the Linux partition usable for MS-DOS and Windows applications or
> should I have a small partition for Linux to avoid wasting space?
> Would appreciate info about experiences with partitioning between
> MS-DOS/Windows and Linux. I'm awaiting delivery of a book that should
> help me out on this, but am anxious to get the partitioning and
> installation done.
> Please email me...Thanks. =20
------------------------------
From: goldrush <[EMAIL PROTECTED]>
Subject: logins
Date: Sun, 04 Jul 1999 07:12:42 -0400
i use a stand alone linux system. i set up a user name so i wouldnt have
to use root to do my everyday stuff.
everything was going fine with my username until couple of days ago.
when i typed in my username and
password, it just refreshed the screen and came back to the sign in
screen. i could login as root though
and had to create another user to do my everyday stuff. does anyone know
why i cannot login using my
old username. i am using Redhat 6.0.
------------------------------
From: Shawn Lang <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: links
Date: Sun, 04 Jul 1999 04:22:47 -0700
i need help i need to make a symbolic link in my system
but i can make the dir usr/local/domains/***.com/Ops/
but i need to know how to make this dir's go to
/home/***/www/Ops/
please help me
------------------------------
From: [EMAIL PROTECTED] (Hobbyist)
Crossposted-To: comp.os.ms-windows.advocacy,comp.os.linux.advocacy,gnu.misc.discuss
Subject: Re: Mr. Kulisz wisdom ( is there any? )
Date: Sun, 4 Jul 1999 06:39:39 -0500
On Sat, 03 Jul 1999 23:15:37 -0500, Jacob Ratkiewicz, in an attempt to
show us how smart and informed he is wrote ...
> I heartily agree. Kill this thread. Give it up, guys. If you
> feel compelled to pursue the issue, might you possibly do it
> by email so the rest of us don't have to wade through all this
> junk? This is a linux newsgroup.
>
>
Leave them alone.
Don't you have an "ignore" or "kill thread" option in your newsreader?
--
A Hobbyist.
I use what works best for me and not what works best
for others.
>>>Down with the irrational OS zealot!!!<<<
------------------------------
** 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
******************************