Method and system for optimizing file table usage
First Claim
1. For a computer system having a operating system providing an inter-process communications (IPC) mechanism for communicating file-descriptors between processes executing on said computer system and providing a file table to each of said processes for maintaining a limited number of file-descriptors, a method for optimizing usage of a one of said file tables comprising:
- storing in said file table IPC file-descriptors for an instance of said IPC mechanism, said instance of said IPC mechanism storing a plurality of file-descriptors to be maintained by said file table.
1 Assignment
0 Petitions
Accused Products
Abstract
An operating system directed to using special properties of a common inter-process communications mechanism (IPC), namely UNIX domain socket-pairs or stream-pipes alternatively as a storage medium for file-descriptors of UNIX processes. When a file-descriptor is written into a socket-pair, and closed in the UNIX process, the file remains open, but occupies no space in the process'"'"' file-table. The file-descriptor may later be read out of the socket-pair to reestablish it in the file-table, and access it. This property is implemented in an IPC mechanism of UNIX operating system whereby a process such as a dispatcher may manage more connections and processes than its file-table size allow. This provides scalability improvements of the UNIX operating system.
-
Citations
29 Claims
-
1. For a computer system having a operating system providing an inter-process communications (IPC) mechanism for communicating file-descriptors between processes executing on said computer system and providing a file table to each of said processes for maintaining a limited number of file-descriptors, a method for optimizing usage of a one of said file tables comprising:
storing in said file table IPC file-descriptors for an instance of said IPC mechanism, said instance of said IPC mechanism storing a plurality of file-descriptors to be maintained by said file table. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
12. For a computer system having a operating system providing an inter-process communication (IPC) mechanism for communicating file-descriptors between processes executing on said computer system and providing a file table to each of said processes for maintaining a limited number of file-descriptors, a computer program product embodied in a computer readable medium for instructing the computer system, said computer program product comprising code for optimizing usage of a one of said file tables comprising:
code for storing in said file table IPC file-descriptors for an instance of said IPC mechanism, said instance of said IPC mechanism storing a plurality of file-descriptors to be maintained by said file table. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 26)
-
23. An extended scalability multiplexing system comprising:
-
a dispatcher process adapted to multiplex a plurality of requests received from one or more connections for processing by one or more agent processes, said dispatcher process having a file table for maintaining file-descriptors;
one or more said agent processes, said agent processes using file-descriptors in association with each of said connections for processing individual said requests and communicating said file-descriptors to said dispatcher process for maintaining;
an inter-process communication IPC mechanism for communicating file-descriptors between processes, said IPC mechanism adapted for generating instances of said IPC mechanism, each instance being accessible by IPC file-descriptors and capable of storing a plurality of file-descriptors that remain open when so stored;
said agent processes adapted to store file-descriptors for maintaining by said dispatcher process to instances of said IPC mechanism and to communicate said instances to said dispatcher process; and
said dispatcher process adapted to store to said file table IPC file-descriptors associated with said instances received from said agent processes. - View Dependent Claims (24, 25)
-
-
27. For a data processing system having an operating system providing an inter-process communications (IPC) mechanism adapted for passing file descriptors between processes and providing file tables for said processes, a method for manipulating a file descriptor stored in a file table entry of a file table comprising:
-
transferring the file descriptor from the file table entry to the IPC mechanism, thereby preserving the file descriptor in the IPC mechanism while permitting availability of the unloaded file table entry for other uses; and
,transferring the file descriptor from the IPC mechanism to an available file table entry if access to the file descriptor is requested.
-
-
28. A data processing system having an operating system providing an inter-process communications (IPC) mechanism adapted for passing file descriptors between processes and providing file tables for said processes, the data processing system for manipulating a file descriptor stored in a file table entry of a file table, comprising:
-
means for transferring the file descriptor from the file table entry to the IPC mechanism, thereby preserving the file descriptor in the IPC mechanism while permitting availability of the unloaded file table entry for other uses; and
,means for transferring the file descriptor from the IPC mechanism to an available file table entry if access to the file descriptor is requested.
-
-
29. A computer program product having a computer readable medium tangibly embodying computer executable code for directing a data processing system having an operating system providing an inter-process communications (IPC) mechanism adapted for passing file descriptors between processes and providing file tables for said processes, the data processing system for manipulating a file descriptor stored in a file table entry of a file table, the computer program product comprising:
-
code for transferring the file descriptor from the file table entry to the IPC mechanism, thereby preserving the file descriptor in the IPC mechanism while permitting availability of the unloaded file table entry for other uses; and
,code for transferring the file descriptor from the IPC mechanism to an available file table entry if access to the file descriptor is requested.
-
Specification