HDTenEightyP/NetNews huggingface dataset:
From: won@cs.columbia.edu (Won Y. Kim)
Subject: 2.1 Kernel bug workaround..??
Organization: Columbia University Department of Computer Science
Distribution: usa
Date: Mon, 17 Aug 1992 03:11:13 GMT


Hi all, I am a semi happy 2.1 Amiga Unix user...

I recently got olwm to start via xdm instead of twm and it does look
really nice! 
 
Problem is, the kernel bug stated in the addendum for 2.1
(where the swap space gradually dissolves away until there is no more..)
is really apparent now.

Every program that I run seem to eat up and never return some of the swap 
space. (via swap -s)

This slow death is extremely noticeable when under olwm/twm etc.. such
that I can only start and stop a small number of tasks before my 27mb
of swap is reduced to microscopic amounts. 

This happens even w/o olwm active, alhough the progression is slower.

Now, this neccessitates the shutdown/rebooting of the machines every
2-3 days of normal (non olwm) useage..

The question I have is..

AM I THE ONLY NE WHO IS TICKED OFF AT THIS??

If not, was there a FAQ somemwhere that explains how to stop it from 
happening?? 

Is there a fix for this bug?? I remember bits of a "fix disk" fo 2.1
(or was that  2.03 that I am confusing with??)

I waited ~1 year for 2.1 to come out, shelled out my meager savings
to upgrade from 1.1, and now I find this... (sigh.....)

If there *is* a fix too this problem, someone please point me to it!

Second query, if a A3000 has full 16mb of memory, are additional
fastram from 040 cards mapped as contiguous?? (I am speaking of
the PP&S Mercury)

That is, can I use the fast ram from an accelerator card even if
unix doesn't function with an 040??

Any answers greatly appreciated.

					-frustrated in NYC.
					-WYK.
-- 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Won Kim. Programmer ReProgrammer..
"I am the SuperGrunt. The *Orginal* SuperGrunt. Perhaps you have heard of me?"
						- The Orginal SuperGrunt
Newsgroups: comp.unix.amiga
From: gbrandt@muug.mb.ca (Gregor Brandt)
Subject: Will Amiga Unix work on a 68040?
Keywords: 68040 unix amiga
Organization: Manitoba Unix User Group, Winnipeg, Manitoba, Canada
Distribution: na
Date: Thu, 20 Aug 1992 20:33:28 GMT

I understand that Amiga UNIX does not work on a 68040 equipped machine.  This
tid-bit of informtion is old, is it still true.  And if it is true, is anything
being done about it?
 
Gregor

Newsgroups: comp.unix.amiga,comp.sys.amiga.hardware
From: derek@cgrg.ohio-state.edu (Dariusz Bolski)
Subject: Re: 3'5'' 1GB IBM Hard disk and Amiga UNIX -- Problems?
Organization: OSU, Advanced Computing Center for Arts & Design
Date: Tue, 18 Aug 1992 07:16:24 GMT

In article <34398@cbmvax.commodore.com> mks@cbmvax.commodore.com (Michael Sinz) writes:
>sck@watson.ibm.com (Scott C. Kennedy) writes:
>>In article <1992Aug14.114625.10891@tom.rz.uni-passau.de>, hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) writes:
>>|> I consider to buy a ibm 3'5'' 1GB hard disk.
>                            ^^^^^
>
>I knew they made big drives, but 3 feet, 5 inches is *very* big!  ;^)

Might be he meant 5'3''? The drives for the Power Visualization Server
are about that size :-)... (If he considers buying them from IBM he
better sells his Ferrari :-))

>|      /// Michael Sinz  -  Senior Amiga Systems Engineer              |

Dariusz Bolski
----------------------------------------------------------------------------
Dariusz Bolski     Ohio Supercomputer Center, IBM POWER Visualization System
Systems Programmer Ohio State University , Columbus U.S.
                   The Advanced Computing Center For The Arts And Design
e-mail: derek@cgrg.ohio-state.edu  derek@osc.edu
____________________________________________________________________________

-- 
----------------------------------------------------------------------------
Dariusz Bolski     Ohio Supercomputer Center, IBM POWER Visualization System
Systems Programmer Ohio State University , Columbus U.S.
                   The Advanced Computing Center For The Arts And Design
From: abeech@kraken.itc.gu.edu.au (Adrian Beech)
Newsgroups: comp.unix.amiga
Subject: Build the kernel with gcc v2.2.2?
Keywords: AmigaUNix
Date: 22 Aug 92 13:51:11 GMT
Organization: ITC, Griffith University, Brisbane, Australia

Has anyone re-compiled the kernel using the gcc v2.2.2 compiler?  I have 
just re-built the thing but for some reason I can't seem to be able to 
make a test boot floppy.  I get "unbound sym[xxx]" errors when I issue
the "make floppy KERNEL=/usr/sys/unix" command.


-- 
Adrian V. Beech                              E-MAIL: A.Beech@ext.gu.edu.au
Newsgroups: comp.unix.internals
From: mpalmer@encore.com (Mike Palmer)
Subject: cd-ing to a dir using a process, then staying there on exit.
Date: Thu, 20 Aug 1992 12:36:15 GMT
Organization: Encore Computer Corporation

Can anyone suggest a way for a process to cd to a dir & stay there when the \
process exits.

I have a ksh solution using an alias, a script & the program, but I'd like
to do it just with a program, or at least a script & program than will work
under csh & ksh.

Any ideas gratefully accepted.

Newsgroups: comp.unix.internals
From: rsaripa@venus.cs.clemson.edu (Saripalli Ramakrishna)
Subject: Thanks to all those who replied But..............
Organization: Clemson University Computer Science Dept.
Distribution: na
Date: Fri, 21 Aug 1992 16:32:53 GMT

Hi,

	I really appreciate all those people who replied about the question
	I had regarding the read/write access of a socket for some
	related processes.

	What I really wanted was a sort of bus(say some channel) which all
	related processes could write/read from.

	One end of the bus could be set up by the parent before fork() but
	I am wondering how the other end could be set up.(It cannot be done
	by the children ,of course).

	I think I made the problem clear.Also it has to be some kind of socket.
	Also I feel that I need not use semaphores for the following segment
	could do it as well.

	......
	do {
	recv(sock_id,(char *) buffer,3 * sizeof(int),MSG_PEEK)
	while (buffer.proc_id != getpid());
	/*Now remove it from the stream using read()*/

	I feel that the above segment would do as well(though it is a waste
	of CPU cycles) because all the processes would be executing this
	code (or at least one process) and only the process for which this
	message was meant would read the data and all others would be still
	in the while loop.(Correct me if i am wrong)

	Now this to happen,all the children must be sharing a common bus
	or channel or whatever so that recv() would succeed on it.

	In the above program segment,the control data is 3 words long
	and the receiver's identity is in it(say process id or whatever).

	I would appreciate if anyone could tell me how I could do it?


						Thanks a lot,
					Saripalli Ramakrishna

e-mail : rsaripa@cs.clemson.edu
Man is a beast and usually has no control over his passions.
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.internals
Subject: Re: Socket to which related processes may read/write ?.
Date: 20 Aug 92 20:59:22 GMT
Distribution: na
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <1992Aug19.225324.21116@hubcap.clemson.edu> rsaripa@venus.cs.clemson.edu (Saripalli Ramakrishna) writes:
>	I would like to know if there is any way a socket can be established
>	by some ancestor so that all of its descendants might be able to
>	monitor the socket(channel) and be able to read/write from/to the
>	socket.

If the socket is opened by the ancestor before it forks the children, then
the children will inherit it (just like any other descriptors) and can use
it.

If the socket is opened after the children are spawned, you can use Unix
domain sockets to pass the socket access right to the children.  Stevens
has a section on passing access rights, although I've heard that it doesn't
work in all socket implementations.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: stuart@TIVOLI.COM (Stuart Jarriel)
Newsgroups: comp.unix.internals
Subject: insque/remque source
Date: 19 Aug 92 21:45:00 GMT
Organization: Tivoli Systems, Inc

I need the source to remque/insque to port to HPUX.
The kernel version of these has been stripped and I need
to be able to break on them in the debugger.

Thanks
stuart
Newsgroups: comp.unix.internals
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: Poll(), sleeping on several addresses
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Fri, 21 Aug 1992 11:44:45 GMT

In article <1992Aug20.191904.4567@candle.uucp>, root@candle.uucp (Bruce Momjian) writes:
> My AT&T Svr3.1 poll() only works on streams devices, which doesn't do me
> much good, so I am attempting to write my own poll() as a device driver.
> 

I think you're going to lose big here.  If you have the source to the
tty drivers then you'd stand a chance.  Poking around in other process's
u-areas and other driver's data structures is just not a good idea.

Perhaps you should just move the whole thing out into user mode?
Have a process polling the various tty's and get it to send up
that data to your other process over a socket which you can select on.

Solving your problems by kernel hacking is not always a _suitable_ solution.


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''

From: aakash@hpcupt3.cup.hp.com (Aakash Sahai)
Date: Thu, 20 Aug 1992 00:53:08 GMT
Subject: Re: Clearing memory in SVr3 device drivers
Organization: Hewlett Packard, Cupertino
Newsgroups: comp.unix.internals

> How do you clear out memory that is aligned in pages in a device driver
> under SVr3.1?  Either physical or virtual address clearing will do.
> -- 
> Bruce Momjian
> ----------

An efficient way to do this is to use bzero() kernel routine. It uses the
best possible method suited for a given architecure to clear out memory and
is normally written in assembly language to take advantage of special
instructions ( if any ) to perform the task efficiently. Moreover, most of
the implementations of bzero try to do as many aligned writes to memory as
possible as misaligned writes are costlier. Some of the implementations even
optimize the code to reduce the loop-overheads. In a nut-shell it is the best
way to clear memory given any arbitrary virtual address.

-- Aakash

S.D.A.
Newsgroups: comp.unix.internals
From: root@candle.uucp (Bruce Momjian)
Subject: Poll(), sleeping on several addresses
Organization: a consultant's basement
Date: Thu, 20 Aug 1992 19:19:04 GMT
X-Newsreader: Tin 1.1 PL5

My AT&T Svr3.1 poll() only works on streams devices, which doesn't do me
much good, so I am attempting to write my own poll() as a device driver.

I think I am almost ready to start coding.  I can pass the file
descriptors as a bit field to iocntrl(), and I can get the major/minor
numbers by going for the u-block -> file table -> inode table ->
s5inode.  I can get the addresses of the *_tty structure for the devices
I wish to support and read the c_count's.

The one thing I haven't figured out is how to sleep on multiple
addresses.  It seems drivers usually pick an address from a minor-number
'_tty' specific table to use as their sleep address.  

I would like my driver to wake up on any activity at a certain kernel
priority (link TTIPRI), or on a list of addresses I specify.  I would
then check the tty structures I am interested in and go back to sleep if
necessary.  Somehow I would have to be sure I woke up after the real
driver had processed the request.

Is multi-address wakeup or getting called after the real driver posssible?

-- 
Bruce Momjian                      |  830 Blythe Avenue
root%candle.uucp@bts.com           |  Drexel Hill, Pennsylvania 19026 
                                   |  (215) 353-9879(w)  853-3000(h)
Newsgroups: comp.unix.programmers,comp.unix.internals
From: clarkc@IMD.Sterling.COM (Clark Cheney)
Subject: looking for a way to tell a machines current state.
Organization: Sterling Software, IMD
Date: Wed, 12 Aug 1992 19:22:18 GMT
X-Md4-Signature: e58abfa16f956fd4e075ba6a75760e5e

I am looking for an easy way to tell the State of a machine (single or 
multiuser) from with in a process.

Does anyone now of a subroutine or system call or some file to check.  

I need to perform this check on two unix platforms: Sun's running Solaris 1.01
and DEC 5000 and 3100's runing ULTRIX 4.2A

Thanks in advance.


clark
-- 
Clark Cheney	             UUCP:     uunet!sparky!clarkc
Sterling Software IMD        INTERNET: clarkc@sparky.IMD.Sterling.COM
1404 Ft. Crook Rd. South     Phone:    (402) 291-8300 
Bellevue, NE. 68005-2969     FAX:      (402) 291-4362

Newsgroups: comp.unix.internals
From: root@candle.uucp (Bruce Momjian)
Subject: Clearing memory in SVr3 device drivers
Organization: a consultant's basement
Date: Tue, 18 Aug 1992 03:45:38 GMT
X-Newsreader: Tin 1.1 PL5

How do you clear out memory that is aligned in pages in a device driver
under SVr3.1?  Either physical or virtual address clearing will do.

I am currently writing 0's ints into the memory locations.  The memory
is 64k wide, so I figure there must be a better way.
-- 
Bruce Momjian                      |  830 Blythe Avenue
root%candle.uucp@bts.com           |  Drexel Hill, Pennsylvania 19026 
                                   |  (215) 353-9879(w)  853-3000(h)
Newsgroups: comp.unix.internals
From: ganesh@cs.albany.edu (Ganesh Murugesan)
Subject: Signals (Pl. ignore previous posting)
Originator: ganesh@karp.albany.edu
Organization: The University at Albany, Comp. Sci. Dept.
Date: Thu, 20 Aug 1992 17:59:00 GMT

Hi,

	I have a question regarding signals.

        I have a process that is tracing a child process (ptrace 
has been set). When the child is stopped, now all the signals  of
the child are received by the parent. 

	when the child process is continued by the parent using
the ptrace call (PTRACE_CONT), I would like the child process to
receive all its signals again rather than going to the parent. How
do U do that ?

Ganesh

Email - ganesh@cs.albany.edu





Newsgroups: comp.unix.internals
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: cd-ing to a dir using a process, then staying there on exit.
Originator: tchrist@pixel.convex.com
Date: Thu, 20 Aug 1992 13:38:25 GMT
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: Convex Computer Corporation, Colorado Springs, CO
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

From the keyboard of mpalmer@encore.com (Mike Palmer):
:Can anyone suggest a way for a process to cd to a dir & stay there when the \
:process exits.
:
:I have a ksh solution using an alias, a script & the program, but I'd like
:to do it just with a program, or at least a script & program than will work
:under csh & ksh.

1. Learn how to crosspost.
2. RTFFAQ.

--tom
-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist


    "We don't care.  We don't have to.  We're the Phone Company."
From: srini@hpcuhe.cup.hp.com (Sreenivasa R Tellakula[C])
Date: Fri, 21 Aug 1992 22:44:59 GMT
Subject: Re: Signals (Pl. ignore previous posting)
Organization: Hewlett Packard, Cupertino
Newsgroups: comp.unix.internals

the ptrace call (PTRACE_CONT), I would like the child process to
receive all its signals again rather than going to the parent. How

Ganesh

Email - ganesh@cs.albany.edu
----------

when the child is under trace, all the signals meant for child
will go to the parent and the child enters stop state.

when you call ptrace with option 7 (resume execution), the
child will continue execution and the pending signals
are delivered to the child, which may make the child
enter stopped state again. 

you can explicitly send a signal apart from the pending signal
to the child by setting the data field to the valid signal 
number. this signal is delivered ahead of the pending signals.


-- tsr
Newsgroups: comp.unix.internals
From: swhite@tybse1.uucp (William C. "Spike" White)
Subject: Re: how to get localhost's IP address?
Organization: Tybrin Corporation, Shalimar, FL
Date: Mon, 10 Aug 1992 15:55:53 GMT

In article <JIM.92Aug7125721@hunter.cs.strath.ac.uk> jim@cs.strath.ac.uk (Jim Reid) writes:
>In article <MAKI.92Aug7110206@void.jit.dec.com> maki@jit.dec.com (Watanabe Maki) writes:
>
>   In article <93040@bu.edu> tasos@cs.bu.edu (Anastasios Kotsikonas) writes:
>
>   > does anyone know how to obtain the IP address of the local host (not
>   > 127.0.0.1, but given the the host name how do you get the internet address)?
>
>   Use gethostname() + gethostbyname().
>
>But what if your machine has more than 1 network interface (=> more
>than 1 IP address)? A call to gethostbyname works when there is only
>one network interface, since there can only be one IP address bound to
>it. If the machine has more than 1 network interface, you'll need to
>use the SIOCGIFADDR ioctl on each interface.
>
>		Jim

gethostname() + gethostbyname() should still work.  The reason is that
the gethostbyname function returns a pointer to a hostent structure.
This structure looks like this:

struct	hostent {
	char	*h_name;	/* official name of host */
	char	**h_aliases;	/* alias list */
	int	h_addrtype;	/* host address type */
	int	h_length;	/* length of address */
	char 	**h_addr_list;  /* <<<-----------    */
#define h_addr	h_addr_list[0]
};

h_addr_list is really an array of pointers to in_addr structures (i.e., 
4-byte IP addresses).  h_addr_list is terminated w/ a NULL entry. 

This was done specifically to deal w/ multi-homed hosts.

For more info, look at the "bible" of UNIX Network programming; i.e.,  
W. Richard Stevens, UNIX Network Programming, p. 393.

-- 
Spike White     Tybrin Corporation, Shalimar, FL | Moderation in all things --
swhite@afseo.eglin.af.mil                        | and abstinence in none! 
Disclaimer: I speak only for myself, not my employer. 
Newsgroups: comp.unix.internals
From: dbrillha@dave.mis.semi.harris.com (Dave Brillhart)
Subject: Re: kill <exiting> processes
Date: Tue, 18 Aug 1992 13:28:19 GMT
Reply-To: dbrillha@dave.mis.semi.harris.com (Dave Brillhart)
Organization: Harris Semiconductor

>>Does anyone know how to kill off "easily that is" these 
>>kinds of processes short of rebooting the machine.  They
>>are on a decstation 5000 and have been there for days.
>>I have tried kill -9 (process id) but that does work

<exiting> processes are simply waiting for their parent to
reap them. One way to release their souls (remove the zombie)
is to kill their parents - the OS then reappoints PID 1
as the zombie's parent. INIT (pid 1) will quickly reap the
zombie processes.

For some reason, the original parent ignored the SIGCHLD signals
that alereted it that it's children died. You might want to check
the code if you have it.

--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Dave Brillhart                              Harris Semiconductor
 dbrillha@dave.mis.semi.harris.com           Mail Stop 62A-024
 Voice: (407) 729-5430                       P.O. Box 883
 Fax:   (407) 724-7486                       Melbourne, FL 32902-0883
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Newsgroups: comp.unix.internals,comp.unix.sysv386
From: gpitcher@crash.cts.com (Glenn Pitcher)
Subject: SIGKILL problem in Interactive 3.2?
Date: 14 Aug 92 12:46:09 PDT
Keywords: SIGKILL Interactive

We're running Interactive SVR3 here on an Edge 433/SE and I've been finding  
that sending a SIGKILL to a process doesn't always do as it advertises.

For instance, I have one job that is recycled each night.  It's first 
terminated by using 'kill -9 <pid>'.  Most of the time it works but last
night the job was in a infinate loop trying to kill this thing off.  Another
example is a little script that kills users off just before I perform a 
system backup at 0200.  Here I also use kill -9 (I know it's crude) and it
works... most of the time.

I have seen things like this happen before (such as with zombies under BSD)
but not to this extent.

Also, occasionally, my backup job (which is started by cron) simply sits
in the process queue sawing logs (asleep :-) ).  Nothing I do will wake it
up and I have absolutly no idea as to why my system is doing this.  I even
tried sending a SIGCONT but the kill command doesn't recognize it! Geezzz.

Can anyone (Sun, are you listening?) give me some input?

Thanks
From: roth@ordin.cs.wisc.edu (Bill Roth)
Newsgroups: comp.unix.internals
Subject: measuring memory usage
Date: 17 Aug 92 20:41:40 GMT
Organization: U of Wisconsin Madison - Computer Sciences


Hi.

Is there any simple way to measure the memory a process uses from
within the process at certain benchmark points? I do not want to set
up counters at every malloc. I merely want to see the change in memory
usage after some operation has occurred.

Please email your replies.
--

-------------------------------------------------------------------
Bill Roth, University of Wisconsin Computer Sciences Dept.
Internet: roth@cs.wisc.edu. BITNET: ROTH@WISCPSL. HEPNET: PSL::ROTH
Newsgroups: comp.unix.internals
From: kardanev@hanoi.cern.ch (A. Kardanev)
Subject: Re: kill <exiting> processes
Organization: CERN, European Research Center for Particle Physics
	<1992Aug18.132819.23117@mlb.semi.harris.com>
Date: Tue, 18 Aug 1992 15:13:51 GMT


>>>>> On Tue, 18 Aug 1992 13:28:19 GMT,
>>dbrillha@dave.mis.semi.harris.com (Dave Brillhart) said: Does anyone
>>know how to kill off "easily that is" these kinds of processes short
>>of rebooting the machine.  They are on a decstation 5000 and have
>>been there for days.  I have tried kill -9 (process id) but that
>>does work

|> <exiting> processes are simply waiting for their parent to reap
|> them. One way to release their souls (remove the zombie) is to kill
|> their parents - the OS then reappoints PID 1 as the zombie's
|> parent. INIT (pid 1) will quickly reap the zombie processes.

Hmm... From man page about ps(1):
     A process that has a parent and has exited, but for which the parent has
     not yet waited, is marked <defunct>.  A process that is blocked trying
     to exit is marked <exiting>. The ps command determines the filename and
     arguments given when the process was created by examining memory or the
     swap area.  The method is unreliable because, for example,  a process
     can destroy this information. The filename and arguments ps displays
     might be incorrect.
--
-------------------------------------------------------------------------
 KARDANEV Alexandre			| SL Division
 Email: kardanev@hanoi.cern.ch		| Building 864, 1-A02
 Work:    + 41-22-767-5158		| CERN 1211 Geneva 23
	  + 41-22-767-5165		| Switzerland
 Home:	  + 33-50-42-95-77		|
-------------------------------------------------------------------------
Newsgroups: comp.unix.internals,comp.unix.programmer
From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: PD Streams pty implementation
Organization: Digital Equipment Corporation - Paris Research Laboratory
Date: Wed, 19 Aug 1992 22:01:10 GMT

In article <1992Aug19.171624.3598@candle.uucp>, root@candle.uucp (Bruce Momjian) writes:
> I just installed a PD non-streams pty implementation that works quite
> well, but you can't poll() on the pty's, which can be a problem.  My
> poll() only works on streams, and I have no select().
> 

I think you've just uncovered another marvellous implementation detail
of System V.3;  you can't poll a socket and you can't select a stream.

System V -- the last word in interoperability.


Boyd Roberts			boyd@prl.dec.com

``When the going gets wierd, the weird turn pro...''
Newsgroups: comp.unix.internals