IP Library › Granted Patent US 7,373,647
Granted Patent B2
US 7,373,647 · App. 10/427,385 · Granted May 13, 2008

Method and system for optimizing file table usage

Assignee: International Business Machines Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,373,647
App. No.
10/427,385
Granted
May 13, 2008
Kind
B2
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.

Claims (10)

1. A method for optimizing file table usage comprising:

storing file descriptors which reference a first socket pair within a file table associated with a dispatcher process to reduce a number of file descriptors simultaneously stored within said file table associated with said dispatcher process, wherein said first socket pair stores a plurality of file descriptors associated with an agent process, and each of said plurality of file descriptors references a corresponding closed file within a context of said agent process,

transferring said file descriptors which reference said first socket pair to said agent process via an inter-process communication (IPC) mechanism,

receiving said file descriptors which reference first socket pair from said agent process via the IPC mechanism, wherein said IPC mechanism comprises a second socket pair, wherein said second socket pair comprises a shared socket pair, and

obtaining said shared socket pair from a pool of shared socket pairs prior to a transfer of said file descriptors which reference said first socket pair to said agent process.

2. The method of claim 1 comprising returning said shared socket pair to said pool of shared socket pairs following a receipt of said file descriptors which reference said first socket pair from said agent process.

3. The method of claim 1 comprising:

partitioning the file table associated with said dispatcher process into a plurality of partitions, each partition maintaining a subset of file descriptors;

reserving a partition as a reserved partition to store a plurality of socket pair file descriptors, each corresponding to one of a plurality of socket pairs wherein each of said socket pairs is adapted to store said subset of file descriptors; and

storing file descriptors of a selected one of said plurality of partitions to one of said plurality of socket pairs using an associated one of said socket pair file descriptors; wherein storing said file descriptors of said selected one of said plurality of partitions to one of said plurality of socket pairs stores said associated socket pair file descriptors to said reserved partition.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 10, 2005
From: KALMUCK, DAVID C.; LIND, JON A.; PEREYRA, HEBERT W.; XUE, XUN
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 016320/0036 →
Continuity (1)
Related Publication 20040221294A1 · Nov 4, 2004