🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Mark G. Thomas Thu, 28 Aug 1997 00:00
diablo with Solaris ?
#21022
Author: Mark G. Thomas
Date: Thu, 28 Aug 1997 00:00
14 lines
611 bytes

Hi,

Has anyone successfully compiled Diablo under Solaris-2.5.1?

-Mark



-- 
Mark Thomas (Mark@Misty.com)

Re: diablo with Solaris ?
#21014
Author: Russ Allbery
Date: Thu, 28 Aug 1997 00:00
21 lines
1437 bytes
Matt Dillon <dillon@best.net> writes:

>     I've had one person email me with problems, all related to the fact
>     that he didn't have the BSD compatibility libraries/includes on his
>     solaris box (Frankly, it might as well be called 'UNIX'
>     compatibliity for all the functionality that is lost by not having
>     it.  Sigh).

Er.  Do you mean libucb?  If so, that library is buggy as hell and should
never be used if at *all* possible to avoid it.  It also shouldn't be
necessary to use it for any well-written, portable C code.  What are you
needing it for?

(If it's the b*() memory functions, they were added back in in recent
versions of Solaris.)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: diablo with Solaris ?
#21017
Author: Jeff Garzik
Date: Thu, 28 Aug 1997 00:00
19 lines
820 bytes
Mark G. Thomas <mark@misty.com> wrote:
>Hi,
>Has anyone successfully compiled Diablo under Solaris-2.5.1?


Hi,

Yes.

	Jeff



-- 
Often statistics are used as a drunken man uses lampposts -- for support
rather than illumination.

Re: diablo with Solaris ?
#21036
Author: Chris Bellomy
Date: Thu, 28 Aug 1997 00:00
19 lines
935 bytes
Jeff Garzik (jgarzik@pobox.com) wrote:
: Mark G. Thomas <mark@misty.com> wrote:
: >Hi,
: >Has anyone successfully compiled Diablo under Solaris-2.5.1?
: 
: 
: Hi,
: 
: Yes.

Me three.

-- 
Chris Bellomy				FlashNet Communications
Manager of Server Operations		Fort Worth, Texas
cbellomy@flash.net			(817)332-8883

Re: diablo with Solaris ?
#21058
Author: Matt Dillon
Date: Thu, 28 Aug 1997 00:00
42 lines
2189 bytes
:In article <5u4qi0$h2t@excalibur.flash.net>,
:Chris Bellomy <cbellomy@flash.net> wrote:
:>Jeff Garzik (jgarzik@pobox.com) wrote:
:>: >Has anyone successfully compiled Diablo under Solaris-2.5.1?
:>: 
:>: 
:>: Hi,
:>: 
:>: Yes.
:>
:>Me three.
:>
:>-- 
:>Chris Bellomy				FlashNet Communications
:>Manager of Server Operations		Fort Worth, Texas
:>cbellomy@flash.net			(817)332-8883

    I've had one person email me with problems, all related to the fact
    that he didn't have the BSD compatibility libraries/includes on his
    solaris box  (Frankly, it might as well be called 'UNIX' compatibliity
    for all the functionality that is lost by not having it.  Sigh).

    I've got a question for solaris programmers:  Does solaris support
    PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON mmaps?  i.e. shared r+w
    anonymous (e.g. swap-backed rather then file-backed) mmaps that stay 
    shared across a fork.

    I'm desparately trying to avoid using sys-v shared memory calls but it's
    a losing battle.  They seem to be the only thing that is actually 
    implemented correctly across a wide range of platforms so I'm probably
    going to make it an option for diablo's private caches (the precommit
    cache and the spam cache).  I've got some really cool performance
    improvements coming for the next release... the biggest being the use
    of the precommit cache as a recent-dhistory-commit/hit cache to offload
    the dhistory file (which is diablo's biggest bottleneck right now).

					-Matt



Re: diablo with Solaris ?
#21079
Author: Andrew Gordon
Date: Fri, 29 Aug 1997 00:00
20 lines
1703 bytes
Matt Dillon wrote:
>     I'm desparately trying to avoid using sys-v shared memory calls but it's
>     a losing battle.  They seem to be the only thing that is actually
>     implemented correctly across a wide range of platforms so I'm probably
>     going to make it an option for diablo's private caches (the precommit
>     cache and the spam cache).  I've got some really cool performance
>     improvements coming for the next release... the biggest being the use
>     of the precommit cache as a recent-dhistory-commit/hit cache to offload
>     the dhistory file (which is diablo's biggest bottleneck right now).

Note that while SYSVSHM is indeed quite portable, it has its own
limitations;
in particular you might not get very much of it - a couple of Mbyte is
not uncommon as a default, and even if it is a kernel tunable you often
can't tune it all that big.  Also worth noting is that the platforms
with the most restricted SYSVSHM (SCO v4 comes to mind) are also those
that don't do mmap().

Re: diablo with Solaris ?
#21083
Author: Rahul Dhesi
Date: Fri, 29 Aug 1997 00:00
13 lines
1215 bytes
In <5u5524$ajo$1@flea.best.net> dillon@best.net (Matt Dillon) writes:

>    I'm desparately trying to avoid using sys-v shared memory calls but it's
>    a losing battle.  They seem to be the only thing that is actually 
>    implemented correctly across a wide range of platforms...

Would it be fast enough to implement all shared-memory operations by
sending messages to a server process?  If so, it gets you portability.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Re: diablo with Solaris ?
#21095
Author: Andrew Gierth
Date: Fri, 29 Aug 1997 00:00
13 lines
1126 bytes
>>>>> "Matt" == Matt Dillon <dillon@best.net> writes:

 Matt> I wish kernel writers would implement MAP_ANON mmap()'s, I
 Matt> like them whole lot better then shmat().

What platforms are you aware of that have neither MAP_ANON nor the
usual mmap /dev/zero trick?

-- 
Andrew.

Re: diablo with Solaris ?
#21108
Author: Casper H.S. Dik - Network Securi...
Date: Sat, 30 Aug 1997 00:00
31 lines
1636 bytes
[[ Mail or post, don't do both ]]

sthaug@nethelp.no (Steinar Haug) writes:

>[Matt Dillon]

>|       I've got a question for solaris programmers:  Does solaris support
>|       PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON mmaps?  i.e. shared r+w
>|       anonymous (e.g. swap-backed rather then file-backed) mmaps that stay 
>|       shared across a fork.

>Nope. No MAP_ANON:

>You may be able to get the desired effect by mmap'ing /dev/zero, though.


Yes, he will be able.

Solaris uses /dev/zero instead of MAP_ANON.

MAP_SHARED from /dev/zero works as you'd expect.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

Re: diablo with Solaris ?
#21255
Author: John Henders
Date: Wed, 03 Sep 1997 00:00
19 lines
1461 bytes
In <5u5524$ajo$1@flea.best.net> dillon@best.net (Matt Dillon) writes:

>    I'm desparately trying to avoid using sys-v shared memory calls but it's
>    a losing battle.  They seem to be the only thing that is actually 
>    implemented correctly across a wide range of platforms 

Unless things have changed, BSDI up to 2.1 didn't have a very good shm
implementation. According to the man page it was implemented as part of
their iBCS2 compatability library, and it definately didn't work with
the shared memory active file patch that was around a long time ago.

--
  Artificial Intelligence stands no chance against Natural Stupidity.
            GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
                 b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads