STORAGE MEDIUM HAVING A MANAGEABLE FILE DIRECTORY STRUCTURE

Abstract
A file-mapping method and system can better manage the number of items (i.e., files, subdirectories, or a combination of them) within any single directory within a storage medium. The method and system can be used to limit the number of items within the directory, direct content and content components to different directories, and provide an internally recognizable name for the filename. When searching the storage medium, time is not wasted searching what appears to be a seemingly endless list of filenames or subdirectory names within any single directory. A client computer can have requests for content fulfilled quicker, and the network site can reduce the load on hardware or software components. While the method and system can be used for nearly any storage media, the method and system are well suited for cache memories used with web servers.
Description
FIELD OF THE INVENTION

This invention relates in general to methods and data processing system readable storage media, and more particularly, to those methods and data processing system readable storage media that manage the number of items within file directories and sub-directories.


DESCRIPTION OF THE RELATED ART

Content management within storage media of network sites is becoming more problematic as the volume of information exchanged over networks increases. The problems extend to all storage media including caches. Frequently accessed files may be cached to reduce the number of page regenerations. A larger cache memory typically means that web pages may be delivered faster to a client computer and use less server resources than would otherwise be needed in regenerating those web pages.


However, caching web pages is not without problems. In simple, persistent caches, cache files are stored in flat directory structures. In other words, the cache file directory has a listing of files within the cache without any hierarchy. For a UNIX-based server, the cache files consume “inodes.” The UNIX file system has only a limited number of inodes that it can handle. Therefore, the total number of cached pages may be limited by the file system's technology and not by available storage resources (i.e., disk space).


For Windows NT-based servers, there is no specific limit on the number of files that can be stored within a cache. However, each file name may consume approximately 1 kB of disk space regardless of the size of contents within that cache file. Therefore, a relatively small file that may include only a few bytes of data still occupies approximately 1 kB of cache memory due to the file name. As the number of files increase, the amount of space occupied by the directory likewise increases. If the directory includes 100,000 files, the amount of space occupied by the file names themselves for the directory may exceed 100 MB.


Searching for files using a conventional, flat cache file directory can result in relatively slow searches as the server computer may need to check virtually every file name in the cache file directory before reaching the specific file requested or determining that the file was not found. This searching can consume valuable server computer resources and delay sending a response to a client computer with the file or a notification that the file could not be found. The increased use of server resources and increased time in sending a response to a client computer are undesired.


SUMMARY OF THE INVENTION

A file-mapping method and system can better manage the number of items (i.e., files, subdirectories, or a combination of them) within any single directory (or multiple directories) within a storage medium. The method and system can limit the number of items within the directory, direct content and content components to different directories, provide an internally recognizable name for the filename, and provide potentially other benefits. When searching the storage medium, time is not wasted searching what appears to be a seemingly endless list of filenames or subdirectory names within any single directory. A client computer can have requests for content fulfilled quicker, and the network site can reduce the load on hardware, software components, or any combination thereof.


In some embodiments, a method of using a storage medium can comprise generating a first mapped pathname for a file to manage the number of files within a directory. The method can also comprise determining whether the file is in the storage medium by using the first mapped pathname. Hierarchically, the directory in which the file resides may lie between a root directory of the storage medium and the file. In other words, the file may lie within the directory, itself, or a sub-directory (or an even lower-level directory) within that directory.


In still other embodiments, a data processing system readable medium can have code embodied within it. The code can include instructions that are configured to cause a data processing system for performing the methods described herein.


The foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as defined in the appended claims.





BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example and not limitation in the accompanying figures, in which:



FIG. 1 includes an illustration of a client computer and a network site that are connected to each other via a network.



FIG. 2 includes an illustration of a data processing system storage medium including software code having instructions in accordance with an embodiment of the present invention.



FIGS. 3 and 4 depict a process flow diagram for managing a file directory structure in accordance with an embodiment of the present invention.



FIG. 5 depicts a flow diagram for one embodiment of a method for creating a mapped pathname.





Skilled artisans appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of embodiments of the present invention.


DETAILED DESCRIPTION

Reference is now made in detail to the exemplary embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts (elements).


A file-mapping method and system can better manage the number of items (i.e., files, subdirectories, or any combination of them) within any single directory within a storage medium. The method and system can limit the number of items within the directory, direct content and content components to different directories, and provide an internally recognizable name for the filename. When searching the storage medium, time is not wasted searching what appears to be a seemingly endless list of filenames or subdirectory names within any single directory. A client computer can have requests for content fulfilled quicker, and the network site can reduce the load on hardware or software components. While the method and system are well suited for cache memories, the concepts can be used for many other file storage systems on other types of storage media including hard disks, CDs, floppy diskettes, and the like.


A few terms are defined or clarified to aid in understanding the descriptions that follow. A network includes an interconnected set of server and client computers over a publicly available medium (e.g., the Internet) or over an internal (company-owned) system. A user at a client computer may gain access to the network using a network access provider. An Internet Service Provider (“ISP”) is a common type of network access provider. A network address includes information that can be used by a server computer to locate information, whether internal to that server computer or at a different, remote computer or database. Uniform Resource Locators (“URLs”) are examples of network addresses.


The term “content” is intended to mean any information sent from a network site to a client computer in response to a request from a user at the client computer. As one example, content may be in the form of a network page. A web page is a common type of network page.


The term “content component” is intended to mean at least a portion of the content. In many instances, the content can include a plurality of content components. However, in some instances, the content can be a single content component.


The term “network site” is intended to comprise computers that are part of the network site in response to a request from a client computer. The client computer is outside the network site but may request content from the network site via communications with a web server. A web site is a common type of network site.


The term “software component” is intended to mean at least a portion of a computer program (i.e., a software application). Examples include a web server software component, a page generator software component, a cache manager, and the like. Different software components may reside in the same computer program or in different computer programs on the same computer or different computers.


As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a method, process, article, or apparatus that comprises a list of elements is not necessarily limited only those elements but may include other elements not expressly listed or inherent to such method, process, article, or apparatus. Further, unless expressly stated to the contrary, “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present).


Before discussing embodiments of the present invention, a hardware architecture for using embodiments is described. FIG. 1 illustrates an exemplary architecture and includes client computer 12 that is bi-directionally coupled to network 14, and web server 16 that is bi-directionally coupled to network 14, page generator 18, cache manager 17, and cache 19. Cache manager 17 can be bi-directionally coupled to page generator 18 and cache 19. Many other alternative configurations are possible and known to skilled artisans. For example, cache manager 17 is not required. In another alternative configuration, cache manager 17 may be unidirectionally coupled to web server 16. For example, cache manager 17 may send filenames of files that are stored within cache 19 to web server 16; however, no information or other communications may be sent from web server 16 to cache manager 17.


Client computer 12 includes central processing unit (“CPU”) 120, read-only memory (“ROM”) 122, random access memory (“RAM”) 124, hard drive (“HD”) or storage memory 126, and input/output device(s) (“I/O”) 128. I/O 128 can include a keyboard, monitor, printer, electronic pointing device (e.g., mouse, trackball, stylus, etc.), or the like. Client computer 12 can include a desktop computer, a laptop computer, a personal digital assistant, a cellular phone, or nearly other device capable of communicating over the Internet or an intranet.


Web server 16 can include CPU 160, ROM 162, RAM 164, HD 166, I/O 168, and plug-in 169. Page generator 18 can include CPU 180, ROM 182, RAM 184, HD 186, and I/O 188. In one non-limiting embodiment, page generator 18 can be used to fulfill requests coming from web server 16. Cache manager 17 can include CPU 170, ROM 172, RAM 174, HD 176, I/O 178, and plug-in 179. Each of the computers in FIG. 1 may have more than one CPU, ROM, RAM, HD, I/O, or other hardware components. For simplicity, each computer is illustrated as having one of each of the hardware components, even if more than one is actually used.


Details of web server plug-in 169 and cache manager plug-in 179, which can be software modules, are described below in more detail. Plug-ins 169 and 179 are typically stored in HD 166 and HD 176, respectively, and loaded into RAM 164 and RAM 174, respectively, when used. Plug-ins 169 and 179 are illustrated as separate components to simplify understanding of the present invention.


Each of computers 12, 16, 17, and 18 is an example of a data processing system. ROM 122, 162, 172, and 182; RAM 124, 164, 174, and 184; HD 126, 166, 176, and 186; and cache 19 include media that can be read by CPU 120, 160, 170, or 180. Therefore, each of these types of memories includes a data processing system readable medium. These memories may be internal or external to computers 12, 16, 17, and 18.


The methods described herein may be implemented in suitable software code that may reside within ROM 122, 162, 172, or 182, RAM 124, 164, 174, or 184, or HD 126, 166, 176, or 186. The instructions in an embodiment of the present invention may be contained on a data storage device, such as HD 166 or 176. FIG. 2 illustrates a combination of software code elements 204, 206, and 208 that are embodied within data processing system readable medium 202, on HD 166. Alternatively, the instructions may be stored as software code elements on a DASD array, magnetic tape, floppy diskette, optical storage device, or other appropriate data processing system readable medium or storage device.


In an illustrative embodiment of the invention, the computer-executable instructions may be lines of compiled C++, Java, or other language code. Other architectures may also be used. For example, the functions of any one of the computers may be performed by another computer shown in FIG. 1. Additionally, a computer program or its software components may be embodied in more than one data processing system readable media in more than one computer. Further, other client computers (not shown) or other server computers (not shown) similar to client computer 12 and server computers 17, 16 and 18, respectively, may also be connected to network 14.



FIGS. 3 and 4 include illustrations, in the form of a flowchart, of the structures and operations of such software program(s) incorporating the features of the system and method as described herein. Note that the example as shown in FIGS. 3 and 4 is merely illustrative and not limiting. The methodology can be extended to other storage media. Examples with caches are given to simplify understanding of the concepts.


In the hardware configuration above, the various software components (e.g., web server, page generator, cache manager, or the like) are shown on separate server computers. In alternative embodiments, some or all of the software components may reside on the same server computer. For example, the web server software component and the page generator software component could reside on the same server computer. For simplicity, each of the software components in the embodiments described below resides on different server computers.


Communications between any of the computers in FIG. 1 can be accomplished using electronic, optical, radio-frequency, or other signals. When a user is at client computer 12, client computer 12 may convert the signals to a human understandable form when sending a communication to the user and may convert input from a human to appropriate electronic, optical, radio-frequency, or other signals to be used by the client computer 12 or server computer 16, 17, or 18. Similarly, when an operator is at server computer 16, 17, or 18, that server computer may convert the signals to a human understandable form when sending a communication to the user and may convert input from a human to appropriate electronic, optical, radio-frequency, or other signals to be used by server computer 16, 17, or 18 or client computer 12.


A quick overview of the process flow in FIGS. 3-4 is given before addressing details of the methodology. The method illustrated in FIGS. 3-4 is discussed with respect to the network site illustrated in FIG. 1.


As shown in FIG. 3, the method can comprise receiving a client request for content from client computer 12 (block 302). The method can further comprise parsing the client request to form parsed elements (block 322) and generating a mapped pathname from at least one of the parsed elements (block 324). A focus of this specification is the process for generating the mapped pathname. The process allows for the better management of the file directory structure within the cache. A determination can then be made whether the file(s) for the content component(s) is (are) in cache 19 (diamond 326). If the content is in cache 19, the method can further comprise retrieving the file(s) and sending content to client computer 12 (block 328). Otherwise (“No” branch of diamond 326), a cache miss has occurred.


When a cache miss has occurred, the method can comprise generating the content or any of its content component(s) at page generator 18 (block 402 of FIG. 4). The method may also comprise sending the content to client computer 12 (block 404). Any time after the content is generated, the method can still further comprise forwarding the content component(s) and other information from page generator 18 to cache manager 17 (block 412). The method can yet further comprise caching content component(s) into cache 19 and updating the file registry at web server 16 (block 414).


After reading this specification, skilled artisans will appreciate that some of the activities described in FIGS. 3-4 may not be required but may provide a more efficient network site. Also, some of the operations may be moved from one network site computer or software component to another network site computer or software component in order to return requested content to client computers faster. Attention is now turned to a more detailed description of the method illustrated in FIGS. 3-4 and its variants.


Before beginning the method illustrated in FIGS. 3-4, an operator at the network site may develop a software component for generating mapped pathnames. The software component can be implemented with code represented by plug-in 169 on web server 16 and plug-in 179 on cache manager 17. In an alternative embodiment, only one of the plug-ins may be used, and the mapped pathname generated by that plug-in may be sent to the other server computers at the network site for storage or retrieval purposes.


The software component may be designed to manage better the number of files within a single directory in the cache. For example, if the number of files within a directory is allowed to grow in an uncontrollable manner, a directory within cache 19 could exceed well over a million files, and potentially over a billion files. At some point, depending on the computer hardware and software configuration, searching for a file may be too long for acceptable performance, that is, returning content to client computer 12 within a reasonable time.


For example, an operator at the network site may set a predetermined limit on the number of items (i.e., files, subdirectories, or a combination of them) in any directory within cache 19 to be no more than approximately 1000, 4000, 16,000, or nearly any other number. Note that a specific numerical limit does not need to be set, although such a limit is easy to implement. The limit on the number of items within a directory may be universal (all directories within cache 19), determined on a basis of hierarchical level (i.e., a directory at the highest level below the root directory has no more than approximately 1000 items, and the lowest directory has no more than approximately 100 items), determined on a directory-by-directory or other basis based on a rate of growth (periodic or otherwise) of the hierarchy of the storage medium, etc.


When the number of items, whether files, subdirectories, or combination of files and subdirectories, within a directory gets close to (e.g., 50% of the limit, 80% of the limit, 90% of the limit, etc.) or reaches the predetermined limit for that directory, a parallel directory (another directory at the same level coming from a common parent or root directory) or a sub-directory within that directory may be manually or automatically created. A more detailed description of static and dynamic directory structures are described later in this specification. Alternatively, a warning may be sent to an operator at server computer 16 or 17 to allow for manual intervention, if desired. New files or new subdirectories may go to that other subdirectory. Implementation of the file mapping software component may manage the cache file directory structure better than conventional methods. The design of the software component is highly flexible and can be customized for the specific needs or desires for the network site.


The mapping methodology can be better understood with some non-limiting examples. The mapping methodology can take the URL and other information within the user request (e.g., locale, browser, operating system, etc.), collectively “client request,” and parse the client request into parsed elements that may correspond to different parameters. In general, the application-specific parameters may depend on the design of the content to be produced at a network site, and the non-application-specific parameters may not depend on the design of the content to be produced. Some of the parameters may be application-specific parameters (e.g., type of file (text versus image), scripting environment (Active Server Pages (“ASP”) versus Java Server Pages (“JSP”)), markup language (HyperText Markup Language (“HTML”) versus Wireless Markup Language (“WML”)), a query string, or the like), and some of the parameters may not be application-specific (e.g., locale, browser, operating system, address (e.g., Internet Protocol address) or other information about client computer 12 or network 14 over which the request is sent to web server 16). The parsing is highly flexible and can be adapted differently to different network sites.


Attention is directed to the detail of the method starting on FIG. 3. A user at client computer 12 can send and web server 18 can receive a client request including a URL (block 302). As an example of the URL portion of the client request can be “http://www.homedepot.com/diy_main/pg_diy.jsp?CNTKEY=growit”. The method can further comprise parsing the client request to form parsed elements that may correspond to different parameters of the request.


The method can comprise generating a mapped filename or mapped pathname (block 324). In one embodiment, the generation of the mapped filename or mapped pathname may be accomplished using at least one of the parsed elements. For example, one format can comprise a naming convention that uses concatenation of the parsed elements with commas to separate the fields. Thus, “0,CNTKEY=growit,00-EN_US.html” may be a mapped filename.


A software component, such as plug-in 169, may analyze the parsed elements. For example, the “0” may correspond to an Internet Explorer™ brand browser (available from Microsoft Corporation of Redmond, Wash.) at client computer 12, “CNTKEY=growit” may correspond to a query string, “00-EN_US” may correspond to locale information of client computer 12, and “html” may correspond to the markup language.


In one example, one or more of the non-application-specific parameters can be used to determine the directory or subdirectory (e.g. mapped pathname) where the file will be located. In the prior example, the locale information may be used to determine a first level directory. A lower-level directory may be obtained using a hashing function to manage better the number of files within a directory depending on the specific hardware and software configuration used at the network site. The hashing function may be applied over the parameters in the parsed elements. For example, a mapped pathname might become “EN_US/hash00345/CNTKEY=growithtml”. Therefore, “EN_US” is, a directory that includes a subdirectory called “hash00345,” which includes a file “CNTKEY=growit.html.” Note that the value of one of the parameters (locale is EN_US”) corresponds to the name of the directory (“EN_US”), and another directory (“hash00345”) has a name corresponding to the hashed value. Hashing may also be performed to determine each level of directories within the hierarchy (e.g. mapped pathname).


Alternatively, the order of the parameters may be changed. For example, the specific hash value may precede other information from the client request. Referring to the prior example, the mapped pathname could be “hash00345/EN_US/CNTKEY=growit.html”. Other orderings for the parameters are possible.


The logic used for generating the mapped pathname should be known by the software components in the network site for accessing, generating, and storing cached content, but a particular methodology, such as using a hashing function or concatenation, is not required to achieve the caching or storing capabilities described herein. Concatenation of parameters and hashing are just a couple of many possible methodologies. After reading this specification, skilled artisans will appreciate that many other methodologies can be used.


It may be helpful, here, to illustrate one embodiment of these other methodologies. Turning'briefly to FIG. 5, another embodiment of a method for generating a location for a file within a directory structure (e.g. a pathname for the file) is illustrated. A user at client computer 12 can send and web server 18 can receive a client request including a URL (block 502). The client request may then be parsed to form a set of parsed elements that may correspond to different parameters of the request (block 504). These parsed elements may be visible in the request itself or come from other sources, such as from the headers of the request not visible in the request itself.


A mapped filename may then be created from these parsed elements (block 506). This mapped filename may be created by a function (e.g. a software component) which evaluates the client request and at least one of the set of parsed elements to produce a mapped filename corresponding to the received client request. In order to better manage the number of files within a directory structure a hashing function may then be applied to the mapped filename to generate a hashed filename (block 508) (which may be thought of in certain embodiments as a digital signature of the mapped filename) and a pathname for the requested file then created using this hashed filename (block 510).


More specifically, after a mapped filename is created (block 506), a hashing function (e.g. software component) may be applied to this mapped filename to create a hashed filename (block 508), which, in one embodiment may comprise a set of bits and an extension (e.g. html). The pathname for the requested file in the cache/storage medium can then be created using one or more of the parameter elements obtained from the request or the hashed filename (block 510).


In one embodiment, a pathname for the desired file in the directory can be created using the hashed filename (e.g. by applying a function to the hashed filename). More specifically, the pathname may comprise a set of directories and the hashed filename, each of the set of directories within the path created from a set of bits of the hashed filename. For example, the name of a first directory in the pathname may be created from the first eight bits (e.g. 2 hexadecimal digits) of the hashed filename (e.g. adding the bits, the number represented by these bits, etc.), the name of a subdirectory of the first directory may be created from the second eight bits of the hashed filename, etc. In another embodiment a mapped pathname for the desired file in the directory can be created using one or more parameter elements as directory names interspersed with a set of directory names created from the hashed filename, as discussed above. For example, the parsed element corresponding to locale may be a first directory, while a subdirectory name of this first directory may be created from the hashed filename, etc. It will be apparent that the pathname may be created in a wide variety of other methods according to different embodiments of the invention. For example, the mapped filename may be utilized in conjunction with a set of directories obtained from the hashed filename, etc.


Embodiments of the methods discussed above with reference to FIG. 5 may be better illustrated with reference to certain specific examples. It will be understood that the depictions of the methodology applied in the following descriptions are examples only, and not limiting in any sense. Suppose, now, that the request “http//www.homedepot.com/diy_main/pg_diy.jsp?CNTKEY=growit” is received (block 502). This request may then be parsed to obtain a set of parsed elements (step 504), such as “Extension=.jsp”, “CNTKEY=growit”, “PATH=/diy_main/pg_diy.jsp”, “DOMAIN=www.homedepot.com”, “Accept-Language=EN_US” (n.b. that some of these parsed elements are visible in the request and others may come from source not visible in the request such as header information).


Continuing with the above example, a mapped filename may be created using these parsed elements (block 506), yielding the mapped filename “homedepot.com/diy_main/pg_diy/CNTKEY=growit,EN_US.html” which, when a hashing algorithm is applied to it (block 508), may yield the hashed filename “65ad3bc8de30fa754edbc7bd38ab6c.html”. The pathname to locate the desired file in the storage medium may then be created using one or more of the parameter elements obtained from the request or the hashed filename (block 510). Again, continuing with the above example, this pathname may be “/EN_US/65/ad/65ad3bc8de30fa754edbc7bd38ab6c.html” where one directory name is comprised of a parsed element, two directory names are each comprised of two hexadecimal digits from the hashed filename and the filename is the hashed filename. The pathname could also be “/65/ad/pg_diy/CNTKEY=growit,EN_US.html” where two directory names are each comprised of two hexadecimal digits from the hashed filename, one directory name is comprised of a parsed element and the filename is, or is derived from, the mapped filename.


Returning now to FIGS. 3 and 4, after the mapped pathname has been generated, the method can further include determining whether the file(s) is (are) in cache 19 (diamond 326). This determination can be performed using a conventional method. In one embodiment, after generating the mapped pathname, web server 16 can refer to a file registry within web server 16 to determine if the mapped pathname corresponds to (i.e., matches) a file within cache 19. If at least one file matches the mapped pathname, the method can comprise retrieving the file(s) and sending it (them) to client computer 12 (block 328). The methodology used to generate the mapped pathname helps to' keep the number of files within any one directory at a more manageable level. On average, searching cache 19 is significantly faster compared to the conventional flat file system that may have millions of files within a single directory.


If any file corresponding to the content is not within the cache (“No” branch of diamond 326), the method can further comprise generating the content or any of its content component(s) at page generator 18 (block 402 in FIG. 4). Page generator 18 can generate the network page or any of its content components that were not in cache 19. Web server 16 can receive content or content component(s) from cache 19, page generator 18, or both. The method can further comprise sending the content to client computer 12 (block 404).


Assuming content component(s) were generated by page generator 18, the method can further comprise forwarding the generated content, content component(s), other information, or any combination thereof from page generator 18 to cache manager 17 (block 412). Note that forwarding the generated content, etc. may occur after the content is sent to client computer 12 (block 404). Alternatively, web server 16 may cache the results or forward the results to cache manager 17.


The method can include caching content component(s) at location(s) corresponding to the mapped pathname(s) and updating the file registry for web server 16 (block 414). Note that caching a content component should be construed to include adding to or updating an entry within a database. Cache manager 17 may have plug-in 179 that can be used to recreate the mapped pathname based on a client request or may be able to take a mapped pathname and use a reverse function to determine at least a portion of the client request. Therefore, the other information sent to cache manager 17 could include the client request, parsed elements, the mapped filename, the mapped pathname or potentially other information.


Content components can be stored independent of the memory location for the network pages in which they may be used. Some of the content components (i.e., files) may be used in other network pages. Storing multiple copies of the same information occupies additional memory space and slows retrieval of this or other content component(s) since the number of stored files may be greater. Therefore, the number of copies of the content component will be less than the number of network pages in which the content component is used, and may be as little as one copy of the component. Also, content component(s) may be stored within different directories independent of other content component(s) within the same network page. The mapping methodology can achieve the independent storing by assigning the network page and any of its content components to different directories. This can allow better control over the number of files within each discrete directory and speed the read access time for the content component. Additionally, quicker retrieval can translate to quicker delivery of already stored content.


An advantage of the method and system may occur by using the file-mapping or pathname-mapping methodology to manage better the number of files within any single directory. Because the number of files is kept below predetermined limits, the time to search the files within a directory can be significantly shorter. If files are within the memory, they may be found quicker. If the files are not in the memory, a determination that a file is not found is quicker, and the page generator can receive an instruction to generate content sooner than it otherwise would. From the perspective of the client computer 12, it is getting content returned by the network site faster. From the perspective of the network site, the web server 16 is not being slowed down by searching for file names within seemingly endless directory(ies). Therefore, fewer hardware resources may be needed when the method is used and still provide acceptable fulfillment of client requests. Similarly, the load on the web server software component can be reduced because it may be spending less time performing searches.


As previously mentioned, the methodology is not limited to caches used with web servers. The methodology may be used for other types of memories and storage media and may be used in applications outside of web servers. The storage medium may include RAM, a database, a file server, or the like. For the database, the parameters from parsing may be used for indexing and partitioning the content. The RAM, database, or file server can be used to implement the storage, but use of the parameters can help to make the storage more efficient. The directory structure may be managed using dependent or independent variables (with respect to the file contents) and manipulating the hierarchy. The management allows flexibility to add, delete, or otherwise modify or reconfigure a directory system to meet the changing needs or desires of a user.


Note that the method may be implemented in a static (manually created and modified) directory structure or a dynamic (automatically created or modified) directory structure. In order to use a static directory structure, a user may estimate the number of files to be stored within a data processing system storage medium. For example, cache 17 may need to store up to 30 million personal home pages for subscribers. The user can create a directory structure to distribute the files between directories and sub-directories, if any. Files can be stored in the data processing system storage medium in accordance with the directory structure.


In one embodiment, the directory structure may include approximately 250 directories each having approximately 1000 subdirectories, and each subdirectory may be designed to have up to approximately 1000 files. This directory structure can handle up to approximately 250 million files. Therefore, the directory structure can accommodate the estimated 30 million personal home pages.


The static method can be implemented without having to generate code for creating or modifying directories and subdirectories. However, it may not adjust in real time for a situation where one or more of the subdirectories become full. If the estimated number of files is increased from 30 million to 300 million, the highest level of directories may be changed from approximately 250 to 1000 directories. Each directory may still have approximately 1000 subdirectories that may hold up to approximately 1000 files. The statically modified directory structure may now hold approximately one billion files.


As an alternative to a static file structure, a dynamic file structure may dynamically create or modify the directory structure in real time without manual intervention. As previously discussed, code can be written to add new directories at the same or lower levels based on how many files lie within any current specific directory. Alternatively, code can be written to adjust for underutilized folders. For example, some of the lowest level directories or subdirectories may contain nothing (i.e., no files or subdirectories) or almost nothing. Therefore, empty or sparsely populated directories may be combined into one higher-level directory.


Regardless whether a static or dynamic file system is used, the method can be used to add or remove level(s) within a directory structure or add or remove directories at any specific level. In other words, the directory structure may be vertically or horizontally modified as desired.


In the foregoing specification, the invention has been described with reference to specific embodiments. However, one of ordinary skill in the art appreciates that various modifications and changes can be made without departing from the scope of the present invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of present invention.


Benefits, other advantages, and solutions to problems have been described above with regard to specific embodiments. However, the benefits, advantages, solutions to problems, and any element(s) that may cause any benefit, advantage, or solution to occur or become more pronounced are not to be construed as a critical, required, or essential feature or element of any or all the claims.

Claims
  • 1. A system, comprising: a web server software component for receiving a first request for content from a client computer coupled to the system;a file mapping software component for: parsing the first request to form parsed elements that correspond to different parameters of the first request; andgenerating a mapped pathname or a mapped filename from at least one of the parsed elements; anda non-transitory storage medium for storing a first file at a first location that corresponds to the mapped pathname or the mapped filename, wherein content within the storage medium is arranged hierarchically and wherein the hierarchical arrangement of the storage medium is configured based on the distribution of the content within the storage medium.
  • 2. The system of claim 1, further comprising a page generator software component for generating the first file.
  • 3. The system of claim 2, wherein the web server software component, the file mapping software component, and the page generator software component reside on a single server computer.
  • 4. The system of claim 2, wherein the web server software component, the file mapping software component, and the page generator software component reside on different server computers.
  • 5. The system of claim 1, wherein the web server software component and the file mapping software component reside on same or different server computers.
  • 6. The system of claim 1, further comprising a plug-in for recreating the mapped pathname or the mapped filename based on a second request received subsequent to the first request.
  • 7. The system of claim 1, further comprising a reverse function for determining at least a portion of a second request based on the mapped pathname.
  • 8. The system of claim 1, wherein the first file is associated with at least one network page and wherein the at least one network page is stored at a second memory location.
  • 9. The system of claim 8, wherein the first file is stored at the first location independent of the second memory location where the at least one network page is stored.
  • 10. The system of claim 1, wherein the hierarchical arrangement of the storage medium is configured dynamically based on a number of files stored on a level of the hierarchy of the storage medium.
  • 11. The system of claim 1, wherein the hierarchical arrangement of the storage medium is configured dynamically based on desired performance.
  • 12. The system of claim 1, wherein the hierarchical arrangement of the storage medium is a directory structure.
  • 13. A system, comprising: a web server software component for receiving a first request for content from a client computer coupled to the system;a file mapping software component for: parsing the first request to form parsed elements that correspond to different parameters of the first request; andgenerating a mapped pathname or a mapped filename from at least one of the parsed elements;a page generator software component for generating a first file containing requested content or at least one content component thereof; anda non-transitory storage medium for storing the first file at a first location that corresponds to the mapped pathname or the mapped filename, wherein content within the storage medium is arranged hierarchically and wherein the hierarchical arrangement of the storage medium is configured based on the distribution of the content within the storage medium.
  • 14. The system of claim 13, wherein the web server software component, the file mapping software component, and the page generator software component reside on a single server computer.
  • 15. The system of claim 13, wherein the web server software component, the file mapping software component, and the page generator software component reside on different server computers.
  • 16. The system of claim 13, wherein the web server software component and a first plug-in of the file mapping software component reside on a web server computer and wherein a second plug-in of the file mapping software component resides on a cache manager computer that is bi-directionally coupled to the web server computer.
  • 17. The system of claim 16, further comprising a third plug-in residing on the cache manager computer for recreating the mapped pathname or the mapped filename based on a second request received subsequent to the first request.
  • 18. The system of claim 16, further comprising a reverse function residing on the cache manager computer for determining at least a portion of a second request based on the mapped pathname.
  • 19. The system of claim 13, wherein the first file is associated with at least one network page, wherein the at least one network page is stored at a second memory location, and wherein the first file is stored at the first location independent of the second memory location where the at least one network page is stored.
  • 20. A system, comprising: a web server software component for receiving a first request for content from a client computer coupled to the system;a plurality of software components for: parsing the first request to form parsed elements that correspond to different parameters of the first request;generating a mapped pathname or a mapped filename from at least one of the parsed elements; andrecreating the mapped pathname or the mapped filename based on a second request received subsequent to the first request; anda non-transitory storage medium for storing the first file at a first location that corresponds to the mapped pathname or the mapped filename, wherein content within the storage medium is arranged hierarchically, wherein the first file is associated with at least one network page, wherein the at least one network page is stored at a second memory location, and wherein the first file is stored at the first location independent of the second memory location where the at least one network page is stored, and wherein the hierarchical arrangement of the storage medium is configured based on the distribution of the content within the storage medium.
CROSS-REFERENCE TO RELATED APPLICATIONS

This is a continuation of and claims priority from U.S. patent application Ser. No. 11/641,496, filed Dec. 18, 2006, issued as U.S. Pat. No. 7,761,497, entitled “STORAGE MEDIUM HAVING A MANAGEABLE FILE DIRECTORY STRUCTURE,” which is a continuation of U.S. patent application Ser. No. 10/334,515, filed Dec. 31, 2002, issued as U.S. Pat. No. 7,349,942, entitled “STORAGE MEDIUM HAVING A MANAGEABLE FILE DIRECTORY STRUCTURE,” which claims priority from Provisional Application No. 60/356,613, filed Feb. 13, 2002, entitled “CACHE MEMORY HAVING A HIERARCHICAL STRUCTURE.” The above-referenced U.S. patent application Ser. No. 11/641,496, filed Dec. 18, 2006, is a continuation-in-part of U.S. patent application Ser. No. 11/348,645, filed Feb. 7, 2006, issued as U.S. Pat. No. 7,716,342, entitled “METHOD AND SYSTEM FOR FILE-SYSTEM BASED CACHING,” which is a continuation of U.S. patent application Ser. No. 10/195,798, filed Jul. 15, 2002, issued as U.S. Pat. No. 7,024,452, entitled “METHOD AND SYSTEM FOR FILE-SYSTEM BASED CACHING,” which claims priority from Provisional Application No. 60/305,320, filed Jul. 13, 2001, entitled “METHOD AND SYSTEM FOR FILE-SYSTEM BASED CACHING.” This application relates to U.S. patent application Ser. No. 09/931,228, filed Aug. 16, 2001, entitled “METHOD AND SYSTEM FOR DETERMINING A NETWORK USER'S LOCALE,” now abandoned; 10/027,384, filed Dec. 21, 2001, entitled “METHOD AND SYSTEM FOR CACHE MANAGEMENT OF LOCALE-SENSITIVE CONTENT,” issued as U.S. Pat. Nos. 7,194,506; and 10/028,232, Dec. 21, 2001, entitled “METHOD AND SYSTEM FOR PLATFORM-INDEPENDENT FILE SYSTEM INTERACTION,” issued as U.S. Pat. No. 6,892,377. This application also relates to U.S. patent application Ser. No. 12/763,059, filed Apr. 19, 2010, pending, entitled “METHOD AND SYSTEM FOR FILE-SYSTEM BASED CACHING,” which is a continuation of the above-referenced U.S. patent application Ser. No. 11/348,645, filed Feb. 7, 2006. All patents and applications listed in this paragraph are incorporated herein by reference in their entirety for all purposes.

Provisional Applications (2)
Number Date Country
60356613 Feb 2002 US
60305320 Jul 2001 US
Continuations (3)
Number Date Country
Parent 11641496 Dec 2006 US
Child 12835004 US
Parent 10334515 Dec 2002 US
Child 11641496 US
Parent 10195798 Jul 2002 US
Child 11348645 US
Continuation in Parts (1)
Number Date Country
Parent 11348645 Feb 2006 US
Child 11641496 US