🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #581

Re: C-ISAM not "really" closing fi

#581
From: scott
Date: Sun, 14 Sep 1986 02:18
24 lines
1593 bytes
I assume that you're talking about the RDS C-ISAM?  Well, it
turns out that their ESQL/C product has an undocumented function
called vclose(), which does a virtual close on one of the file
descriptors.  I needed it when opening a database, because two
pipes are created to talk to the backend database that gets
forked and exec'ed, and each pipe starts out with two file
descriptors each.  By doing two vclose's, I was able to get the
backend created, and in fact didn't even lose efficiency, since
after creating the backend each of the two processes can close
one end of each pipe.

Anyway, to get back to the point, vclose() does some magic to
free up a file descriptor.  Supposedly you can call it as many
times as you have tables opened, in an isql context.  So, you
might try it with C-ISAM.  If you actually need more than 20 file
descriptors, things will run slower, just as if you're running on
virtual memory with a bigger working set than physical memory.
In this case, you get "file descriptor faults", which result in a
close than an open.

I got this info from RDS tech support.

-scott
Technical Details
Message-ID: <3000001@cdp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!nike!oliveb!glacier!cdp!scott

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!nike!oliveb!glacier!cdp!scott
From: scott@cdp.UUCP
Newsgroups: net.bugs
Subject: Re: C-ISAM not "really" closing fi
Message-ID: <3000001@cdp>
Date: Sat, 13-Sep-86 22:18:00 EDT
Article-I.D.: cdp.3000001
Posted: Sat Sep 13 22:18:00 1986
Date-Received: Sun, 14-Sep-86 20:19:16 EDT
Lines: 24
Nf-ID: #N:cdp:3000001:000:1101
Nf-From: cdp.UUCP!scott    Sep 13 19:18:00 1986