Re: Sun PC NetLink

From: Eric Horne (eric.horne@std.teradyne.com)
Date: Thu Nov 07 2002 - 12:33:05 EST


Thanks to those who responded (Julie Peers/Anton Kaifel).

For the enlightenment of those folks out there, here is what I found out.

Sun PC NetLink makes the server look so much like a Windows box, that it
actually has a Windows registry! The 'ustructs' setting is in there at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AdvancedServer\ProcessParameters\NumUStructs

All you need to do is increase that. Further reading indicated that this
is a structure setup to control file locks and that it's default value
is 15000 -- enough capacity to handle 7500 file opens & locks at the
same time.

CAUTION: ustructs use shared memory; about 950KB to store 15000
ustructs. The default maximum shared memory per process on Solaris 8 (at
least) is 1MB; so each process can allocate up to 1MB of shared memory.
Bumping up the number of ustructs increases the demand for shared
memory. I increased from 15000 to 65535, requiring somewhere between 3
and 4MB of shared memory -- ooops. After setting that parameter in the
registry and restarting PC NetLink, it wouldn't start. Neither would the
registry interface, so I couldn't undo the change. I ended up
increassing the shmsys:shminfo_shmmax setting to 5MB (increasing from
the default of 1MB), and that fixed it with a reboot (gasp). There may
have been other ways to fix the registry, I dunno..

So.. do not bump ustructs lightly.

I found the document 816-0266-10 to be extremely useful. Also
806-0098-10. Get them from docs.sun.com, or in your PC NetLink
distribution. READ THEM! Even if you think you know what you are doing!
The 806-0098-10 has some really good suggestions and explains some key
concepts very well.

-Eric

Eric Horne wrote:
> All-
>
> We're (quite successfully) using Sun PC NetLink 2.0 on some Sun
> servers that need to interface with PCs. This is a pretty slick
> integration..
>
> In any case, occasionally we get the following error as an error 6328:
>
> At least one client operation failed because there were insufficient
> 'ustruct' structures configured for the server. Consider increasing the
> Solaris (TM) PC Netlink "ustructs" parameter.
>
> I can't find anything about 'ustruct' or 'ustructs' in terms of
> documentation.. Anybody have any idea how to resolve this?
>
> Thanks!
>
> -Eric
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:15 EDT