Fixing file descriptor leaks
Thesis (M. Eng.)--Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 2007.
Main Author: | |
---|---|
Other Authors: | |
Format: | Thesis |
Language: | eng |
Published: |
Massachusetts Institute of Technology
2008
|
Subjects: | |
Online Access: | http://hdl.handle.net/1721.1/41645 |
_version_ | 1811076410459029504 |
---|---|
author | Dumitran, Octavian-Daniel |
author2 | Dorothy Curtis. |
author_facet | Dorothy Curtis. Dumitran, Octavian-Daniel |
author_sort | Dumitran, Octavian-Daniel |
collection | MIT |
description | Thesis (M. Eng.)--Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 2007. |
first_indexed | 2024-09-23T10:21:20Z |
format | Thesis |
id | mit-1721.1/41645 |
institution | Massachusetts Institute of Technology |
language | eng |
last_indexed | 2024-09-23T10:21:20Z |
publishDate | 2008 |
publisher | Massachusetts Institute of Technology |
record_format | dspace |
spelling | mit-1721.1/416452019-04-10T18:28:08Z Fixing file descriptor leaks Fixing FD leaks Dumitran, Octavian-Daniel Dorothy Curtis. Massachusetts Institute of Technology. Dept. of Electrical Engineering and Computer Science. Massachusetts Institute of Technology. Dept. of Electrical Engineering and Computer Science. Electrical Engineering and Computer Science. Thesis (M. Eng.)--Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 2007. Includes bibliographical references (p. 89). We design, implement and test a tool for eliminating file descriptor (FD) leaks in programs at run-time. Our tool monitors FD allocation and use. When the allocation of a new FD would fail because a process's entire pool of FDs is already in use, our tool "recycles" (forcibly closes) an FD. The FD to be recycled is chosen according to three simple rules: 1) do not recycle FDs used within the last second, 2) do not recycle "persistent" FDs (FDs allocated at sites that allocate few FDs) and 3) recycle the FD that was least recently used. We tested our tool with nine applications (HTTP/FTP servers, proxies and clients) that make extensive use of FDs. We first simulated massive leaks by disabling all calls to close. Without recycling (and in the presence of leaks), all applications malfunctioned. With FD recycling, applications continued to execute normally despite massive FD leakage. Throughout our tests, our tool has never attempted to close an FD that was still in use. by Octavian-Daniel Dumitran. M.Eng. 2008-05-19T16:04:47Z 2008-05-19T16:04:47Z 2007 2007 Thesis http://hdl.handle.net/1721.1/41645 219706931 eng M.I.T. theses are protected by copyright. They may be viewed from this source for any purpose, but reproduction or distribution in any format is prohibited without written permission. See provided URL for inquiries about permission. http://dspace.mit.edu/handle/1721.1/7582 89 p. application/pdf Massachusetts Institute of Technology |
spellingShingle | Electrical Engineering and Computer Science. Dumitran, Octavian-Daniel Fixing file descriptor leaks |
title | Fixing file descriptor leaks |
title_full | Fixing file descriptor leaks |
title_fullStr | Fixing file descriptor leaks |
title_full_unstemmed | Fixing file descriptor leaks |
title_short | Fixing file descriptor leaks |
title_sort | fixing file descriptor leaks |
topic | Electrical Engineering and Computer Science. |
url | http://hdl.handle.net/1721.1/41645 |
work_keys_str_mv | AT dumitranoctaviandaniel fixingfiledescriptorleaks AT dumitranoctaviandaniel fixingfdleaks |