Linux-Development-Sys Digest #622, Volume #8      Mon, 9 Apr 01 18:13:13 EDT

Contents:
  Re: Suppressing Redhat bootup output (Andrew Purugganan)
  Custom install CDs ("Kris Kelley")
  Re: usleep() is unreliable when sleeping for less then 10000 micro
  Linux on Xbox? (Hermann Samso)
  And Linux for Playstation 2, Cube, etc? (Hermann Samso)
  A Linux emulator for Linux, does this exist? (Hermann Samso)
  Re: A Linux emulator for Linux, does this exist? ("Norm Dresner")
  Re: Custom install CDs ("Norm Dresner")
  Re: how to modify dynamic lib ? ("Norm Dresner")
  Re: LinuxThreads and thread-safety, re-entrancy, async-safety! ("Norman Black")
  Re: A Linux emulator for Linux, does this exist? (Grant Edwards)
  Re: A Linux emulator for Linux, does this exist? (paul beard)
  Re: A Linux emulator for Linux, does this exist? (Uwe Bonnes)
  Re: A Linux emulator for Linux, does this exist? (Timo =?ISO-8859-1?Q?St=F6ckigt?=)
  Re: TCP/IP socket buffering (Greg Copeland)
  Re: cpu scheduling problem (Greg Copeland)
  Re: Need your recommendation for a full-featured text editor ("Dan Miller")
  Re: how to modify dynamic lib ? (Jonathan Buzzard)
  Re: Need your recommendation for a full-featured text editor (Dave Martel)
  Re: A Linux emulator for Linux, does this exist? (Mike Fleetwood)

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

From: [EMAIL PROTECTED] (Andrew Purugganan)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Suppressing Redhat bootup output
Date: 9 Apr 2001 18:18:53 GMT

Paul Haley ([EMAIL PROTECTED]) wrote:

[ I'm running Redhat 6.2 and would like to suppress the output on bootup, such 
[ as "Loading cron.....  [OK]", etc.  All I want is to have lilo say "loading 
[ linux" and then give me a login prompt, though of course I still want all 
[ the programs/processes to run, I just don't want them to output to the 
[ screen.  I checked out the init scripts and nothing jumped out at me.  

[ Can somebody help?

There is also the lpp (load progress patch?) which shows a status bar of 
the boot process along with the splash screen or graphic of your choice. 
It's on freshmeat.net, and I know there are several nice themes available 
e.g. Trinity from the Matrix, Tux, Suse or Debian or other distro logos. 
---
jazz 
Registered linux user no. 164098  +--+--+--+ Litestep user no. 386
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??

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

From: "Kris Kelley" <[EMAIL PROTECTED]>
Subject: Custom install CDs
Date: Mon, 9 Apr 2001 13:36:12 -0500

I have put together a customized linux operating system that I would like to
turn into a distribution.  I need some pointers on learning how to create a
custom linux install CD.  This CD needs to be compatable across a wide
variety of hardware; the more systems it can install onto, the better.

I have made a list of what the install CD should do: detect, format, and
partition the hard drive, copy over the relevant software, then run a script
to perform the necessary customizations.  I am largely unfamiliar with the
specifics each step would require; for example, I know to use fdisk and
mke2fs to partition and format a hard drive, but I don't know what is used
to search for and detect available hard drives.  I will be very grateful for
leads on documentation, web sites, etc., on how to produce this install CD.

Sorry to sound like a clueless newbie, but in this case, I pretty much am.

Thanks.

---Kris Kelley



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

From: [EMAIL PROTECTED] ()
Subject: Re: usleep() is unreliable when sleeping for less then 10000 micro
Date: Mon, 09 Apr 2001 19:20:33 -0000

In article <9asn3n$3p6$[EMAIL PROTECTED]>,
Pasztor Szilard  <[EMAIL PROTECTED]> wrote:

>>        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.

>No matter if it's realtime priority, it won't get the cpu back until the
>scheduler has provided the deserved jiffy.

You didn't see the part about busy waits?

--
http://www.spinics.net/linux/

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

From: Hermann Samso <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Linux on Xbox?
Date: 9 Apr 2001 19:44:26 GMT


        Has anyone an idea if linux will/won't run on
        Microsoft's Xbox game console?

        BTW, does this machine have any ports for keyboard,
        mouse, etc?

        saludos,
                SoLo2

        Just superseding (don't know the difference to normal
        crossposting, really) this article to 2 other linux groups...

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

From: Hermann Samso <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: And Linux for Playstation 2, Cube, etc?
Date: 9 Apr 2001 19:47:14 GMT

        Following the same line...
        what about Linux for the new/upcoming powerful
        game consoles?

        Are there any working groups for that?

        saludos,
                SoLo2

        Again, superseding (or crossposting) a followup...

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

From: Hermann Samso <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: A Linux emulator for Linux, does this exist?
Date: 9 Apr 2001 19:51:14 GMT

        I am searching for a Linux emulator for Linux. Does such
        a beast exist? I think this could be useful for System
        developement, without needing to have more than 1 powerful
        computer for programming and testing.

        Saludos,
                SoLo2

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

From: "Norm Dresner" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: A Linux emulator for Linux, does this exist?
Date: Mon, 09 Apr 2001 20:12:09 GMT

Hermann Samso <[EMAIL PROTECTED]> wrote in message
news:9at3ri$gc3$[EMAIL PROTECTED]...
> I am searching for a Linux emulator for Linux. Does such
> a beast exist? I think this could be useful for System
> developement, without needing to have more than 1 powerful
> computer for programming and testing.
>
> Saludos,
> SoLo2

Let's see.  I can buy a cheap PC clone on which I can run Linux -- in a
networked environment so I don't even need anything more than the OS
itself -- for about $600US.  At even a bargain basement (costing) rate of
$50US hour, that's only 12 hours of programmer time.  Considering the
complexity of Linux, you'd have to expend thousands of hours to get
something that might -- just might -- provide a moderately faithful
emulation of exactly one version of Linux.  Just one version!  To get three
versions, you'd probably have to double that.  And who's going to do the
program maintenance every time a new kernel version comes out?  You?
Probably not.  You  wouldn't have enough time to understand all of the
differences from the last version in time to get it coded before you'd have
to start working on the next new kernel version.


OTOH, If I'm really paranoid, I can get removable shells for my HD's so I
can remove all but one OS drive every time I'm ready to test a new "feature"
of my hardware.  Perhaps for an investment of $1000US I can create a totally
"safe" computer with two HDs, one of which is used only to restore the OS on
the other in the case of a total wipeout.  And that's buying new hardware.
I can probably scrounge up enough hardware in my basement to create one of
these machines for under $100US.

While it might be a nice thing to have, it's totally economically
infeasible.  Maybe it might make sense for a stable OS like Windows ;-) but
not for something that's changing as rapidly as Linux.

    Norm



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

From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Re: Custom install CDs
Date: Mon, 09 Apr 2001 20:13:25 GMT

While I was surfing the other day I cam across a HOWTO for making
installation CDs.  It's out there on the world-wide-time-waster.

    Norm

Kris Kelley <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I have put together a customized linux operating system that I would like
to
> turn into a distribution.  I need some pointers on learning how to create
a
> custom linux install CD.  This CD needs to be compatable across a wide
> variety of hardware; the more systems it can install onto, the better.
>
> I have made a list of what the install CD should do: detect, format, and
> partition the hard drive, copy over the relevant software, then run a
script
> to perform the necessary customizations.  I am largely unfamiliar with the
> specifics each step would require; for example, I know to use fdisk and
> mke2fs to partition and format a hard drive, but I don't know what is used
> to search for and detect available hard drives.  I will be very grateful
for
> leads on documentation, web sites, etc., on how to produce this install
CD.
>
> Sorry to sound like a clueless newbie, but in this case, I pretty much am.
>
> Thanks.
>
> ---Kris Kelley
>
>



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

From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Re: how to modify dynamic lib ?
Date: Mon, 09 Apr 2001 20:14:24 GMT

Markus Fischer <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I would like to replace a function in a dynamic lib.
>
> assumed I have a mylibc.so.6 file and nm
> shows me the functions in the library.
>
> how can I compile and add/replace the function in
> the original dynamic library ?
>
> pointers welcome
>
> thanks,
>
> robert arctor wrote:
> >
> > Hi
> >
> > Could somebody please post how to permanently change the PATH
environment
> > variable.
> >
> > Thanks in advance.
> >
> > Rob

AFAIK, you can't extract routines from a shared library, you need to re-link
the whole thing.

    Norm



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

From: "Norman Black" <[EMAIL PROTECTED]>
Subject: Re: LinuxThreads and thread-safety, re-entrancy, async-safety!
Date: Mon, 9 Apr 2001 13:14:04 -0700
Reply-To: "Norman Black" <[EMAIL PROTECTED]>

About re-entrancy. Many of the historical "Unix" API's are not ren-entrant.
This is because threads are a newer concept and the API's are very old.
Re-entrant API's exist for the affected calls, and most are POSIX standard.
For example readdir has a re-entrant version called readdir_r. The MAN pages
will likely comment on re-entrancy if applicable and also list the
re-entrant calls. It is your responsibility to make sure your threaded code
is using re-entrant API calls.

LinuxThreads does not use SIGUSR on any 2.2 and later kernel. I cannot
comment on anything older since I have no experience with this. LinuxThreads
uses the first two "realtime" signals. In fact LinuxThreads hooks the glibc
call(s) and "alters" the return value of SIGRTMIN to reflect the signals it
consumes.

About re-entrancy of "other" libraries on the system. This is just a fact of
life. Due to history much has not been written with threads in mind. For
example GTK+ is not re-entrant.

About kernel re-entrancy. It is getting better as time passes by. This is of
no concern for you, since the kernel protects itself, and any lack of
re-entrancy affects forked and threaded applications equally.

--
Norman Black
Stony Brook Software
the reply, fubar => ix.netcom

"Billy Bob Jameson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> [Repost from other newsgroup]
>
> Hi all.
>
> Need advice!
>
> My company takes on to porting a very sensitive library to Linux (RedHat
>
> 7.0, glibc 2.2.9). The library uses POSIX threads heavily.
> On Linux, at this time, LinuxThreads seems to be a very mature package
> and looks like being the right choice (and the only good one). However,
> we have come upon some documentation (not very up-to-date but
> anyways...) on the net saying that glibc is not fully thread-safe
> (LinuxThreads package README says that too). Also, the documentation
> warns about the non re-entrancy of other libraries in the system and
> about possible problems when mixing with libraries like svgalib that
> uses SIGUSR signals that LinuxThreads use too.
>
> So: what is your opinion? Stick with LinuxThreads or look after a
> user-level threads package? We were thinking that a user-level thread
> package would alleviate some of the problems.
>
> What is the latest news in kernel re-entrancy (2.2.x kernels)? Any
> links, points, etc.?
>
> Thanks++
>
>
>


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

From: [EMAIL PROTECTED] (Grant Edwards)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: A Linux emulator for Linux, does this exist?
Date: Mon, 09 Apr 2001 20:30:45 GMT

In article <9at3ri$gc3$[EMAIL PROTECTED]>, Hermann Samso wrote:

>       I am searching for a Linux emulator for Linux. Does such
>       a beast exist?

Yes.  You can run multiple instances of Linux on an IBM 390.
One guy at IBM reportedly had 4000+ instances of Linux running
on a signle box.  It's a very cool concept: instead of racks
and racks of servers that all need to be maintained, you buy a
single 390 and run umpteen copies of Linux: one as a DNS
server, one as an IMAP server, one as an NNTP server, a few
dozen as HTTP servers, a few as database servers, etc.  There
are virutual network channels between the instances, and they
can share disk space. 

390's have auto-failover, hot-swappable _everything_ and they
quite commonly run 99.99+ percent uptime.  That's something
that's simply not possible with a room full of x86 machines.
Once the number of x86 machines gets large enough, the cost of
ownership of a 390 is actually less than the "many racks of
cheap shit" approach.

>       I think this could be useful for System
>       developement,

Definitely.  That's way machines like the 390 have always had
fully virtualizable designs.  That way you can run multiple
OSes on one box.  Can't affort to give every system programmer
his own physical machine? Then give each one a virtual machine
or two.

>       without needing to have more than 1 powerful
>       computer for programming and testing.

Unfortunately, due to the mind-numbing backwardness of the
Intel CPU design, it is not easily virtualizable.  So there's
no nice to set up multiple virtual machines on one physical
machine if you're talking about the x86.

If Intel had done a better job on the 386, we probably would be
able to run multiple virtual machines on nice cheap hardware
(vmware does it, but they put a _lot_ of work into it, and
they want some payment for that work).

-- 
Grant Edwards                   grante             Yow!  Yow! I like my new
                                  at               DENTIST...
                               visi.com            

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

Subject: Re: A Linux emulator for Linux, does this exist?
From: paul beard <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Date: Mon, 09 Apr 2001 20:38:48 GMT

Ever tried VMware? 

in article 9at3ri$gc3$[EMAIL PROTECTED], Hermann Samso at
[EMAIL PROTECTED] wrote on 4/9/01 12:51 PM:

> I am searching for a Linux emulator for Linux. Does such
> a beast exist? I think this could be useful for System
> developement, without needing to have more than 1 powerful
> computer for programming and testing.
> 
> Saludos,
> SoLo2


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

From: Uwe Bonnes <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: A Linux emulator for Linux, does this exist?
Date: 9 Apr 2001 20:27:57 GMT

In comp.os.linux.misc Hermann Samso <[EMAIL PROTECTED]> wrote:
:       I am searching for a Linux emulator for Linux. Does such
:       a beast exist? I think this could be useful for System
:       developement, without needing to have more than 1 powerful
:       computer for programming and testing.

You can boot Linux in Linux with vmware and there is s user space 
kernel.

Bye

-- 
Uwe Bonnes                [EMAIL PROTECTED]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
========= Tel. 06151 162516 ======== Fax. 06151 164321 ==========

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

From: Timo =?ISO-8859-1?Q?St=F6ckigt?= <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: A Linux emulator for Linux, does this exist?
Date: Mon, 9 Apr 2001 22:36:03 +0200
Reply-To: [EMAIL PROTECTED]

Hermann Samso wrote:

> I am searching for a Linux emulator for Linux. Does such
> a beast exist? I think this could be useful for System
> developement, without needing to have more than 1 powerful
> computer for programming and testing.
> 
> Saludos,
> SoLo2
> 

If I didn't understand everything wrong VMWare provides you a virtual 
computer, right? And you have a powerful computer. So what's the problem?

Ciao
Timo

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

Crossposted-To: comp.os.linux.networking
Subject: Re: TCP/IP socket buffering
From: Greg Copeland <[EMAIL PROTECTED]>
Date: 09 Apr 2001 15:43:54 -0500


I will assume that you are using TCP/IP sockets.  TCP is a streaming
protocol. The messages that you send need to have a built-in length
either implicit (fixed length messages for example) or explicit (a
length preceeding the data or message seporator).

This is exactly how it should be working.  UDP on the otherhand,
supports the notion of datagrams.  As such, assuming that it
actually arrives at the remote end, will only deliver what was
available via a single datagram.

Greg


"hebre" <[EMAIL PROTECTED]> writes:

> Hi!
> Does anybody know how to disable receive buffering?
> 
> Problem:
>     When client sends sequense of packets to server and server starts to
> receive them after some timeout (when all packets have been sent) it gets
> all packets in one recv() call, and buffer contains these in concatenated
> state. I have no information about this packets' format and can't to
> separate them, but I have to do it.
> 
> Client:                                                        Server:
> 
> send (sock,Packet1..)                          do something (not recv())
> send (sock,Packet2..)                                   ...........
> send (sock,Packet1..)                                   ...........
> 
> recv(buff,....)
> 
> buff = Packet1Packet2Packet3
> 
> Help, please!
> 
> 

-- 
Greg Copeland, Principal Consultant
Copeland Computer Consulting
==================================================
PGP/GPG Key at http://www.keyserver.net
DE5E 6F1D 0B51 6758 A5D7  7DFE D785 A386 BD11 4FCD
==================================================

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

Subject: Re: cpu scheduling problem
From: Greg Copeland <[EMAIL PROTECTED]>
Date: 09 Apr 2001 16:16:17 -0500

Some stuff snipped below:

> In LINUX scheduling algorithm, RR scheduling is considered to be a real-time
> process (in fact, privileged process is more appropriate, i think)....

I'm not sure that I really follow that statement.  RR is not RT.  Linux does
allow for RT (it does have POSIX RT extensions), however, the standard Linux
schedular does not make su root executables run at a high priority.

> 
> If you look into the source code, you can find the fact that when a new
> process enters runqueue, it is located at the tail of the queue.
> 

This is exactly as it should be and as expected.  The idea is that if you have
a process which is spawning new processes to handle a specific task, and the
new tasks are not placed on the tail, none of the pre-existing tasks will ever
run because all of the news tasks are immediately poping to the top.  In short,
you run into scheduled starvation which is clearly undesired.  In other cases,
you can create a situation whereby, the original process that should be
continuing to create new processes is no longer able to run because all of the
new processes are at the top holding the queue.  Again, starvation would follow.



-- 
Greg Copeland, Principal Consultant
Copeland Computer Consulting
==================================================
PGP/GPG Key at http://www.keyserver.net
DE5E 6F1D 0B51 6758 A5D7  7DFE D785 A386 BD11 4FCD
==================================================

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

From: "Dan Miller" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.comp.shareware.programmer,comp.editors,comp.lang.java.help,comp.lang.java.programmer,comp.lang.java.softwaretools,comp.os.linux.advocacy
Subject: Re: Need your recommendation for a full-featured text editor
Date: Mon, 9 Apr 2001 14:29:14 -0700

"Craig Kelley" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> "Paul Kinnucan" <[EMAIL PROTECTED]> writes:
>
> I must throw in my vote for XEmacs/Emacs as well (XEmacs is just
> prettier); although a programmer's editor is much like a choice of
> underware:  use what's comfortable for you, and avoid the ones that
> rub you the wrong way.
>
So, you're recommending Brief??  It hasn't been available for awhile...

> --
> It won't be long before the CPU is a card in a slot on your ATX videoboard
> Craig Kelley  -- [EMAIL PROTECTED]
> http://www.isu.edu/~kellcrai finger [EMAIL PROTECTED] for PGP block



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

From: [EMAIL PROTECTED] (Jonathan Buzzard)
Subject: Re: how to modify dynamic lib ?
Date: Mon, 9 Apr 2001 22:18:43 +0100

In article <[EMAIL PROTECTED]>,
        Markus Fischer <[EMAIL PROTECTED]> writes:
> 
> I would like to replace a function in a dynamic lib.
> 
> assumed I have a mylibc.so.6 file and nm
> shows me the functions in the library.
> 
> how can I compile and add/replace the function in
> the original dynamic library ?
> 

Write the new function, compile into a new library and use LD_PRELOAD

JAB.

-- 
Jonathan A. Buzzard                 Email: [EMAIL PROTECTED]
Northumberland, United Kingdom.       Tel: +44(0)1661-832195

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

From: Dave Martel <[EMAIL PROTECTED]>
Crossposted-To: 
alt.comp.shareware.programmer,comp.editors,comp.lang.java.help,comp.lang.java.programmer,comp.lang.java.softwaretools,comp.os.linux.advocacy
Subject: Re: Need your recommendation for a full-featured text editor
Date: Mon, 09 Apr 2001 03:41:21 -0600

On Mon, 9 Apr 2001 14:29:14 -0700, "Dan Miller" <[EMAIL PROTECTED]>
wrote:

>"Craig Kelley" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> "Paul Kinnucan" <[EMAIL PROTECTED]> writes:
>>
>> I must throw in my vote for XEmacs/Emacs as well (XEmacs is just
>> prettier); although a programmer's editor is much like a choice of
>> underware:  use what's comfortable for you, and avoid the ones that
>> rub you the wrong way.
>>
>So, you're recommending Brief??  It hasn't been available for awhile...

Brief's the best programmer's editor I ever used. Despite
compatability claims I've never found another editor that duplicates
Brief's intuitiveness. Too bad Borland bought it up and then forgot
about it.


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

From: [EMAIL PROTECTED] (Mike Fleetwood)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: A Linux emulator for Linux, does this exist?
Date: Mon, 9 Apr 2001 22:53:01 +0100
Reply-To: Mike Fleetwood <[EMAIL PROTECTED]>

On 9 Apr 2001 19:51:14 GMT, Hermann Samso <[EMAIL PROTECTED]
uni-hannover.de> wrote:
>       I am searching for a Linux emulator for Linux. Does such
>       a beast exist? I think this could be useful for System
>       developement, without needing to have more than 1 powerful
>       computer for programming and testing.
>
>       Saludos,
>               SoLo2

The following software packages emulate PC hardware and will allow
Linux to be installed within your virtual PC on Linux:

* VMWare - Commerical
        http://www.vmware.com/
* Simics - Commercial
        http://www.simics.com/
* Plex86 - Open Source
        http://www.plex86.org/

More useful for kernel development is User Mode Linux which allows you
to run a Linux OS (kernel and all required processes) as separate
processes under Linux.

* User Mode Linux - Open Source
        http://user-mode-linux.sourceforge.net/

Mike
-- 
 __  __ _ _     ___    ____ _    ___  ___  _           ___  ___    _
|  \/  (_| | _ / _ \  | ___| |  / _ \/ _ \| |_ _  _  _/   \/   \ _| |
| |\/| | | |/ |  ___| | _| | |_|  __|  ___| __| \/ \/|  O |  O  / _ |
|_|  |_|_|_|\_\\___|  |_|  |____\___|\___||____\_/^\_/\___/\___/\___|

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


** 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 by posting to the
comp.os.linux.development.system newsgroup.

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