Patent ID: 8095772

Claim:
A method for loading shared libraries into a virtual memory of a computer, comprising: receiving an indication of a requirement to load the shared library into the virtual memory; determining that the shared library is a candidate for using shared large pages; in response to the determination: storing a text section of the shared library in a shared large page of the virtual memory; and storing a data section of the shared library in a page of the virtual memory, wherein the virtual memory is mapped to a physical memory of the computer, wherein, within an address space of the virtual memory, a starting address of the text section of the shared library is separated from a starting address of the data section of the shared library by a predefined distance, wherein the predefined distance is larger than a size of the shared large page of the virtual memory, wherein storing the data section of the shared library in the page of the virtual memory comprises: allocating a page of the physical memory to store the data section of the shared library, storing the data section of the shared library in the allocated page of the physical memory, and mapping the allocated page of the physical memory to the page of the virtual memory.