🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Dave Pifke Mon, 24 Nov 1997 00:00
Diablo 1.14 silently fails
#23595
Author: Dave Pifke
Date: Mon, 24 Nov 1997 00:00
16 lines
958 bytes
Just tried to upgrade from Diablo 1.13 to 1.14 under Solaris 2.5 x86.

Everything compiled OK and I made the configuration file changes.  When
Diablo starts up, however, it immediately exits.  I ran truss against
it, and whatever is going wrong is happening after it forks.  Nothing is
logged to syslog or displayed on the screen.

Ideas?  Anyone else have this problem and solve it?


--
Dave Pifke, dpifke@slip.net
Slip.Net Sr. System Administrator

Re: Diablo 1.14 silently fails
#23575
Author: Brett Hawn
Date: Mon, 24 Nov 1997 00:00
36 lines
1684 bytes
and if you have your syslog configured correctly it even tells you that its
failing and why :)

On Mon, 24 Nov 1997 21:02:15 +0000, Dale Ghent <daleg@digex.net> wrote:
>Dave Pifke wrote:
>> 
>> Just tried to upgrade from Diablo 1.13 to 1.14 under Solaris 2.5 x86.
>> 
>> Everything compiled OK and I made the configuration file changes.  When
>> Diablo starts up, however, it immediately exits.  I ran truss against
>> it, and whatever is going wrong is happening after it forks.  Nothing is
>> logged to syslog or displayed on the screen.
>> 
>> Ideas?  Anyone else have this problem and solve it?
>
>Per Matt's earlier ost, put the following lines in lib/verdor.h:
>
>#undef USE_SPAM_SHM
>#define USE_SPAM_SHM	1
>
>Recompile, and you should be good to go. dialbo will seg fault on
>startup without that being defined.
>
>		-Dale G.
>
>-- 
>Dale Ghent                        daleg @ digex.net
>NetworkNews Administrator             DIGEX, Inc.
>http://www.digex.net                Beltsville, MD
>                    I speak for myself


-- 

Re: Diablo 1.14 silently fails
#23580
Author: Dale Ghent
Date: Mon, 24 Nov 1997 00:00
29 lines
1402 bytes
Dave Pifke wrote:
> 
> Just tried to upgrade from Diablo 1.13 to 1.14 under Solaris 2.5 x86.
> 
> Everything compiled OK and I made the configuration file changes.  When
> Diablo starts up, however, it immediately exits.  I ran truss against
> it, and whatever is going wrong is happening after it forks.  Nothing is
> logged to syslog or displayed on the screen.
> 
> Ideas?  Anyone else have this problem and solve it?

Per Matt's earlier ost, put the following lines in lib/verdor.h:

#undef USE_SPAM_SHM
#define USE_SPAM_SHM	1

Recompile, and you should be good to go. dialbo will seg fault on
startup without that being defined.

		-Dale G.

-- 
Dale Ghent                        daleg @ digex.net
NetworkNews Administrator             DIGEX, Inc.
http://www.digex.net                Beltsville, MD
                    I speak for myself

Re: Diablo 1.14 silently fails
#23605
Author: Nate Shockey
Date: Mon, 24 Nov 1997 00:00
26 lines
1399 bytes
Dave Pifke wrote:
> 
> Just tried to upgrade from Diablo 1.13 to 1.14 under Solaris 2.5 x86.
> 
> Everything compiled OK and I made the configuration file changes.  When
> Diablo starts up, however, it immediately exits.  I ran truss against
> it, and whatever is going wrong is happening after it forks.  Nothing is
> logged to syslog or displayed on the screen.
> 
> Ideas?  Anyone else have this problem and solve it?
> 
> --
> Dave Pifke, dpifke@slip.net
> Slip.Net Sr. System Administrator


	Yeah, I have been having this problem, too.  I wrote Matt about it,
but I haven't heard anything yet.  Anyway out there gotten it to
compile under Solaris?  Solaris x86 does the same thing. ;)
	
____ _______					__________________
Nate Shockey					underdog@flash.net	
News Administrator				FlashNet Communications

Re: Diablo 1.14 silently fails
#23616
Author: Dave Pifke
Date: Mon, 24 Nov 1997 00:00
38 lines
1866 bytes
Dave Pifke wrote:

> Just tried to upgrade from Diablo 1.13 to 1.14 under Solaris 2.5 x86.
> 
> Everything compiled OK and I made the configuration file changes.
> When Diablo starts up, however, it immediately exits.  I ran truss
> against it, and whatever is going wrong is happening after it forks.
> Nothing is logged to syslog or displayed on the screen.

OK, I set USE_SPAM_SHM as was suggested by Dale Ghent, however the
problem persists.

After some digging, it turns out that openlog() is called _after_
InitSpamFilter(), so the syslog() functions within that routine are
ineffective.  Moving the openlog() function (or changing syslog() to
fprintf()) causes the problem to be logged:

  sysv shared memory alloc failed

shmget() is failing, returning EINVAL.  From the shmget(2) man page:

  EINVAL         size is less than the system-imposed  minimum
                 or greater than the system-imposed maximum.

  EINVAL         A shared memory identifier exists for key but
                 the size of the segment associated with it is
                 less than size and size is not equal to zero.

Having no experience writing SYSV shared memory code, this is where I
defer to Matt's experience and wisdom. :-)


--
Dave Pifke, dpifke@slip.net
Slip.Net Sr. System Administrator

Re: Diablo 1.14 silently fails
#23622
Author: Nate Shockey
Date: Mon, 24 Nov 1997 00:00
28 lines
1460 bytes
Dale Ghent wrote:
> 
> Dave Pifke wrote:
> Per Matt's earlier ost, put the following lines in lib/verdor.h:
> 
> #undef USE_SPAM_SHM
> #define USE_SPAM_SHM    1
> 
> Recompile, and you should be good to go. dialbo will seg fault on
> startup without that being defined.
> 
>                 -Dale G.

	That's the thing, though.  _Before_ you make this change, it seg
faults.  After you make this change, it doesn't do _anything_.  At
least not for me (and I've managed to succesfully compile every
version so far).  
	It doesn't core dump, it doesn't do _anything_.  It exists
normally--almost immediately, but never actually starts.  I don't know
what to do, but I'm having to stick with 1.13 until I can figure it
out. :(
 
____ _______					__________________
Nate Shockey					underdog@flash.net	
News Administrator				FlashNet Communications

Re: Diablo 1.14 silently fails [FIXED]
#23630
Author: Michael W Peterson
Date: Tue, 25 Nov 1997 00:00
48 lines
2311 bytes
On Mon, 24 Nov 1997 18:40:39 -0600, <underdog@flash.net> wrote:
>Dale Ghent wrote:
>> 
>> Dave Pifke wrote:
>> Per Matt's earlier ost, put the following lines in lib/verdor.h:
>> 
>> #undef USE_SPAM_SHM
>> #define USE_SPAM_SHM    1
>> 
>> Recompile, and you should be good to go. dialbo will seg fault on
>> startup without that being defined.
>> 
>>                 -Dale G.
>
>	That's the thing, though.  _Before_ you make this change, it seg
>faults.  After you make this change, it doesn't do _anything_.  At
>least not for me (and I've managed to succesfully compile every
>version so far).  
>	It doesn't core dump, it doesn't do _anything_.  It exists
>normally--almost immediately, but never actually starts.  I don't know
>what to do, but I'm having to stick with 1.13 until I can figure it
>out. :(
> 

We found what the problem was, at least on our system. (Would have happened
sooner if the test box had syslog.conf entries for news.*. *mutter*) The
shmget for the spamfilters was failing with EINVAL. Seems the 1.75 megs
diablo was trying to allocate was more than the max size for Solaris 2.5.1.
Found this in /etc/system on a different box that had ACE installed, added it
to /etc/system on the diablo test box, rebooted and life was good.

Added to /etc/system:
set shmsys:shminfo_shmmni = 100
set shmsys:shminfo_shmseg = 16
set shmsys:shminfo_shmmax = 16777216

The shmsys:shminfo_shmmax is the critical one. Figured the other two to be
a good idea.

YMMV. HTH. HAND.

-- 
Michael W Peterson                      <http://www.flash.net/~michael/>
Chief System Administrator              FlashNet Communications
Unix: more than enough rope...

Re: Diablo 1.14 silently fails [FIXED]
#23664
Author: Matt Dillon
Date: Tue, 25 Nov 1997 00:00
34 lines
1686 bytes
   Arg!  

   Thanks for tracking this down.  Serves me right for not exiting diablo
   out if the shm call failed.

   Sheesh, I wish SUN would put more reasonable system defaults in.   I'll
   add some notes to my TUNING_NOTES file.  If you know how to increase
   the system-wide and per-process file descriptor limits under Solaris,
   i'd appreciate an email: i'll add that to the tuning notes as well.

						-Matt

:In article <65ddhj$hv6$1@excalibur.flash.net>,
:Michael W Peterson <michael@flash.net> wrote:
:>
:>Added to /etc/system:
:>set shmsys:shminfo_shmmni = 100
:>set shmsys:shminfo_shmseg = 16
:>set shmsys:shminfo_shmmax = 16777216
:>
:>The shmsys:shminfo_shmmax is the critical one. Figured the other two to be
:>a good idea.
:>
:>YMMV. HTH. HAND.
:>
:>-- 
:>Michael W Peterson                      <http://www.flash.net/~michael/>
:>Chief System Administrator              FlashNet Communications
:>Unix: more than enough rope...



Re: Diablo 1.14 silently fails [FIXED]
#23668
Author: Mike Wilson
Date: Tue, 25 Nov 1997 00:00
198 lines
7277 bytes
Michael W Peterson wrote:
> 
> We found what the problem was, at least on our system. (Would have happened
> sooner if the test box had syslog.conf entries for news.*. *mutter*) The
> shmget for the spamfilters was failing with EINVAL. Seems the 1.75 megs
> diablo was trying to allocate was more than the max size for Solaris 2.5.1.
> Found this in /etc/system on a different box that had ACE installed, added it
> to /etc/system on the diablo test box, rebooted and life was good.
> 
> Added to /etc/system:
> set shmsys:shminfo_shmmni = 100
> set shmsys:shminfo_shmseg = 16
> set shmsys:shminfo_shmmax = 16777216
> 
> The shmsys:shminfo_shmmax is the critical one. Figured the other two to be
> a good idea.


Here is some additional information I got while checking my sun-managers
list on this subject:

> Thanks to all.  I was trying to determine the current shared memory status, and
> how to change their values.
> 
> Original question:
> --------------------
> 
> Do you know how to determine what the current value settings are for
> the following:
> 
> shmsys:shminfo_shmmni
> shmsys:shminfo_shmseg
> shmsys:shminfo_shmmax
> shmsys:shminfo_semmni
> shmsys:shminfo_semmsl
> shmsys:shminfo_semmns
> shmsys:shminfo_semmnu
> 
> I have checked the /etc/system file and there are no entries for the 
> above, I assume that means the system is runing the defaults. What are
> the defaults? I used the command sysdef and some of the above are listed
> but, with the value 0. Does that mean the default is 0 or 0 represents
> some default? How do I find out what the actual default values are?
> Any help on this would be appreciated.
> 
> 
> Responses:
> -------------------
> 
> 
> 
> Response #1 -- Deepak_D_Wilson@notes.seagate.com
> Hope this article helps you:-
> 
> The solaris 2.X kernel comes configured with defaults for shared memory
> parameters which may not be enough for large applications, such as databases.
> Many database manufacturers, such as Oracle, Sybase and Informix
> require that shared memory parameters be increased to handle their
> system.  In general, any program which makes shared memory system
> service calls will be affected.  
> 
> Here are the shared memory parameters, what they are, what their default
> values are, and what they represent.  Please note that the maxima listed
> here are based on values which will fit into their datatype, which is a
> (4-byte) integer, and are not realistic.  Realistic maxima are not easily
> figured, as they must account for many factors, including the amount of
> kernel memory required by everything else on the system, and the
> amount of memory the system has.
> 
> shmmax          1048576 (1Meg)            2147482647
> 
> This is the maximum size of a shared memory segment, or the largest
> value which can be requested of shmget(2).  Setting this value high
> does not hurt anything as the resource it controls is not
> preallocated, but rather is allocated on demand. 
> 
> shmmin          1                             2147482647
> 
> This is the minimum size of a shared memory segment.  There is no need
> to change this from the  default, as doing so will only break code
> which allocates less than the new shmmin value allows.
> 
> shmseg          6                              2147482647
> 
> This is the maximum number of shared memory segments per process.  It
> is used as a high limit, which is checked before another segment is
> allocated. No resources are preallocated based on its value.
> 
> shmmni          100                           2147482647
> 
> This is the maximum number of shared memory identifiers that can exist
> systemwide.  Every shared memory segment has an associated identifier,
> returned from shmget().  Resources are preallocated based on this
> value, (112 bytes of kernel memory per identifer) so don't set it too high.
> 
> Shared memory parameters are changed by editing the /etc/system file with
> lines of the form:
> 
>   set shmsys:shminfo_variable = value
> 
> For example:
> 
>   set shmsys:shminfo_shmmni = 150
> 
> to change shmmni to 150.
> 
> After changing the /etc/system file, reboot the system to have it take
> effect.
> 
> All InterProcess Communication (IPC) parameters, including those for shared
> memory, are checked by doing the following:
> 
>   $ sysdef -i
> 
> Look toward the bottom of the output, for something like:
> 
> *
> * IPC Shared Memory
> *
> 1048576 max shared memory segment size (SHMMAX)
>      1  min shared memory segment size (SHMMIN)
>    100  shared memory identifiers (SHMMNI)
>      6  max attached shm segments per process (SHMSEG)
> 
> The values at the left will reflect the values set in the /etc/system file.
> If the values are zeros, load the shared memory module and try sysdef -i
> again.
> Do the following to load the shared memory module:
> 
>   # modload /kernel/sys/shmsys
> 
> 
> Response #2 -- Carlo Cosolo <ccosolo@ulti.net>
> 
> Carlo suggested I call SecurID tech support, as he had problems with their
> parameters and Sol 2.5.
> 
> Response #3 -- Ju-Lien Lim <julienlim@rocketmail.com>
> 
> man sysdef
> 
> Response #4 -- jyoung@educate.com
> 
> man ipcs
> 
> Response #5 -- Glenn Satchell - Uniq Professional Services
> <Glenn.Satchell@uniq.com.au>
> 
> You can inspect the current value in th ekernel using adb:
> 
> # adb -k
> physmem 3e40
> shminfo_shmmni/D
> symbol not found
> ^D
> #
> 
> This means that this system is not using _any_ shared memory stuff as
> the modules haven't even been loaded.
> 
> If you already have these values configured then just use the larger of
> the two values (securid recommendation or current).
> 
> 
> Response #6 -- "K.Ravi" <RAVKRISH.IN.oracle.com.ofcmail@in.oracle.com>
> 
> Hi, 
>  In Solaris, the shared memory module (or any other driver/module for that 
> matter) is not loaded into memory unless some process needs it. To know the 
> defaults, run 'modload /kernel/sys/shmsys' as root and then run 'sysdef'. If 
> sysdef doesn't report all the values, try this: 
> # adb -k /dev/ksyms /dev/mem 
>  
> shmifno_shmmax/D 
>  
> shminfo_shmseg/D 
>  
> .. 
> . 
>  
> $q 
> #  
> 

-- 

---
Mike Wilson

To defeat the spam attacks I've decided to place the email
addresses I've been forwarding all my spam to in the hopes
that the spammers will send it directly to them. So, in no
peticular order: no-spam@flash.net, abuse@flash.net, 
scott@flash.net, postmaster@flash.net, 
leethur@flash.net, root@flash.net

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