Patent ID: 7552308

Claim:
A computer implemented method for managing memory use for program segments in an executable program for a specified operating system, the computer implemented method comprising: loading an executable program at a location in random access memory, wherein the location is specified by the executable program; transferring control of the executable program to a loader, wherein an operating system kernel transfers the control to the loader, wherein the operating system kernel is configured for the specified operating system; identifying a set of executable program segments to form a set of identified executable program segments to be copied into a set of large pages based upon information in an executable and linking format header for the executable program, wherein the information comprises a set of flags located in the executable and linking format header, wherein the set of flags indicate that the set of executable program segments located on the specified operating system are configured for copying into the set of large pages, and wherein a preload library is used to identify the set of executable program segments, wherein the preload library comprises a library that acts as an intermediary between the specific operating system kernel and the loader; calculating a copy size and a map size for each executable program segment in the set of executable program segments prior to copying the set of executable program segments into the set of large pages; copying content from the set of identified executable program segments associated with the executable program to the set of large pages located in a huge translation lookaside buffer file system, wherein the huge translation lookaside buffer file system acts as a memory allocation application programming interface for allocating space in the set of large pages for the specified operating system; unmapping the set of identified executable program segments; unmapping the set of large pages; and remapping the content of the set of large pages located in the huge translation lookaside buffer file system, wherein the preload library instructions the operating system kernel to map the set of identified executable program segments in an original memory address associated with the set of identified executable program segments prior to the copying of the set of identified executable program segments to the set of large pages.