TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Billy O`connor
from: David Bannister
date: 1994-10-23 02:20:16
subject: Named Pipes

20 Oct 94 04:30, Billy O'connor wrote to David Bannister:

 >> What is the maximum number of named pipes supported under OS/2?

 BO> Hi, David.

Howdy Billy.  Boy, we've got a Bill Oconnor and a Billy O'connor, this could
get confusing.


 BO> I get +-450 with PM and +- 475 with TSHELL running this code:

Your code is essentionally the same as mine except I get an error for
allocating more than 10,000 handles under DosSetMaxFH().  [if I remember
correctly, the code and machine are at work]

 BO>       PipeMode = NP_WMESG | NP_RMESG | 0x01;
 BO>   rc=DosSetMaxFH(32768);
 BO>   for(ulPipeNumber=0l;ulPipeNumber        strcpy(FileName,"\\PIPE\\");
 BO>    sprintf(tmp,"%ld",ulPipeNumber);
 BO>        strcat(FileName,tmp);
 BO>        rc = DosCreateNPipe(FileName, &PipeHandle, OpenMode,
 BO>                                PipeMode, 4096, 2048, 10000);
 BO>        if (rc != 0) {

 BO> The return code I always get is "Not enough memory." 
This is on an 8 meg
 BO> machine.  I can't find any literal limit to the amount of named pipes,
 BO> though.

On my machine with 32MB I will get around 1485 pipes before I get an error
that says that I am out of structures, this is under 2.1 GA with no CSDs.

I will admit that what I am doing is a bit unusual but I am trying to plan
for the future on a system that I am building.  I would be happy with
around 75K to 100K pipes but I think I could make due with a couple
thousand with a little creative programming.  I wish I could further
explain what I am trying to do but unfourtunately it would reveal the
business plan, I can't do that.

I will be bumping the machine up to 64M then to 128M.  I will test it again
then. Though I am still looking for the limiting factor.

Thanks for your help.


David

Bill Gates, the Col. Tom Parker of the software world.




--- Windows Smasher/2 v3.0

* Origin: Now that's the squaw that stroked the camel's sack (1:265/101)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 265/5 109/7 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.