Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* raid 1 and nfs
@ 2003-01-03 19:46 Nelson Brito
  2003-01-03 20:59 ` James Fowler
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Nelson Brito @ 2003-01-03 19:46 UTC (permalink / raw)
  To: RH alpha list

Hi,
First i want to wish a very nice 2003 for all of
you! and to apologize because the post is not
specific for alpha (in fact i'm implementing this
on an intel machine) but it's linux related in general.

I want to build a file server (with nfs) and i'd like
to use raid to mirror the disks (raid 1), but i read
somewhere that this was not a very good ideia (use nfs
on top of raid) is this true or it was just something
that i misunderstood (i can't find the document anymore)?

can you please give some advice?

regards, nelson

-- 

Nelson Brito
Dept. de Quimica      |
Faculdade de Ciencias | tel. +351226082841
R. Campo Alegre, 687  | fax  +351226082959
4169-007 Porto        |




^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Porting siocons to Alpha
@ 2003-01-05 18:09 Robert M. Riches Jr.
  2003-01-06  1:01 ` Richard Billingham
  0 siblings, 1 reply; 17+ messages in thread
From: Robert M. Riches Jr. @ 2003-01-05 18:09 UTC (permalink / raw)
  To: axp-list

> From: Richard Billingham <richard@billingham.co.uk>
> Date: Sun, 5 Jan 2003 17:53:58 +0000 (GMT)
>
> I've got a program called siocons
> (http://www.identicalsoftware.com/yaroze/siocons.tgz)
> that's used to transfer data via the serial port to a programmable playstation.
> The program functions correctly under Linux/Intel, but hangs when I try to use it on my Alpha
> box. I'm assuming this means that programming differences on the two
> platforms are preventing it from working correctly. My programming skills
> are limited, but I found a page stating that some programs assume a long
> is 32 bits. With this in mind, I replaced all instances of long with
> u_int32_t, but to no avail!
>
> Can you offer any pointers which could help me get this program working?

Actually, much if not most of the problem with many of these
programs is abuse of pointers.  Some poor programmers seem to
think a pointer can be stuffed into an 'int', not realizing
the potential for size and other issues.

With some of these problematic programs, the -taso compiler
switch helps a great deal.  This switch is not always documented
in man pages.  IIRC, usage messages are more reliable about
this switch than the man pages.  It is sometimes necessary to
prefix the -taso switch to the linker by wrapping it in another
switch.  I don't remember off the top of my head the exact
syntax.

Another thing that helps is the personality() call.  If you
call it early the program, later calls to malloc() and friends
will keep pointer values within the lower 2GB of address space,
which works around the problem of the program stuffing a pointer
into an int, at least if you're lucky.  IIRC, the argument to
pass is PER_LINUX_32BIT.  There are other values if the program
was written with other problematic assumptions.

Be careful with signed vs. unsigned.  Changing an unqualified
'long' to 'u_int32_t' could cause issues, because if I understand
correctly the former is signed while the latter is unsigned.
(Please disregard if this is not wrong.)

There is hope, given a fair amount of luck.  The -taso switch
and the personality(PER_LINUX_32BIT) call were sufficient
(along with fixing a buggy configuration script) to make Squeak
work on Alpha.  Squeak is a Smalltalk implementation that is
extremely stuck on the notion that the whole world is 32 bits
wide.  Every object reference slash pointer in the whole system
is crammed into 32 bits.

Good luck.

Robert Riches
rm.riches@verizon.net




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2003-01-16 21:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 19:46 raid 1 and nfs Nelson Brito
2003-01-03 20:59 ` James Fowler
2003-01-04  5:55 ` Maurice Hilarius
2003-01-05 17:53 ` Porting siocons to Alpha Richard Billingham
2003-01-05 20:06   ` Falk Hueffner
2003-01-06 16:03   ` Jay Estabrook
2003-01-07 23:27     ` Richard Billingham
2003-01-08  2:04   ` Stiring the Alpha pot William H. Magill
2003-01-08  3:27     ` Michael Huntingdon
2003-01-08  5:37       ` axp
2003-01-08 17:55         ` William H. Magill
2003-01-08 19:34           ` Ted Goodridge, Jr
2003-01-08 20:28             ` Ted Goodridge, Jr
2003-01-09  0:38           ` Maurice Hilarius
2003-01-16 21:35       ` WWID vs UUID William H. Magill
  -- strict thread matches above, loose matches on Subject: below --
2003-01-05 18:09 Porting siocons to Alpha Robert M. Riches Jr.
2003-01-06  1:01 ` Richard Billingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox