KR101482014B1 - File cache system and method using allocation table and system and method for distributing file cache application - Google Patents

File cache system and method using allocation table and system and method for distributing file cache application Download PDF

Info

Publication number
KR101482014B1
KR101482014B1 KR20120050214A KR20120050214A KR101482014B1 KR 101482014 B1 KR101482014 B1 KR 101482014B1 KR 20120050214 A KR20120050214 A KR 20120050214A KR 20120050214 A KR20120050214 A KR 20120050214A KR 101482014 B1 KR101482014 B1 KR 101482014B1
Authority
KR
South Korea
Prior art keywords
file
cache
stored
allocation table
index
Prior art date
Application number
KR20120050214A
Other languages
Korean (ko)
Other versions
KR20130126257A (en
Inventor
전석환
Original Assignee
네이버 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 네이버 주식회사 filed Critical 네이버 주식회사
Priority to KR20120050214A priority Critical patent/KR101482014B1/en
Publication of KR20130126257A publication Critical patent/KR20130126257A/en
Application granted granted Critical
Publication of KR101482014B1 publication Critical patent/KR101482014B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0804Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches with main memory updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0806Multiuser, multiprocessor or multiprocessing cache systems
    • G06F12/0808Multiuser, multiprocessor or multiprocessing cache systems with cache invalidating means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/161Computing infrastructure, e.g. computer clusters, blade chassis or hardware partitioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Abstract

할당 테이블을 이용한 파일 캐시 시스템 및 방법 그리고 파일 캐시 어플리케이션을 배포하는 배포 시스템 및 배포 방법이 개시된다. 파일 캐시 시스템은 복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소에 대해, 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블을 저장하는 메모리 및 할당 테이블에서 파일 접근 요청에 해당하는 캐시 인덱스를 확인하고, 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 파일 접근 요청에 해당하는 요청정보를 추출하는 프로세서를 포함한다.A file cache system and method using an allocation table and a distribution system and a distribution method for distributing a file cache application are disclosed. The file cache system includes, for a single cache data store in which information on a plurality of files is stored, a memory for storing an allocation table including a cache index for indexing stored information, and a cache index corresponding to a file access request in the allocation table And extracting the request information corresponding to the file access request from the single cache data store using the checked cache index.

Description

할당 테이블을 이용한 파일 캐시 시스템 및 방법 그리고 파일 캐시 어플리케이션을 배포하는 배포 시스템 및 배포 방법{FILE CACHE SYSTEM AND METHOD USING ALLOCATION TABLE AND SYSTEM AND METHOD FOR DISTRIBUTING FILE CACHE APPLICATION}TECHNICAL FIELD The present invention relates to a file cache system and method using allocation tables, a distribution system for distributing a file cache application, and a distribution system and a distribution method for allocating file cache applications.

본 발명의 실시예들은 할당 테이블을 이용한 파일 캐시 시스템 및 방법 그리고 파일 캐시 어플리케이션을 배포하는 배포 시스템 및 배포 방법에 관한 것이다.Embodiments of the present invention relate to a file cache system and method using allocation tables and a distribution system and distribution method for distributing file cache applications.

종래기술에 따른 파일 캐시 시스템에서는 파일 단위 또는 바이너리 청크(binary chunk) 단위로 복수의 캐시(cache) 데이터 저장소를 구성하였다. 예를 들어, 인터넷 브라우저에서의 캐싱(caching)이나 서버 대 서버간의 데이터 통신시에는, 파일 단위의 캐시 구조를 사용하기 때문에 복수의 파일들을 캐싱하기 위해서는 복수의 캐시 파일들이 생성 및 관리되어야 한다.In the file cache system according to the related art, a plurality of cache data stores are configured in units of files or binary chunks. For example, in caching in an Internet browser or data communication between a server and a server, a cache unit of a file unit is used. Therefore, in order to cache a plurality of files, a plurality of cache files must be created and managed.

즉, 이러한 종래기술에서는 파일 단위나 바이너리 청크 단위로 복수의 캐시 데이터 저장소를 구성하여 동일한 데이터가 반복적으로 요청될 때, 데이터의 전달 시간을 줄일 수 있으나, 복수의 캐시 데이터 저장소에서 필요로 하는 캐시 데이터 블록을 찾기 위한 비용이 매우 큰 문제점이 있다. 예를 들어, 복수의 파일들에 대해 파일 단위로 캐시 데이터를 유지하는 경우, 필요로 하는 캐시 데이터 블록이 어느 캐시 파일에 저장되어 있는지 알 수 없기 때문에, 각 캐시 파일들을 오픈/클로오즈(open/close)하면서 필요로 하는 캐시 데이터 블록을 찾아야만 한다.That is, in this conventional technology, when a plurality of cache data stores are configured in units of files or binary chunks and the same data is repeatedly requested, the data transfer time can be reduced. However, There is a problem that the cost for finding a block is very large. For example, when the cache data is held on a file-by-file basis for a plurality of files, it is not possible to know which cache file the cache data block is stored in. Therefore, each cache file is open / close) to find the cache data blocks that are needed.

특히, 하드 디스크와 같은 비휘발성 저장 매체의 접근 시간(access time)은 메모리와 같은 휘발성 저장 매체에 비해 상대적으로 매우 길기 때문에, 캐시 파일들이 비휘발성 저장 매체에 저장되는 경우, 복수의 캐시 파일들을 오픈/클로오즈하기 위한 시간적 비용은 매우 클 수 밖에 없다. Particularly, since the access time of a nonvolatile storage medium such as a hard disk is relatively long as compared with a volatile storage medium such as a memory, when cache files are stored in a nonvolatile storage medium, The time cost for closure is very large.

본 명세서에서는, 보다 효율적으로 파일의 캐싱이 가능한 시스템 및 방법이 제공된다.In this specification, a system and method are provided that enable caching of files more efficiently.

파일 데이터를 주고 받는 시스템들 사이에서 동일 파일이 반복적으로 요청되는 경우, 고성능 파일 캐시를 이용하여 효율적으로 파일 전송의 처리가 가능한 파일 캐시 시스템 및 방법을 제공한다.There is provided a file cache system and method capable of efficiently processing a file transfer using a high performance file cache when the same file is repeatedly requested between systems that send and receive file data.

복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소에 대해, 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블을 저장하고, 할당 테이블에서 반환되는 캐시 인덱스를 제공하는 메모리 및 할당 테이블에서 파일 접근 요청에 해당하는 캐시 인덱스를 확인하고, 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 파일 접근 요청에 해당하는 요청정보를 추출하는 프로세서를 포함하는 파일 캐시 시스템이 제공된다.A memory for storing an allocation table including a cache index for indexing stored information, a memory for providing a cache index returned from the allocation table, and a file access There is provided a file cache system including a processor for checking a cache index corresponding to a request and extracting request information corresponding to a file access request from a single cache data repository using the checked cache index.

일측에 따르면, 단일 캐시 데이터 저장소는, 캐시 인덱스가 식별자로서 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터들로 분류될 수 있다. 이때, 프로세서는, 할당 테이블에서 확인된 캐시 인덱스를 통해 복수의 클러스터들 중 요청정보가 저장된 클러스터를 확인할 수 있다.According to one aspect, a single cache data store can be classified into a plurality of clusters each assigned a cache index as an identifier and each having a predetermined unit size. At this time, the processor can identify the cluster in which the request information is stored among the plurality of clusters through the cache index identified in the allocation table.

다른 측면에 따르면, 할당 테이블은, 복수의 파일 각각에 대한 파일 경로 및 마지막으로 수정된 시각에 대한 정보와 단일 캐시 데이터 저장소의 클러스터들 중 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하기 위한 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함할 수 있다.According to another aspect, the allocation table includes a cache for identifying a cluster in which the beginning of each of a plurality of files of clusters of a single cache data store is stored, information about the file path and last modified time for each of the plurality of files, And cache maps that store indexes in association with each other.

또 다른 측면에 따르면, 파일 접근 요청은, 요청정보가 포함된 파일의 파일 경로 및 파일이 마지막으로 수정된 시각을 포함할 수 있다. 이때, 프로세서는, 파일 접속 요청에 포함된 파일 경로 및 시각에 기초하여 캐시 맵에서 대응하는 캐시 인덱스를 확인할 수 있다.According to another aspect, a file access request may include a file path of a file containing request information and a time when the file was last modified. At this time, the processor can check the corresponding cache index in the cache map based on the file path and the time included in the file connection request.

또 다른 측면에 따르면, 할당 테이블은, 파일 또는 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 캐시 맵에서 확인된 캐시 인덱스와 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함할 수 있다.According to another aspect, the allocation table may include a cache index identified in the cache map and a plurality of cache indexes for identifying the plurality of clusters in which the file or request information is stored if the file or request information is divided and stored across the plurality of clusters And a list for storing them in association with each other.

또 다른 측면에 따르면, 리스트는, 캐시 인덱스의 값에 따라 식별되는 복수의 노드들을 포함할 수 있다. 이 경우, 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들에 대응하는 노드들 중 적어도 하나의 노드에는 복수의 캐시 인덱스들에 대응하는 노드들 중 다른 노드를 나타내기 위한 포인터로서 다른 노드의 캐시 인덱스가 포함될 수 있다.According to another aspect, the list may include a plurality of nodes identified according to the value of the cache index. In this case, at least one of the nodes corresponding to the plurality of cache indexes for identifying the plurality of clusters storing the file or the request information has a pointer for indicating another one of the nodes corresponding to the plurality of cache indexes A cache index of another node may be included.

또 다른 측면에 따르면, 프로세서는, 포인터에 기초하여 파일 또는 요청정보가 저장된 복수의 클러스터들을 확인할 수 있다.According to another aspect, a processor can identify a plurality of clusters on which a file or request information is stored based on a pointer.

또 다른 측면에 따르면, 파일 또는 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별될 수 있다. 이 경우, 파일 또는 요청정보가 저장된 복수의 클러스터들과 동일한 캐시 인덱스를 통해 식별되는 노드들 각각은, 대응하는 클러스터에 저장된 청크의 청크 번호를 포함할 수 있다.According to another aspect, each of the chunks, which are file data stored in each of a plurality of clusters in which a file or request information is stored, can be identified by a chunk number. In this case, each of the nodes identified through the same cache index as the plurality of clusters in which the file or request information is stored may contain the chunk number of the chunk stored in the corresponding cluster.

또 다른 측면에 따르면, 프로세서는, 파일 접속 요청에 청크 번호가 포함된 경우, 리스트의 노드에 저장된 청크 번호와 파일 접속 요청에 포함된 청크 번호에 기초하여 요청정보가 저장된 클러스터를 확인할 수 있다.According to another aspect, the processor can identify clusters in which the request information is stored based on the chunk number stored in the node of the list and the chunk number contained in the file access request, if the file access request includes a chunk number.

또 다른 측면에 따르면, 프로세서는, 요청정보가 포함된 파일에서 요청정보의 위치를 나타내는 오프셋(offset) 또는 캐시 인덱스가 파일 접속 요청에 포함된 경우, 할당 테이블 및 오프셋을 이용하여 또는 할당 테이블 및 파일 접속 요청에 포함된 캐시 인덱스를 이용하여 요청정보가 저장된 클러스터를 확인할 수 있다.According to another aspect, a processor may use an allocation table and an offset, or an allocation table and a file, if an offset or cache index indicating the location of request information in a file containing request information is included in a file access request, The cluster in which the request information is stored can be confirmed by using the cache index included in the connection request.

또 다른 측면에 따르면, 프로세서는, 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우, 요청정보를 기설정된 서버로부터 다운로드하여 파일 접근 요청을 처리하고, 다운로드된 정보를 단일 캐시 데이터 저장소에 저장하며, 메모리의 할당 테이블을 갱신할 수 있다.According to another aspect, a processor is configured to download request information from a predetermined server to process a file access request if the request information is not present in a single cache data store, to store the downloaded information in a single cache data store, The allocation table of the memory can be updated.

복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소에 대해, 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블이 저장된 메모리로 요청정보에 대한 파일 접근 요청을 제공하는 단계 및 할당 테이블에서 파일 접근 요청에 따라 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 요청정보를 추출하는 단계를 포함하는 파일 캐시 방법이 제공된다.Providing a file access request for request information to a memory in which an allocation table including a cache index for indexing stored information is stored for a single cache data store in which information on a plurality of files is stored; Extracting request information from a single cache data store using a cache index identified in response to the request.

컴퓨터 시스템이 광고비를 산정하도록 제어하는 명령(instruction)을 포함하는 컴퓨터 판독가능 저장 매체로서, 명령은, 복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소에 대해, 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블이 저장된 메모리로 요청정보에 대한 파일 접근 요청을 제공하는 단계 및 할당 테이블에서 파일 접근 요청에 따라 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 요청정보를 추출하는 단계를 포함하는 방법에 의하여 컴퓨터 시스템을 제어하는, 컴퓨터 판독가능 저장 매체가 제공된다.A computer readable storage medium containing instructions for controlling a computer system to calculate advertising costs, the instructions comprising: for a single cache data store where information about a plurality of files is stored, a cache index for indexing stored information Providing a file access request for request information to a memory in which an allocation table is stored, and extracting request information from a single cache data store using a cache index identified according to a file access request in an allocation table A computer readable storage medium is provided for controlling a computer system by a method.

파일 캐시 어플리케이션의 설치 파일을 저장 및 유지하는 설치 파일 유지부 및 클라이언트의 요청에 따라 설치 파일을 클라이언트로 전송하는 설치 파일 전송부를 포함하고, 설치 파일을 통해 파일 캐시 어플리케이션이 클라이언트에 설치되는 경우, 단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 파일 캐시 어플리케이션의 제어에 따라 클라이언트의 메모리에 저장되고, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 할당 테이블에서 확인되고, 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 파일 접근 요청에 해당하는 요청정보가 추출되는 것을 특징으로 하는 배포 시스템이 제공된다.An installation file holding section for storing and maintaining an installation file of the file cache application, and an installation file transmission section for transferring the installation file to the client at the request of the client, and when the file cache application is installed on the client through the installation file, An allocation table including a cache index for indexing information on a plurality of files stored in a cache data storage is stored in a memory of a client according to a control of a file cache application, The cache index according to the request is confirmed in the allocation table, and the request information corresponding to the file access request is extracted from the single cache data storage using the checked cache index.

파일 캐시 어플리케이션의 설치 파일을 저장 및 유지하는 단계 및 클라이언트의 요청에 따라 설치 파일을 클라이언트로 전송하는 단계를 포함하고, 설치 파일을 통해 파일 캐시 어플리케이션이 클라이언트에 설치되는 경우, 단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 파일 캐시 어플리케이션의 제어에 따라 클라이언트의 메모리에 저장되고, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 할당 테이블에서 확인되고, 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 파일 접근 요청에 해당하는 요청정보가 추출되는 것을 특징으로 하는 배포 방법이 제공된다.Storing and maintaining an installation file of the file cache application, and transferring the installation file to the client at the request of the client, wherein when the file cache application is installed on the client through the installation file, An allocation table including a cache index for indexing information on a plurality of files is stored in the memory of the client under the control of the file cache application and the cache index Is identified in the allocation table, and the request information corresponding to the file access request is extracted from the single cache data repository using the checked cache index.

파일 데이터를 주고 받는 시스템들 사이에서 동일 파일이 반복적으로 요청되는 경우, 고성능 파일 캐시를 이용하여 효율적으로 파일 데이터의 전송을 처리할 수 있다.When the same file is repeatedly requested between systems that send and receive file data, it is possible to efficiently process the transmission of file data using the high performance file cache.

도 1은 본 발명의 일실시예에 있어서, 클라이언트와 서비스 서버를 나타낸 일례이다.
도 2는 본 발명의 일실시예에 있어서, 클라이언트, 서비스 서버 및 배포 서버를 나타낸 일례이다.
도 3은 본 발명의 일실시예에 있어서, 파일 캐시 시스템의 메모리와 저장 장치를 나타낸 일례이다.
도 4는 본 발명의 일실시예에 있어서, 캐시 맵 및 청크 번호가 포함된 리스트를 나타낸 일례이다.
도 5는 본 발명의 일실시예에 있어서, 파일 캐시 시스템의 내부 구성을 설명하기 위한 블록도이다.
도 6은 본 발명의 일실시예에 있어서, 파일 캐시 방법을 도시한 흐름도이다.
도 7은 본 발명의 일실시예에 있어서, 배포 시스템의 내부 구성을 설명하기 위한 블록도이다.
도 8은 본 발명의 일실시예에 있어서, 배포 방법을 도시한 흐름도이다.
1 is an example of a client and a service server according to an embodiment of the present invention.
2 illustrates an example of a client, a service server, and a distribution server according to an embodiment of the present invention.
3 illustrates an example of a memory and a storage device of a file cache system according to an embodiment of the present invention.
4 illustrates an example of a list including a cache map and a chunk number according to an embodiment of the present invention.
5 is a block diagram for explaining an internal configuration of a file cache system according to an embodiment of the present invention.
6 is a flowchart illustrating a file cache method in an embodiment of the present invention.
7 is a block diagram for explaining an internal configuration of a distribution system according to an embodiment of the present invention.
8 is a flowchart showing a distribution method in an embodiment of the present invention.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 실시예들은 고성능의 파일 캐시 시스템(file cache system)에 관한 것으로, 서버와 클라이언트간, 서버와 서버간 또는 파일 시스템 드라이버의 입출력 요청 패킷(I/O Request Packet)을 전송하는 장치와 입출력 요청 패킷을 처리하는 장치간의 파일 전송을 관리하는 시스템에 관한 것이다. 이후에서는, 파일 데이터를 송수신하는 시스템들 사이에서 동일한 파일이 반복적으로 요청되는 경우, 고성능 파일 캐시를 이용하여 효율적인 파일 전송이 가능하도록 하기 위한 파일 캐시 시스템 및 방법에 관해 설명한다.Embodiments of the present invention relate to a high performance file cache system which includes a device for transmitting an I / O request packet between a server and a client, between a server and a server, or a file system driver, To a system for managing file transfers between devices that process request packets. Hereinafter, a file cache system and method for enabling efficient file transfer using a high-performance file cache when the same file is repeatedly requested between systems transmitting and receiving file data will be described.

도 1은 본 발명의 일실시예에 있어서, 클라이언트와 서비스 서버를 나타낸 일례이다.1 is an example of a client and a service server according to an embodiment of the present invention.

클라이언트(110)는 프로세서(processor)와 메모리(memory)를 적어도 하나씩 포함하여 구현될 수 있는 장치로서, 일례로, 도 1에 도시된 바와 같이, 파일 시스템(111)을 포함하는 운영체제(112), 파일 탐색기(113) 및 적어도 하나의 어플리케이션(114)이 설치된 장치일 수 있다. 운영체제(112) 및 파일 탐색기(113)에 대해서는 이미 잘 알려져 있기 때문에 자세한 설명은 생략한다.The client 110 is an apparatus that can be implemented by including at least one processor and a memory. For example, as shown in FIG. 1, the client 110 includes an operating system 112 including a file system 111, A file searcher 113 and at least one application 114 may be installed. Since the operating system 112 and the file searcher 113 are well known, a detailed description will be omitted.

서비스 탐색기(115)는 클라이언트(110)에 설치되어 동작되는 프로그램으로, 적어도 하나의 어플리케이션(114)에 포함될 수 있다. 이때, 서비스 탐색기(115)는 사용자의 파일 접근 요청(read/write request)을 파일에 대한 네트워크 요청(upload/download request)으로 변환하는 기능을 수행할 수 있다.The service explorer 115 is a program installed and operated in the client 110, and may be included in at least one application 114. At this time, the service explorer 115 may perform a function of converting a user's file access request (read / write request) into a network request (upload / download request) for the file.

이러한 서비스 탐색기(115)는 도 1에 도시된 바와 같이 다운로드 캐시(116)를 포함할 수 있다. 본 발명의 실시예들에서는 이러한 다운로드 캐시(116)를 이용하여 동일한 파일의 반복적 요청을 효율적으로 처리할 수 있다. 도 1에서는 클라이언트(110)와 서비스 서버(120)간의 파일 데이터 전송에 대해 설명하고 있으나, 이는 본 발명의 설명을 위한 하나의 실시예일뿐, 본 발명이 이러한 실시예로 한정되는 것은 아니다. 예를 들어, 서비스 탐색기(115)는 파일 데이터를 송수신하는 시스템들 중 파일 데이터를 수신하는 모든 시스템에서 이용될 수 있다.Such a service explorer 115 may include a download cache 116 as shown in FIG. In embodiments of the present invention, such a download cache 116 can be used to efficiently process repeated requests of the same file. Although FIG. 1 illustrates transmission of file data between the client 110 and the service server 120, the present invention is not limited to such an embodiment. For example, the service explorer 115 may be used in any system that receives file data among systems that send and receive file data.

서비스 서버(120) 역시 프로세서(processor)와 메모리(memory)를 적어도 하나씩 포함하여 구현될 수 있는 장치로서, 클라이언트(110)로 파일 데이터를 제공하는 기능을 수행할 수 있다. 예를 들어, 서비스 서버(120)는 클라우드 스토리지 서비스(cloud storage service)를 클라이언트(110)로 제공하는 시스템일 수 있다. 이 경우, 서비스 서버(120)는 클라우드 스토리지(121)를 포함하거나 또는 외부의 클라우드 스토리지(121)와 연계하여 클라이언트(110)로 클라우드 스토리지 서비스를 제공할 수 있다. The service server 120 may also include at least one processor and a memory. The service server 120 may provide the client 110 with file data. For example, the service server 120 may be a system that provides a cloud storage service to the client 110. In this case, the service server 120 may include the cloud storage 121 or may provide the cloud storage service to the client 110 in cooperation with the external cloud storage 121.

클라이언트(110)와 서비스 서버(120)는 유무선 네트워크를 통해 통신할 수 있다. 이미 설명한 바와 같이, 서비스 탐색기(115)는 사용자의 파일 접근 요청을 파일에 대한 네트워크 요청으로 변환할 수 있고, 클라이언트(110)의 사용자는 간단한 파일 접근 요청만으로도 서비스 서버(120)에 저장된 파일 데이터를 얻을 수 있게 된다.The client 110 and the service server 120 may communicate through a wired or wireless network. As described above, the service explorer 115 can convert the file access request of the user into a network request for the file, and the user of the client 110 can access the file data stored in the service server 120 .

이미 설명한 바와 같이, 종래기술에 따른 파일 캐시 시스템에서는 파일 단위 또는 바이너리 청크(binary chunk) 단위로 캐시 데이터 저장소를 구성하였다.As described above, in the file cache system according to the related art, a cache data storage is configured in units of files or binary chunks.

그러나, 본 발명의 실시예들에 따른 파일 캐시 시스템에서는 복수의 캐시 데이터 저장소가 아닌 단일 캐시 저장소를 사용할 수 있다. 이때, 파일 캐시 시스템은 단일 캐시 저장소에 대한 인덱스 및 메타데이터를 할당 테이블(allocation table)의 형태로 메모리(예를 들어, 클라이언트(110)의 메모리) 내에 저장함으로써, 필요한 캐시에 빠르게 접근(access)할 수 있다. 따라서, 본 실시예들에 따른 파일 캐시 시스템을 이용하면, 데이터의 전달 시간을 줄일 수 있고, 전체 시스템의 가용성과 효율성을 향상시킬 수 있다.However, in a file cache system according to embodiments of the present invention, a single cache store may be used instead of a plurality of cache data stores. At this time, the file cache system quickly accesses the necessary cache by storing indexes and metadata for a single cache store in a memory (e.g., memory of the client 110) in the form of an allocation table. can do. Therefore, by using the file cache system according to the present embodiments, it is possible to reduce data transmission time and improve the availability and efficiency of the entire system.

보다 자세하게, 종래기술의 파일 캐시 시스템과 같이 여러 개의 캐시 파일을 이용하는 경우, 각 캐시 데이터 블록을 찾기 위해 각 파일을 오픈/클로오즈 하기 위해 큰 비용이 발생한다. 그러나, 단일 캐시 저장소(예를 들어, 단일 캐시 파일)를 사용하는 경우에는 하나의 핸들(handle)을 유지하여 단일 캐시 저장소에서 원하는 캐시 데이터 블록을 찾을 수 있게 된다. 따라서, 단일 캐시 저장소를 사용하면, 다수의 파일 단위 캐시를 사용할 때 발생하는 핸들의 오픈/클로오즈(open/close) 시간을 줄일 수 있다.More specifically, when using multiple cache files, such as the file cache system of the prior art, a large expense is incurred to open / cache each file to find each cache data block. However, when using a single cache store (e.g., a single cache file), one handle can be maintained to locate the desired cache data block in a single cache store. Thus, using a single cache store can reduce the open / close times of the handles that occur when using multiple file unit caches.

또한, 본 실시예들에 따른 파일 캐시 시스템에서는 할당 테이블에 캐시에 대한 메타데이터를 저장하여 캐시 데이터를 위한 인덱스로 사용할 수 있다. 또한, 이러한 메타데이터를 이용하여 파일 위치 관리나 삭제 등을 용이하게 구현할 수 있다.In the file cache system according to the present embodiments, the metadata about the cache is stored in the allocation table and used as an index for the cache data. In addition, file location management and deletion can be easily implemented using such metadata.

도 2는 본 발명의 일실시예에 있어서, 클라이언트, 서비스 서버 및 배포 서버를 나타낸 일례이다. 클라이언트(210)는 도 1을 통해 설명한 클라이언트(110)에 대응할 수 있고, 서비스 서버(220)는 역시 도 1을 통해 설명한 서비스 서버(120)에 대응할 수 있다.2 illustrates an example of a client, a service server, and a distribution server according to an embodiment of the present invention. The client 210 may correspond to the client 110 described with reference to FIG. 1, and the service server 220 may correspond to the service server 120 described with reference to FIG.

여기서, 배포 서버(230)는 도 1을 통해 설명한 서비스 탐색기(115)를 제공하는 시스템일 수 있다. 예를 들어, 배포 서버(230)는 서비스 탐색기(115)의 설치를 위한 설치 파일을 제공할 수 있고, 클라이언트(210)는 배포 서버(230)로부터 설치 파일을 다운로드하여 서비스 탐색기(115)를 설치할 수 있다.Here, the distribution server 230 may be a system for providing the service explorer 115 described with reference to FIG. For example, the distribution server 230 may provide an installation file for installing the service explorer 115, and the client 210 may download the installation file from the distribution server 230 and install the service explorer 115 .

도 2의 실시예에서 배포 서버(230)는 서비스 서버(220)와 별도의 시스템으로 설명되었으나, 다른 실시예로 배포 서버(230)와 서비스 서버(220)는 동일한 하나의 시스템일 수도 있다. 즉, 서비스 서버(220)는 클라이언트(210)로 파일 데이터를 제공함과 동시에 서비스 탐색기(115)의 설치를 위한 설치 파일을 제공할 수도 있다.2, the distribution server 230 is described as a separate system from the service server 220. However, in another embodiment, the distribution server 230 and the service server 220 may be the same system. That is, the service server 220 may provide file data to the client 210 and may provide an installation file for installation of the service explorer 115.

도 3은 본 발명의 일실시예에 있어서, 파일 캐시 시스템의 메모리와 저장 장치를 나타낸 일례이다. 본 실시예에서 파일 캐시 시스템은 도 1을 통해 설명한 클라이언트(110) 또는 도 2를 통해 설명한 클라이언트(210)에 대응할 수 있다. 즉, 파일 데이터를 송수신하는 시스템들 중 파일 데이터를 수신하는 시스템이 본 실시예에 따른 파일 캐시 시스템에 대응될 수 있다. 이때, 파일 캐시 시스템은 도 3에 도시된 바와 같이 메모리(310)외에도 하드 디스크와 같이 파일을 저장할 수 있는 저장 장치(320)를 더 포함할 수 있다.3 illustrates an example of a memory and a storage device of a file cache system according to an embodiment of the present invention. In this embodiment, the file cache system may correspond to the client 110 described with reference to FIG. 1 or the client 210 described with reference to FIG. That is, a system for receiving file data among systems transmitting and receiving file data may correspond to a file cache system according to the present embodiment. At this time, the file cache system may further include a storage device 320, such as a hard disk, in addition to the memory 310 as shown in FIG.

메모리(310)에는 이미 설명한 바와 같이 할당 테이블이 저장될 수 있다. 도 3의 메모리(310)에는 메모리(310)에 저장되는 할당 테이블의 일례를 나타내고 있다. 할당 테이블은 저장 장치(320)에 저장된 캐시 파일(321)에 대한 위치정보를 포함하는 테이블을 포함할 수 있다. 이러한 할당 테이블이 메모리(310)에 저장됨으로써, 보다 빠른 캐싱 처리가 가능해진다.In the memory 310, an allocation table can be stored as described above. An example of an allocation table stored in the memory 310 is shown in the memory 310 of FIG. The allocation table may include a table containing location information for the cache file 321 stored in the storage device 320. [ This allocation table is stored in the memory 310, thereby enabling faster caching processing.

할당 테이블은, 도 3에 도시된 바와 같이 캐시 맵(311)을 포함하도록 구성될 수 있다. 캐시 맵(311)은 파일 요청에 대하여, 캐시 인덱스를 반환할 수 있다. 이때, 캐시 맵(311)에서 반환되는 캐시 인덱스는 캐시 파일(321) 내에서 해당 파일의 시작 위치(예를 들어, 해당 파일의 시작 부분이 저장된 클러스터(cluster)의 클러스터 번호)를 나타낼 수 있다. 이러한 캐시 맵(311)은 도 3의 실시예와 같이, 파일 경로(file path) 및 마지막 쓰기 시각(Last Write Time)을 키(key)로서 포함할 수 있고, 캐시 인덱스를 대응하는 값으로 맵핑하는 자료구조를 이용하여 구현될 수 있다.The allocation table may be configured to include a cache map 311 as shown in FIG. The cache map 311 may return a cache index for a file request. At this time, the cache index returned from the cache map 311 may indicate the start position of the corresponding file in the cache file 321 (for example, the cluster number of the cluster where the start portion of the file is stored). 3, the cache map 311 may include a file path and a last write time as a key, and maps the cache index to a corresponding value Can be implemented using a data structure.

이미 설명한 바와 같이, 캐시 맵(311)에서 반환되는 캐시 인덱스에 따라 요청되는 파일의 시작 부분이 저장된 클러스터의 클러스터 번호가 확인될 수 있다. 그러나, 요청된 파일의 크기가 클러스터의 크기보다 크다면, 요청된 파일은 복수개의 클러스터들의 위치에 저장될 수 있다. 따라서, 요청된 파일의 이어지는 부분들 역시 확인이 될 필요가 있다. 즉, 할당 테이블은, 요청된 파일의 시작 부분 외에도 이어지는 부분을 더 찾기 위해 도 3에 도시된 바와 같이 리스트(list)(312)를 더 포함할 수 있다.As described above, the cluster number of the cluster in which the start of the requested file is stored can be confirmed according to the cache index returned from the cache map 311. [ However, if the size of the requested file is larger than the size of the cluster, the requested file may be stored in the location of the plurality of clusters. Therefore, subsequent parts of the requested file also need to be acknowledged. That is, the allocation table may further include a list (312) as shown in FIG. 3 to further locate subsequent portions beyond the beginning of the requested file.

리스트(312)는 복수의 노드들을 포함할 수 있다. 도 3에서 리스트(312)의 열(column)들 각각이 하나의 노드를 나타낼 수 있다. 이때, 노드들 각각은 해당 노드를 식별하기 위한 정보로서 캐시 인덱스를 포함할 수 있다. 즉, 캐시 인덱스는 클러스터의 클러스터 번호에도 대응되지만, 리스트(312)에 포함된 노드들을 식별하기 위해서도 이용될 수 있다. 도 3에서 각 열의 위쪽에 쓰여진 숫자들이 해당 노드를 식별하기 위한 캐시 인덱스의 값을 의미할 수 있다. 예를 들어, 캐시 맵(311)에서 캐시 인덱스 '1'이 반환되면, 캐시 인덱스 '1'에 대응하는 노드(즉, 리스트(312)에서 두 번째 열에 해당하는 노드)가 리스트(312)에서 확인될 수 있다.The list 312 may include a plurality of nodes. In FIG. 3, each of the columns of the list 312 may represent one node. At this time, each of the nodes may include a cache index as information for identifying the corresponding node. That is, the cache index corresponds to the cluster number of the cluster, but can also be used to identify the nodes included in the list 312. [ In FIG. 3, the numbers written on the upper side of each column may indicate the value of the cache index for identifying the corresponding node. For example, when the cache index '1' is returned from the cache map 311, the node corresponding to the cache index '1' (that is, the node corresponding to the second column in the list 312) .

도 3에서 각 노드들은 또한 두 개의 행(row)들을 포함할 수 있다.In FIG. 3, each node may also include two rows.

리스트(312)의 첫 번째 행은 파일의 시작을 나타내는 정보나 이전 노드를 나타내는 정보가 나타나 있다. 예를 들어, 두 번째 열과 다섯 번째 열의 'BOF(Begin Of File)'는 파일의 시작을 나타낼 수 있고, 네 번째 열의 숫자 '1'은 이전 노드에 대응하는 캐시 인덱스를 나타내는 포인터일 수 있다.The first row of the list 312 shows information indicating the start of a file or information indicating a previous node. For example, the 'Begin Of File' (BOF) in the second and fifth columns may indicate the beginning of the file, and the number '1' in the fourth column may be a pointer to the cache index corresponding to the previous node.

리스트(312)의 두 번째 행은 요청된 파일의 이어지는 부분이 저장된 위치에 해당하는 노드를 나타낼 수 있다. 즉, 두 번째 열의 두 번째 행에 나타난 숫자 '3'은 캐시 인덱스 '3'에 대응하는 노드(즉, 네 번째 열에 해당하는 노드)를 나타낼 수 있다. 즉, 캐시 인덱스 '1'인 클러스터 번호 '1'의 클러스터에 포함된 파일 데이터의 다음 파일 데이터는 캐시 인덱스 '3'인 클러스터 번호 '3'의 클러스터에 저장되어 있음이 나타나 있다. 또한, 클러스터 번호 '3'의 클러스터에 저장된 파일 데이터의 다음 파일 데이터는 클러스터 번호 'n'의 클러스터에 저장되어 있음이 나타나 있다. 'EOF(End Of File)'는 파일의 끝을 나타낼 수 있다. 예를 들어, 도 2의 일례에서 '파일 경로 2' 및 '시각 2'를 값으로 하는 파일은 캐시 파일 내에서 클러스터 번호 '4' 및 '5'의 위치에 저장되어 있음을 알 수 있다.The second row of the list 312 may represent the node corresponding to the location where the subsequent portion of the requested file is stored. That is, the number '3' in the second row of the second column may represent the node corresponding to the cache index '3' (i.e., the node corresponding to the fourth column). That is, it is shown that the next file data of the file data included in the cluster of the cluster number '1' having the cache index '1' is stored in the cluster of the cluster number '3' having the cache index '3'. It is also shown that the next file data of the file data stored in the cluster of cluster number '3' is stored in the cluster of cluster number 'n'. 'EOF (End Of File)' can indicate the end of the file. For example, in the example of FIG. 2, it can be seen that files having values of 'file path 2' and 'time 2' are stored in the cache file at positions of cluster numbers '4' and '5'.

이와 같이, 도 3의 리스트(312)에서 메모리 맵(313)에 전달되는 값 'a'는 '1'에, 'b'는 '3'에, 'c'는 '4'에 'd'는 '5'에 각각 대응될 수 있다. 여기서, 메모리 맵(313)은 일반적인 컴퓨터 시스템에서 기억 장소 할당 상태를 나타내는 구성요소로, 본 발명의 구현에 있어서 필수적인 것은 아니며, 이미 잘 알려져 있기 때문에 구체적인 설명은 생략한다.The values 'a', 'b', 'c', 'd', and 'd' in the list 312 shown in FIG. 3 are transferred to the memory map 313, And " 5 " respectively. Here, the memory map 313 is a constituent element indicating a storage location allocation state in a general computer system, and is not essential in the implementation of the present invention, and is not well described because it is well known.

도 3에서 리스트(312)는 도 2에서 더블 링크드 리스트(double linked-list)의 형태로 나타나 있으나, 본 발명의 이해를 돕기 위한 하나의 실시예로서 제시된 것일 뿐, 파일의 이어지는 부분을 찾기 위한 자료구조가 링크드 리스트나 더블 링크드 리스트와 같은 특정 자료구조로 한정되는 것은 아니다. 즉, 파일의 이어지는 부분을 찾을 수 있는 모든 자료구조들 중 하나가 이용될 수 있다. 예를 들어, 배열이나 트리 등의 구조를 이용해서도 연결된 다른 값을 확인함으로써 파일의 이어지는 부분이 저장된 클러스터의 클러스터 번호가 확인될 수 있다.In FIG. 3, the list 312 is shown in the form of a double linked-list in FIG. 2, but is provided only as an example for facilitating understanding of the present invention. The structure is not limited to a specific data structure, such as a linked list or a double-linked list. That is, one of every data structure that can find the next part of the file can be used. For example, by using a structure such as an array or a tree, the cluster number of the cluster in which the succeeding portion of the file is stored can be confirmed by confirming other connected values.

또한, 이미 설명한 바와 같이, 캐시 맵(311)에서 반환되는 캐시 인덱스는 캐시 파일 내에서 해당 파일의 시작 위치(클러스터(cluster) 번호)를 나타낼 수 있다. 그러나, 여기서의 시작 위치는 해당 파일에 대해 캐시 파일 내에 저장된 청크(chunk)들 중 가장 빠른 순서의 청크의 위치를 의미할 수도 있다.Also, as described above, the cache index returned from the cache map 311 may indicate the start position (cluster number) of the file in the cache file. However, the starting location here may refer to the location of the chunks in the earliest order among the chunks stored in the cache file for the file.

예를 들어, 리스트(312)의 각 노드에는 캐싱된 특정 파일의 청크 번호에 대응하는 값(도 2에서는 미도시)이 포함될 수도 있다. 본 명세서에서, '청크'는 캐시 파일(321)로 캐싱되는 특정 파일의 특정 범위(range)에 해당하는 데이터 블록을, '클러스터'는 캐시 파일(321)의 정해진 크기 단위를 각각 의미할 수 있다. For example, each node in the list 312 may include a value (not shown in FIG. 2) corresponding to the chunk number of the cached specific file. In this specification, 'chunk' may refer to a data block corresponding to a specific range of a specific file cached by the cache file 321, and 'cluster' may refer to a predetermined size unit of the cache file 321 .

이때, 파일 캐시 시스템은 청크 번호를 이용하여 캐시 파일에서 특정 파일의 중간 부분부터 접근할 수도 있다. 예를 들어, 10개의 청크들로 나누어질 수 있는 파일 'A'에 대해, 3 내지 5 번째 청크들과 8 내지 10 번째 청크들만이 캐싱되어 캐싱 파일에 저장된 경우, 캐시 맵(321)은 파일 'A'의 세 번째 청크의 위치를 나타내기 위한 캐시 인덱스의 값을 반환할 수 있다. 이때, 반환된 캐시 인덱스의 값에 대응하는 리스트(312)의 노드는 네 번째 청크의 위치를 포함하는 노드를 나타내기 위한 정보를 두 번째 행에 포함하게 된다. 다른 예로, 파일 'A'에 대해, 캐시 파일(321)에 캐싱된 데이터가 존재하지 않고, 파일 'A'의 세 번째 청크부터 다섯 번째 청크까지가 사용자에 의해 요청된 경우, 파일 캐시 시스템은 해당 범위(range)의 청크들을 다른 시스템에 요청하여 다운로드 한 후 캐시 파일(321)에 저장할 수 있다. 이때, 파일 'A'의 세 번째 청크가 저장된 캐시 파일(321)의 인덱스가 파일 'A'에 대한 캐시 인덱스로 설정될 수 있다. 캐시 파일(321)에 저장된 부분이 해당 파일의 어느 위치인가는 리스트(312)내에 포함되는 청크 번호를 통해 확인될 수 있다.At this time, the file cache system may access the cache file from the middle portion of the specific file using the chunk number. For example, for file 'A', which can be divided into ten chunks, if only the third through fifth chunks and the eighth through tenth chunks are cached and stored in the caching file, A 'to return the value of the cache index to indicate the location of the third chunk. At this time, the node in the list 312 corresponding to the value of the returned cache index includes the information for indicating the node including the position of the fourth chunk in the second row. As another example, for file 'A', if there is no cached data in cache file 321 and the third to fifth chunks of file 'A' are requested by the user, The chunks of the range may be requested to another system and downloaded and stored in the cache file 321. At this time, the index of the cache file 321 in which the third chunk of the file 'A' is stored may be set to the cache index for the file 'A'. The location of the file stored in the cache file 321 can be confirmed through the chunk number contained in the list 312.

이때, 파일 'A'에 대해 첫 번째 청크와 두 번째 청크에 대한 요청이 수신되면, 첫 번째 청크와 두 번째 청크에 따른 범위(range)의 청크들이 다른 시스템으로부터 다운로드되어 캐시 파일(321)에 저장될 수 있다. 이때, 파일 'A'에 대한 캐시 인덱스는 첫 번째 청크가 저장된 캐시 파일(321)의 인덱스로 갱신될 수 있다. 또한, 두 번째 청크에 해당하는 리스트(312)의 노드에는 세 번째 청크에 해당하는 노드로의 정보가 포함될 수 있다. 반대로, 세 번째 청크에 해당하는 노드에는 두 번째 청크를 나타내기 위한 정보가 포함될 수 있다. 즉, 첫 번째 청크에 해당하는 노드부터 다섯 번째 청크에 해당하는 노드까지의 노드들이 리스트(312)를 통해 연결되게 된다.At this time, when a request for the first chunk and the second chunk is received for the file 'A', the chunks of the range corresponding to the first chunk and the second chunk are downloaded from another system and stored in the cache file 321 . At this time, the cache index for the file 'A' may be updated with the index of the cache file 321 in which the first chunk is stored. In addition, information on the node corresponding to the third chunk may be included in the node of the list 312 corresponding to the second chunk. Conversely, the node corresponding to the third chunk may contain information for indicating the second chunk. That is, the nodes from the node corresponding to the first chunk to the node corresponding to the fifth chunk are connected through the list 312.

또한, 청크들의 연결 순서가 반드시 연속적일 필요는 없다. 예를 들어, 파일 'A'에 대해 첫 번째 청크부터 다섯 번째 청크까지, 그리고 여덟 번째 청크부터 열 번째 청크까지가 캐시 파일(221)에 저장된 경우, 다섯 번째 청크에 대응하는 노드는 여덟 번째 청크에 대응하는 노드를 나타내기 위한 정보를 포함할 수 있다. 즉, 리스트(312)에서는 현재 존재하는 청크들간의 연속성이 유지될 수도 있다. 이때, 첫 번째 청크에 대응하는 노드에는 파일의 시작을 나타내는 정보인 'BOF'가, 열 번째 청크에 대응하는 노드에는 파일의 끝을 나타내는 정보인 'EOF'가 각각 포함될 수 있다.Also, the chaining order of the chunks does not necessarily have to be continuous. For example, if from the first chunk to the fifth chunk for the file 'A' and from the eighth chunk to the tenth chunk are stored in the cache file 221, then the node corresponding to the fifth chunk is in the eighth chunk And may include information for indicating a corresponding node. That is, in the list 312, continuity between currently existing chunks may be maintained. At this time, the node corresponding to the first chunk may include 'BOF', which indicates the start of the file, and the node corresponding to the tenth chunk, may contain 'EOF', which indicates the end of the file.

이후, 여섯 번째 청크 및 일곱 번째 청크에 대한 읽기 요청이 발생하여 추가로 캐싱되는 경우, 중간 부분의 리스트를 수정하여 첫 번째 청크부터 열 번째 청크까지에 대한 전체 리스트가 완성될 수 있다.Thereafter, if a read request for the sixth chunk and the seventh chunk occurs and is further cached, the list of intermediate parts can be modified to complete the entire list from the first chunk to the tenth chunk.

저장 장치(320)에는 이미 설명한 바와 같이 하나의 파일로 구성된 캐시 파일(321)이 저장된 모습을 나타내고 있다. 캐시 파일의 크기는 (1) 사용자에 의해 설정될 수도 있고, (2) 입출력 요청의 빈도, 캐시 상태, 저장 장치(320)의 용량 중 적어도 하나를 고려하여 파일 캐시 시스템에 의해 적응적으로(adaptive) 설정될 수도 있다.The storage device 320 stores a cache file 321 composed of one file as described above. The size of the cache file may be set by (1) the user, (2) adaptively by the file cache system in consideration of at least one of the frequency of I / O requests, the cache state, ).

캐시 파일(221)은 정해진 크기(예를 들면, 16 킬로바이트)의 클러스터(cluster) 단위로 구분될 수 있다. 예를 들어, 하나의 클러스터 단위는 전체 캐시 파일(321)의 크기를 단위 크기로 나누었을 때, 그 특정 크기 하나에 해당하는 단위를 나타낼 수 있다. 이때, 각 클러스터들에 대해서 순서대로 인덱스(상술한 클러스터 번호)가 부여될 수 있다. 본 실시예들에 따른 파일 캐시 시스템은 파일 접근 요청을 수신하여 처리하는 시스템일 수 있다. 이때, 파일 접근 요청은 파일 식별자 및 파일 접근 요청 범위(range) 중 적어도 하나를 포함하여 구성될 수 있다. 파일 식별자는 해당 파일을 식별하기 위한 것으로, 파일 경로 및 가장 최근 수정 시각을 포함할 수 있다. 또한, 파일 접근 요청 범위는 해당 파일 중에서 사용자가 원하는 파일의 부분을 의미할 수 있다. 이러한 파일 접근 요청 범위는 파일 시작 위치로부터의 오프셋(offset) 또는 클러스터 번호나 청크 번호를 이용하여 표현될 수 있다.The cache file 221 can be divided into cluster units of a predetermined size (for example, 16 kilobytes). For example, when one cluster unit divides the size of the entire cache file 321 by a unit size, it may represent a unit corresponding to one specific size. At this time, an index (the above-described cluster number) may be given to each cluster in order. The file cache system according to the present embodiments may be a system for receiving and processing a file access request. At this time, the file access request may include at least one of a file identifier and a file access request range. The file identifier is for identifying the file, and may include the file path and the latest modification time. In addition, the scope of the file access request may indicate a portion of the file desired by the user. Such a file access request range can be expressed using an offset from a file start position or a cluster number or a chunk number.

파일 캐시 시스템은 정해진 클러스터 단위로 데이터를 관리할 수 있다. 따라서, 파일 접근 요청 범위를 이용하여 파일 접근 요청이 발생한 경우, 파일 접근 요청 범위는 클러스터의 배수에 해당하도록 조절될 수 있다. 예를 들어, 클러스터의 단위가 64 킬로바이트(65536 바이트)이고, 파일 접근 요청 범위가 해당 파일의 앞부분 67 킬로바이트에 해당하는 오프셋 0 부터 68607 바이트까지의 부분에 해당하는 경우, 파일 캐시 시스템은 파일 접근 요청 범위를 조절하여 오프셋 0 부터 131071(65536 * 2 - 1) 바이트까지의 범위(즉, 클러스터의 두 단위인 128 킬로바이트에 해당하는 오프셋의 범위)의 데이터를 확인하여 요청된 오프셋의 데이터들을 처리할 수 있다. 즉, 오프셋 0 에서 68607 바이트에 해당하는 데이터는, 오프셋 0 에서 65535 바이트까지의 하나의 청크와 오프셋 65536 바이트부터 68607 바이트까지의 다른 하나의 청크인 두 개의 청크가 존재하도록 리스트(312)가 구성될 수 있다. 여기서, 오프셋이 반드시 파일 시작 위치로부터의 범위를 가질 필요는 없다. 예를 들어, 오프셋은 65536 바이트부터 68607 바이트까지의 범위와 같이 파일 중간의 범위를 나타낼 수도 있다.The file cache system can manage data in a predetermined cluster unit. Therefore, when a file access request is generated using the file access request range, the file access request range can be adjusted to correspond to a multiple of the cluster. For example, if the unit of the cluster is 64 kilobytes (65536 bytes) and the scope of the file access request corresponds to a portion of offset 0 to 68607 bytes corresponding to 67 kilobytes before the file, By adjusting the range, you can process the data of the requested offset by checking the data in the range from offset 0 to 131071 (65536 * 2 - 1) bytes (that is, the range of the offset corresponding to 128 kilobytes, have. That is, in the data corresponding to the offset 0 to 68607 bytes, the list 312 is configured so that there are two chunks, one chunk from offset 0 to 65535 byte and another chunk from offset 65536 byte to 68607 byte . Here, the offset need not necessarily have a range from the file start position. For example, an offset may indicate a range in the middle of a file, such as a range from 65536 bytes to 68607 bytes.

파일 캐시 시스템은 요청 받은 파일이 캐시 파일(321)에 저장되어 있는 경우(즉, 캐시 맵(311)에 해당 파일에 대한 정보가 존재하는 경우), 캐시 파일(321)에서 해당 데이터(바이너리 청크(binary chunks))를 읽어 반환할 수 있다. 보다 자세하게, 해당 파일 경로와 가장 최근 수정된 시각을 이용하여 캐시 맵(311)에서 캐시 인덱스를 찾고, 리스트(312)를 이용하여 저장 장치(320)의 캐시 파일(321)로부터 요청된 파일 접근 요청 범위에 해당하는 부분을 읽어서 반환할 수 있다.When the requested file is stored in the cache file 321 (that is, when information on the file exists in the cache map 311), the file cache system reads the corresponding data (binary chunk binary chunks) can be read and returned. More specifically, the cache index 311 is searched for in the cache map 311 using the file path and the most recently modified time, and the requested file access request is retrieved from the cache file 321 of the storage device 320 using the list 312 You can read and return parts of the range.

캐시 파일(321)에 해당 파일 접근 요청 범위에 해당하는 부분이 저장되어 있는지 여부는 리스트(312)에 저장된 청크 번호를 이용하여 판단할 수 있다. 예를 들어, 청크 번호 '3'과 청크 번호 '4'가 리스트(312)의 노드 'A' 및 노드 'B'를 통해 식별 가능한 경우, 노드 'A'와 노드 'B'의 캐시 인덱스를 이용하여 청크 번호 '3'과 청크 번호 '4'에 해당하는 청크가 저장된 클러스터 번호를 알 수 있다. 따라서, 청크 번호 '3'과 청크 번호 '4'에 해당하는 청크들을 읽을 수 있다.Whether or not a portion corresponding to the file access request range is stored in the cache file 321 can be determined using the chunk number stored in the list 312. For example, if the chunk number '3' and the chunk number '4' are identifiable through the node 'A' and the node 'B' of the list 312, the cache index of the node 'A' And the cluster number in which the chunk corresponding to the chunk number '3' and the chunk number '4' is stored can be known. Therefore, chunks corresponding to chunk number '3' and chunk number '4' can be read.

만약, 캐시 파일(321)에 저장되어 있지 않은 파일 또는 해당 파일의 저장되어 있지 않은 파일 접근 요청 범위의 데이터가 필요한 경우, 파일 캐시 시스템은 다른 시스템으로부터 필요한 데이터를 요청하여 다운로드받아 캐시 파일(321)에 저장할 수 있다. 만약, 캐시 파일(321)의 용량이 가득 찬 경우(즉, 캐시 풀(cache full)의 상태인 경우)에는 새로운 데이터를 저장하기 위해 기존의 데이터를 일부 삭제할 수 있다. 예를 들어, LRU(Least recently used) 알고리즘을 이용하여 사용한지 가장 오래된 파일 데이터를 삭제할 수 있다. 이 경우, 캐시 파일(321)에서 파일 데이터를 직접 삭제하는 것이 아니라, 할당 테이블에 저장된 메타데이터를 삭제함으로써, 보다 간단히 파일 데이터의 삭제가 구현될 수 있다.If a file that is not stored in the cache file 321 or a file access request range in which the file is not stored is required, the file cache system requests the necessary data from another system and downloads the cache file 321, Lt; / RTI > If the capacity of the cache file 321 is full (that is, in a cache full state), some of the existing data may be deleted to store new data. For example, the oldest file data that has been used can be deleted using the LRU (Least Recently Used) algorithm. In this case, the file data can be deleted more simply by deleting the metadata stored in the allocation table, rather than directly deleting the file data from the cache file 321. [

도 4는 본 발명의 일실시예에 있어서, 캐시 맵 및 청크 번호가 포함된 리스트를 나타낸 일례이다. 캐시 맵(410)은 도 3을 통해 설명한 캐시 맵(311)과 같이 파일 경로와 파일에 대해 가장 최근에 수정된 시각을 키로 받아 캐시 인덱스를 값으로 반환하는 자료구조의 형태로 구현될 수 있다.4 illustrates an example of a list including a cache map and a chunk number according to an embodiment of the present invention. The cache map 410 may be implemented in the form of a data structure, such as the cache map 311 described with reference to FIG. 3, in which the file path and the most recently modified time of the file are received as keys and the cache index is returned as a value.

또한, 이미 설명한 바와 같이 파일 접근 요청은 파일 경로와 시각뿐만 아니라, 파일 접근 요청 범위를 더 포함할 수 있다. 도 4의 예에서는 특정 파일 'A'에 대해 청크 번호 '2' 및 청크 번호 '3'의 청크들에 대해, 파일 접근 요청 범위가 설정되었다고 가정한다. 이때, 파일 접근 요청 범위는 직접 청크 번호를 포함할 수도 있으나, 오프셋을 포함할 수도 있다. 예를 들어, 클러스터의 단위가 64 킬로바이트(65536 바이트)이고, 파일 접근 요청 범위가 해당 파일의 중간 부분 67 킬로바이트에 해당하는 오프셋 65536 바이트부터 134144 바이트까지의 부분에 해당한다고 가정한다. 이때, 클러스터의 단위에 기초하여 오프셋 0부터 65535 바이트까지는 청크 번호 '1'에 해당하고, 오프셋 65536 바이트부터 131071 바이트까지는 청크 번호 '2'에 해당하며, 131072 바이트부터 134144 바이트까지는 청크 번호 '3'에 해당함이 계산될 수 있다. 따라서, 파일 접근 요청 범위로 입력된 오프셋 65536 바이트부터 134144 바이트까지는 청크 번호 '2' 및 청크 번호 '3'에 대응함을 알 수 있다. 이와 같이, 클러스터 단위를 이용하여 오프셋을 통해서도 청크 번호가 계산될 수 있다.In addition, as described above, the file access request may further include a file access request range as well as a file path and time. In the example of FIG. 4, it is assumed that a file access request range is set for the chunks of the chunk number '2' and the chunk number '3' for the specific file 'A'. At this time, the file access request range may include a direct chunk number, but may include an offset. For example, suppose that the unit of the cluster is 64 kilobytes (65536 bytes), and the file access request range corresponds to the portion from offset 65536 bytes to 134144 bytes, which corresponds to 67 kilobytes in the middle part of the file. At this time, the chunk number '1' corresponds to the chunk number '1' from the offset 0 to 65535 bytes, the chunk number '2' corresponds to the offset 65536 bytes to the 131071 byte, the chunk number '3' corresponds to the 131072 byte to the 134144 byte, Can be calculated. Therefore, it can be seen that the offset from 65536 bytes to 134144 bytes input in the file access request range corresponds to the chunk number '2' and the chunk number '3'. Thus, a chunk number can also be calculated through an offset using a cluster unit.

리스트(420)는 도 3을 통해 설명한 리스트(312)보다 하나의 행(도 4의 리스트(420)에서 두 번째 행)을 더 포함하고 있다. 이러한, 두 번째 행은 청크 번호에 대응될 수 있다.The list 420 further includes one row (the second row in the list 420 of FIG. 4) than the list 312 described with reference to FIG. This second row may correspond to a chunk number.

즉, 캐시 맵(410)이 캐시 인덱스 '1'을 반환하면, 파일 캐시 시스템은 리스트(420)의 두 번째 노드(두 번째 열에 해당하는 노드)를 확인할 수 있다. 이때, 두 번째 노드의 두 번째 행에는 청크 번호 '1'이 포함되어 있고, 청크 번호 '1'은 파일 접근 요청 범위에 포함되지 않는다.That is, if the cache map 410 returns the cache index '1', the file cache system can identify the second node (the node corresponding to the second column) of the list 420. At this time, the second row of the second node includes the chunk number '1', and the chunk number '1' is not included in the file access request range.

따라서, 파일 캐시 시스템은 리스트(420)의 두 번째 노드에 포함된 세 번째 행의 값 '3'에 따라 네 번째 노드(네 번째 열에 해당하는 노드)를 확인할 수 있다. 이때, 파일 캐시 시스템은 네 번째 노드의 두 번째 행에서 청크 번호 '2'를 확인할 수 있고, 클러스터 번호 '3'의 클러스터에 청크 번호 '2'에 대응하는 청크가 포함되어 있음을 알 수 있다.Accordingly, the file cache system can identify the fourth node (the node corresponding to the fourth column) according to the value '3' of the third row included in the second node of the list 420. At this time, the file cache system can confirm the chunk number '2' in the second row of the fourth node and know that the cluster of cluster number '3' contains the chunk corresponding to the chunk number '2'.

또한, 파일 캐시 시스템은 네 번째 노드의 세 번째 행에 포함된 값 '4'를 통해 리스트(420)의 다섯 번째 노드(다섯 번째 열에 해당하는 노드)를 확인할 수 있다. 이때, 파일 캐시 시스템은 다섯 번째 노드의 두 번째 행에서 청크 번호 '3'을 확인할 수 있고, 클러스터 번호 '4'의 클러스터에 청크 번호 '3'에 대응하는 청크가 포함되어 있음을 알 수 있다.In addition, the file cache system can identify the fifth node (the node corresponding to the fifth column) of the list 420 through the value '4' included in the third row of the fourth node. At this time, the file cache system can recognize the chunk number '3' in the second row of the fifth node, and the cluster of the cluster number '4' contains the chunk corresponding to the chunk number '3'.

따라서, 파일 캐시 시스템은 파일 접근 요청에 대한 응답으로써 저장 장치에 포함된 캐시 파일에서 클러스터 번호 '4' 및 '5'의 파일 데이터를 추출하여 제공함으로써, '파일 경로 1' 및 '시각 1'에 대응하는 파일의 청크 번호 '2' 및 청크 번호 '3'에 대응하는 청크들을 제공할 수 있다.Therefore, the file cache system extracts and provides file data of cluster numbers '4' and '5' in the cache file included in the storage device in response to the file access request, And may provide chunks corresponding to chunk number '2' and chunk number '3' of the corresponding file.

다시 말해, 청크 번호가 포함된 리스트(420)를 이용함으로써, 파일 캐시 시스템은 파일의 중간부터의 접근이 가능해진다.In other words, by using the list 420 including the chunk number, the file cache system becomes accessible from the middle of the file.

도 5는 본 발명의 일실시예에 있어서, 파일 캐시 시스템의 내부 구성을 설명하기 위한 블록도이다. 본 실시예에 따른 파일 캐시 시스템(500)은 적어도 하나의 메모리(510)와 적어도 하나의 프로세서(520)를 포함하는 장치이거나 또는 상기 장치에 포함된 시스템일 수 있다. 이때, 파일 캐시 시스템(500)은 단일 캐시 데이터 저장소(530)를 필요에 따라 더 포함할 수 있다. 도 5에서는 단일 캐시 데이터 저장소(530)가 파일 캐시 시스템(500)에 포함되도록 구현된 실시예를 설명하고 있으나, 단일 캐시 데이터 저장소(530)는, 필요에 따라 파일 캐시 시스템(500)의 외부에서 파일 캐시 시스템(500)과 데이터의 송수신이 가능하도록 연계된 형태로 구현될 수도 있다.5 is a block diagram for explaining an internal configuration of a file cache system according to an embodiment of the present invention. The file cache system 500 according to the present embodiment may be a device including at least one memory 510 and at least one processor 520, or a system included in the device. At this time, the file cache system 500 may further include a single cache data store 530 as needed. Although a single cache data store 530 is illustrated in FIG. 5 as being embodied in a file cache system 500, a single cache data store 530 may be provided outside the file cache system 500, Or may be implemented in a form linked with the file cache system 500 so that data can be transmitted and received.

이러한 단일 캐시 데이터 저장소(530)는 하드 디스크와 같은 저장 장치를 통해 구현될 수 있으며, 저장 장치에 저장된 하나의 파일 형태로 파일 데이터들이 저장될 수 있다.The single cache data store 530 may be implemented through a storage device such as a hard disk, and file data may be stored in a single file format stored in the storage device.

메모리(510)는 복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소(530)에 대해, 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블을 저장할 수 있다. 이미 설명한 바와 같이, 여러 개의 캐시 파일을 이용하는 경우, 각 캐시 데이터 블록을 찾기 위해 각 파일을 오픈/클로오즈 하기 위해 큰 비용이 발생하는 반면, 본 실시예에서는 파일에 대한 정보를 단일 캐시 데이터 저장소(530)에 저장함으로써, 이러한 하나의 캐시 파일에 대한 핸들만 유지하면 되기 때문에 복수의 캐시 파일에 대해 발생하는 비용을 감소시킬 수 있다. 또한, 단일 캐시 데이터 저장소(530)에 저장된 정보의 인덱싱을 위한 캐시 인덱스를 메모리(510)에 저장함으로써, 필요한 캐시 데이터에 빠르게 접속할 수 있다. 따라서, 캐시 데이터의 전달 시간을 줄일 수 있으며, 데이터를 송수신하는 전체 시스템의 가용성과 효율성을 높일 수 있다.The memory 510 may store an allocation table including a cache index for indexing stored information for a single cache data store 530 where information about a plurality of files is stored. As described above, when a plurality of cache files are used, a large cost is incurred to open / cache each file to find each cache data block. In contrast, in the present embodiment, 530), it is possible to reduce the cost incurred for a plurality of cache files since it is necessary to hold only a handle to this one cache file. In addition, by storing the cache index for indexing the information stored in the single cache data store 530 in the memory 510, it is possible to quickly access necessary cache data. Accordingly, the transmission time of the cache data can be reduced, and the availability and efficiency of the entire system for transmitting and receiving data can be increased.

프로세서(520)는 상기 할당 테이블에서 파일 접근 요청에 해당하는 캐시 인덱스를 확인하고, 상기 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소(530)로부터 파일 접근 요청에 해당하는 요청정보를 추출할 수 있다. 즉, 프로세서(520)는 캐시 인덱스에 따라 단일 캐시 데이터 저장소(530)에서 필요한 정보를 찾아 추출할 수 있다.The processor 520 may check the cache index corresponding to the file access request in the allocation table and extract the request information corresponding to the file access request from the single cache data store 530 using the checked cache index . That is, the processor 520 can find and extract the necessary information from the single cache data store 530 according to the cache index.

예를 들어, 단일 캐시 데이터 저장소(530)는 캐시 인덱스가 식별자로 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터로 분류될 수 있다. 이때, 프로세서(520)는 할당 테이블에서 확인된 캐시 인덱스를 통해 복수의 클러스터들 중 상기 요청정보가 저장된 클러스터를 확인할 수 있다.For example, the single cache data store 530 may be classified into a plurality of clusters each assigned a cache index as an identifier and each having a predetermined unit size. At this time, the processor 520 can confirm the cluster in which the request information is stored among the plurality of clusters through the cache index identified in the allocation table.

할당 테이블은, 복수의 파일 각각에 대한 파일 식별 정보 및 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함할 수 있다. 여기서, 상기 파일 식별 정보는 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함할 수 있으며, 캐시 인덱스는 단일 캐시 데이터 저장소(530)의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하기 위해 이용될 수 있다. 이때, 파일 접근 요청은, 요청정보가 포함된 파일의 파일 경로, 파일 이름 및 파일이 마지막으로 수정된 시각 중 적어도 하나를 포함할 수 있다. 이 경우, 프로세서(520)는 파일 접근 요청에 포함된 파일 경로, 파일 이름 및 시각 중 적어도 하나에 기초하여 상기 캐시 맵에서 대응하는 캐시 인덱스를 확인할 수 있다. 즉, 프로세서(520)는 캐시 맵에서 반환되는 캐시 인덱스를 통해서도 요청정보가 포함된 파일의 시작부분이 저장된 클러스터를 식별할 수 있다.The allocation table may include a cache map for storing file identification information and cache indexes for each of a plurality of files in association with each other. Here, the file identification information may include at least one of a file path, a file name, and a last modified time, and the cache index may include at least one of clusters of a single cache data storage 530, May be used to identify the stored cluster. At this time, the file access request may include at least one of the file path of the file containing the request information, the file name, and the time when the file was last modified. In this case, the processor 520 can check the corresponding cache index in the cache map based on at least one of the file path, file name, and time included in the file access request. That is, the processor 520 can identify the cluster in which the beginning of the file including the request information is stored through the cache index returned from the cache map.

그러나, 하나의 클러스터는 이미 설명한 바와 같이 기설정된 단위크기를 갖고, 하나의 파일의 크기는 가변적이기 때문에 하나의 파일이 하나의 클러스터에 저장되지 못하는 경우도 발생할 수 있다. 다시 말해, 하나의 파일이 복수의 클러스터들에 분할되어 저장될 수도 있다.However, since one cluster has a predetermined unit size and the size of one file is variable, it is possible that one file can not be stored in one cluster. In other words, one file may be divided and stored in a plurality of clusters.

이러한 경우를 위해, 할당 테이블은 파일 또는 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 캐시 맵에서 확인된 캐시 인덱스와 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함할 수 있다. 여기서, 리스트는 캐시 인덱스 값에 따라 식별되는 복수의 노드들을 포함할 수 있다. 이 경우, 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들에 대응하는 노드들 중 적어도 하나의 노드에는 상기 복수의 캐시 인덱스들에 대응하는 노드들 중 다른 노드를 나타내기 위한 포인터로서 다른 노드의 캐시 인덱스가 포함될 수 있다. 이때, 프로세서(520)는 포인터에 기초하여 파일 또는 요청정보가 저장된 복수의 클러스터들을 확인할 수 있다.For this case, the allocation table may include a cache index identified in the cache map and a plurality of cache indexes for identifying the plurality of clusters in which the file or request information is stored, if the file or request information is stored in a plurality of clusters And may further include a list associating and storing. Here, the list may include a plurality of nodes identified according to the cache index value. In this case, at least one node among the nodes corresponding to the plurality of cache indexes for identifying the plurality of clusters storing the file or the request information may be configured to represent another node among the nodes corresponding to the plurality of cache indexes The cache index of another node may be included as a pointer. At this time, the processor 520 can identify a plurality of clusters on which the file or request information is stored based on the pointer.

여기서, 특정 노드가 다른 노드의 캐시 인덱스를 포함하는 경우, 특정 노드의 캐시 인덱스를 통해 식별되는 클러스터에 저장된 정보와 다른 노드의 캐시 인덱스를 통해 식별되는 클러스터에 저장된 정보가 서로 연속된 정보이거나 또는 서로 연관된 정보일 수 있다. 여기서, 서로 연관된 정보는 하나의 파일에 대해 단일 캐시 데이터 저장소(530)에 저장된 정보가 연속적이지 않은 경우, 연속적이지 않은 정보들을 연결하는 정보들을 의미할 수 있다. 예를 들어, A, B, C, D로 이루어진 파일에서 A, B, D만이 각각 서로 다른 클러스터들에 저장된 경우, B 및 D가 서로 연관된 정보일 수 있다.Here, when the specific node includes the cache index of another node, the information stored in the cluster identified through the cache index of the specific node and the information stored in the cluster identified through the cache index of the other node are continuous information, May be associated information. Here, the information related to each other may refer to information connecting non-contiguous information when the information stored in the single cache data store 530 for one file is not continuous. For example, when only A, B, and D are stored in different clusters in a file consisting of A, B, C, and D, B and D may be information related to each other.

클러스터를 식별하기 위한 캐시 인덱스는 해당 클러스터의 클러스터 번호에 대응될 수 있다. 즉, 하나의 클러스터에는 하나의 클러스터 번호가 할당될 수 있고, 이러한 하나의 클러스터 번호는 하나의 캐시 인덱스에 대응될 수 있다. 따라서, 하나의 캐시 인덱스를 통해 하나의 클러스터를 식별할 수 있다.The cache index for identifying the cluster may correspond to the cluster number of the corresponding cluster. That is, one cluster number may be assigned to one cluster, and one cluster number may correspond to one cache index. Therefore, one cluster index can be identified through one cache index.

또한, 파일 또는 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별될 수 있다. 이 경우, 파일 또는 요청정보가 저장된 복수의 클러스터들과 동일한 캐시 인덱스를 통해 식별되는 노드들 각각은, 대응하는 클러스터에 저장된 청크의 청크 번호를 포함할 수 있다. 이때, 프로세서(520)는 파일 접속 요청에 청크 번호가 포함된 경우, 리스트의 노드에 저장된 청크 번호와 파일 접속 요청에 포함된 청크 번호에 기초하여 요청정보가 저장된 클러스터를 확인할 수 있다.Each of the chunks, which are file data stored in each of a plurality of clusters in which a file or request information is stored, can be identified by a chunk number. In this case, each of the nodes identified through the same cache index as the plurality of clusters in which the file or request information is stored may contain the chunk number of the chunk stored in the corresponding cluster. At this time, if the chunk number is included in the file access request, the processor 520 can confirm the cluster storing the request information based on the chunk number stored in the node of the list and the chunk number included in the file access request.

또한, 프로세서(520)는 요청정보가 포함된 파일에서 요청정보의 위치를 나타내는 오프셋(offset) 또는 캐시 인덱스가 파일 접속 요청에 포함된 경우, 할당 테이블 및 오프셋을 이용하여 또는 할당 테이블 및 파일 접속 요청에 포함된 캐시 인덱스를 이용하여 요청정보가 포함된 클러스터를 확인할 수 있다.If an offset or cache index indicating the location of the requested information in the file containing the request information is included in the file access request, the processor 520 may use the allocation table and the offset, It is possible to confirm the cluster including the request information by using the cache index included in the cache index.

이에 더해, 프로세서(520)는, 요청정보가 단일 캐시 데이터 저장소(530)에 존재하지 않는 경우, 요청정보를 기설정된 서버로부터 다운로드하여 파일 접근 요청을 처리할 수 있고, 다운로드된 정보를 단일 캐시 데이터 저장소(530)에 저장할 수 있으며, 메모리(510)의 할당 테이블을 갱신할 수 있다. 기설정된 서버는 도 1을 통해 설명한 서비스 서버(120)에 대응될 수 있다.In addition, if the request information is not present in the single cache data store 530, the processor 520 may download the request information from a predetermined server to process the file access request, May be stored in the storage 530 and the allocation table of the memory 510 may be updated. The predetermined server may correspond to the service server 120 described with reference to FIG.

할당 테이블의 캐시 맵과 리스트를 이용하여 요청정보를 추출하는 구체적인 예시나 요청정보가 단일 캐시 데이터 저장소(530)에 존재하지 않는 경우의 처리 방법에 대한 구체적인 예시는 이미 도 3 및 도 4를 통해 자세히 설명하였기에 반복적인 설명은 생략한다.A concrete example of extracting the request information using the cache map and list of the allocation table or a specific example of a processing method when the request information does not exist in the single cache data storage 530 is already described with reference to FIGS. 3 and 4 So that repetitive description will be omitted.

도 6은 본 발명의 일실시예에 있어서, 파일 캐시 방법을 도시한 흐름도이다. 본 실시예에 따른 파일 캐시 방법은 도 5를 통해 설명한 파일 캐시 시스템(500)에 의해 수행될 수 있다.6 is a flowchart illustrating a file cache method in an embodiment of the present invention. The file cache method according to the present embodiment can be performed by the file cache system 500 described with reference to FIG.

단계(610)에서 파일 캐시 시스템(500)은 복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소에 대해, 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블이 저장된 메모리로 요청정보에 대한 파일 접근 요청을 제공할 수 있다. 이미 설명한 바와 같이, 여러 개의 캐시 파일을 이용하는 경우, 각 캐시 데이터 블록을 찾기 위해 각 파일을 오픈/클로오즈 하기 위해 큰 비용이 발생하는 반면, 본 실시예에서는 파일에 대한 정보를 단일 캐시 데이터 저장소에 저장함으로써, 이러한 하나의 캐시 파일에 대한 오픈/클로오즈 비용만이 발생하기 때문에 복수의 캐시 파일에 대해 발생하는 비용을 감소시킬 수 있다. 또한, 단일 캐시 데이터 저장소에 저장된 정보의 인덱싱을 위한 캐시 인덱스를 메모리에 저장함으로써, 필요한 캐시 데이터에 빠르게 접속할 수 있다. 따라서, 캐시 데이터의 전달 시간을 줄일 수 있으며, 데이터를 송수신하는 전체 시스템의 가용성과 효율성을 높일 수 있다.In step 610, the file cache system 500 is a memory for storing, for a single cache data store in which information about a plurality of files is stored, an allocation table including a cache index for indexing stored information, It can provide an access request. As described above, when a plurality of cache files are used, a large cost is incurred to open / cache each file to find each cache data block. On the other hand, in the present embodiment, By storing, only the open / closure cost for this one cache file occurs, so that the cost incurred for a plurality of cache files can be reduced. In addition, by storing the cache index for indexing the information stored in the single cache data storage in the memory, it is possible to quickly access necessary cache data. Accordingly, the transmission time of the cache data can be reduced, and the availability and efficiency of the entire system for transmitting and receiving data can be increased.

단계(620)에서 파일 캐시 시스템(500)은 할당 테이블에서 파일 접근 요청에 따라 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 요청정보를 추출할 수 있다. 즉, 파일 캐시 시스템(500)은 단계(620)에서 캐시 인덱스에 따라 단일 캐시 데이터 저장소에서 필요한 정보를 찾아 추출할 수 있다.In step 620, the file cache system 500 may extract the request information from a single cache data store using the cache index identified according to the file access request in the allocation table. That is, the file cache system 500 can find and extract the necessary information from a single cache data store according to the cache index in step 620. [

예를 들어, 단일 캐시 데이터 저장소는 캐시 인덱스가 식별자로 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터로 분류될 수 있다. 이때, 파일 캐시 시스템(500)은 단계(620)에서 할당 테이블에서 확인된 캐시 인덱스를 통해 복수의 클러스터들 중 요청정보가 저장된 클러스터를 확인할 수 있다.For example, a single cache data store may be classified into a plurality of clusters each assigned a cache index as an identifier and each having a predetermined unit size. At this time, the file cache system 500 can identify the cluster in which the request information is stored among the plurality of clusters through the cache index identified in the allocation table in step 620. [

여기서, 할당 테이블은, 파일 식별 정보 및 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함할 수 있다. 여기서, 상기 파일 식별 정보는, 복수의 파일 각각에 대한 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함할 수 있으며, 캐시 인덱스는 단일 캐시 데이터 저장소의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하기 위해 이용될 수 있다. 이때, 파일 접근 요청은, 요청정보가 포함된 파일의 파일 경로, 파일 이름 및 파일이 마지막으로 수정된 시각 중 적어도 하나를 포함할 수 있다. 이 경우, 할당 테이블에서 확인된 캐시 인덱스는, 파일 접근 요청에 포함된 파일 경로, 파일 이름 및 시각 중 적어도 하나에 기초하여 캐시 맵에서 확인되는 캐시 인덱스를 포함할 수 있다. 즉, 파일 캐시 시스템(500)은 단계(620)에서 캐시 맵에서 반환되는 캐시 인덱스를 통해서도 요청정보가 포함된 파일의 시작부분이 저장된 클러스터를 식별할 수 있다.Here, the allocation table may include a cache map for storing file identification information and cache indexes in association with each other. Here, the file identification information may include at least one of a file path, a file name, and a last modified time for each of a plurality of files, and the cache index may include at least one of the plurality of files Each beginning may be used to identify the cluster in which it is stored. At this time, the file access request may include at least one of the file path of the file containing the request information, the file name, and the time when the file was last modified. In this case, the cache index identified in the allocation table may include a cache index identified in the cache map based on at least one of the file path, file name, and time included in the file access request. That is, the file cache system 500 may identify the cluster in which the beginning of the file containing the request information is stored, through the cache index returned in the cache map in step 620. [

그러나, 하나의 클러스터는 이미 설명한 바와 같이 기설정된 단위크기를 갖고, 하나의 파일의 크기는 가변적이기 때문에 하나의 파일이 하나의 클러스터에 저장되지 못하는 경우도 발생할 수 있다. 다시 말해, 하나의 파일이 복수의 클러스터들에 분할되어 저장될 수도 있다.However, since one cluster has a predetermined unit size and the size of one file is variable, it is possible that one file can not be stored in one cluster. In other words, one file may be divided and stored in a plurality of clusters.

이러한 경우를 위해, 할당 테이블은 파일 또는 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 캐시 맵에서 확인된 캐시 인덱스와 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함할 수 있다. 여기서, 리스트는 캐시 인덱스 값에 따라 식별되는 복수의 노드들을 포함할 수 있다. 이 경우, 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들에 대응하는 노드들 중 적어도 하나의 노드에는 복수의 캐시 인덱스들에 대응하는 노드들 중 다른 노드를 나타내기 위한 포인터로서 다른 노드의 캐시 인덱스가 포함될 수 있다. 이때, 파일 캐시 시스템(500)은 단계(620)에서 포인터에 기초하여 파일 또는 요청정보가 저장된 복수의 클러스터들을 확인할 수 있다.For this case, the allocation table may include a cache index identified in the cache map and a plurality of cache indexes for identifying the plurality of clusters in which the file or request information is stored, if the file or request information is stored in a plurality of clusters And may further include a list associating and storing. Here, the list may include a plurality of nodes identified according to the cache index value. In this case, at least one of the nodes corresponding to the plurality of cache indexes for identifying the plurality of clusters storing the file or the request information has a pointer for indicating another one of the nodes corresponding to the plurality of cache indexes A cache index of another node may be included. At this time, the file cache system 500 can identify a plurality of clusters in which the file or request information is stored based on the pointer in step 620. [

여기서, 특정 노드가 다른 노드의 캐시 인덱스를 포함하는 경우, 특정 노드의 캐시 인덱스를 통해 식별되는 클러스터에 저장된 정보와 다른 노드의 캐시 인덱스를 통해 식별되는 클러스터에 저장된 정보가 서로 연속된 정보이거나 또는 서로 연관된 정보일 수 있다. 여기서, 서로 연관된 정보는 하나의 파일에 대해 단일 캐시 데이터 저장소에 저장된 정보가 연속적이지 않은 경우, 연속적이지 않은 정보들을 연결하는 정보들을 의미할 수 있다. 예를 들어, A, B, C, D로 이루어진 파일에서 A, B, D만이 각각 서로 다른 클러스터들에 저장된 경우, B 및 D가 서로 연관된 정보일 수 있다.Here, when the specific node includes the cache index of another node, the information stored in the cluster identified through the cache index of the specific node and the information stored in the cluster identified through the cache index of the other node are continuous information, May be associated information. Here, the information related to each other may refer to information that links non-contiguous information when information stored in a single cache data store for one file is not continuous. For example, when only A, B, and D are stored in different clusters in a file consisting of A, B, C, and D, B and D may be information related to each other.

클러스터를 식별하기 위한 캐시 인덱스는 해당 클러스터의 클러스터 번호에 대응될 수 있다. 즉, 하나의 클러스터에는 하나의 클러스터 번호가 할당될 수 있고, 이러한 하나의 클러스터 번호는 하나의 캐시 인덱스에 대응될 수 있다. 따라서, 하나의 캐시 인덱스를 통해 하나의 클러스터를 식별할 수 있다.The cache index for identifying the cluster may correspond to the cluster number of the corresponding cluster. That is, one cluster number may be assigned to one cluster, and one cluster number may correspond to one cache index. Therefore, one cluster index can be identified through one cache index.

또한, 파일 또는 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별될 수 있다. 이 경우, 파일 또는 요청정보가 저장된 복수의 클러스터들과 동일한 캐시 인덱스를 통해 식별되는 노드들 각각은, 대응하는 클러스터에 저장된 청크의 청크 번호를 포함할 수 있다. 이때, 파일 캐시 시스템(500)은 단계(620)에서 파일 접속 요청에 청크 번호가 포함된 경우, 리스트의 노드에 저장된 청크 번호와 파일 접속 요청에 포함된 청크 번호에 기초하여 요청정보가 저장된 클러스터를 확인할 수 있다.Each of the chunks, which are file data stored in each of a plurality of clusters in which a file or request information is stored, can be identified by a chunk number. In this case, each of the nodes identified through the same cache index as the plurality of clusters in which the file or request information is stored may contain the chunk number of the chunk stored in the corresponding cluster. At this time, if the chunk number is included in the file access request in step 620, the file cache system 500 stores the cluster in which the request information is stored based on the chunk number stored in the node of the list and the chunk number included in the file access request Can be confirmed.

또한, 파일 캐시 시스템(500)은 단계(620)에서 요청정보가 포함된 파일에서 요청정보의 위치를 나타내는 오프셋(offset) 또는 캐시 인덱스가 파일 접속 요청에 포함된 경우, 할당 테이블 및 오프셋을 이용하여 또는 할당 테이블 및 파일 접속 요청에 포함된 캐시 인덱스를 이용하여 요청정보가 저장된 클러스터를 확인할 수 있다.In addition, if the file cache 500 includes an offset or a cache index indicating the location of the requested information in the file including the requested information in step 620, the file cache 500 uses the allocation table and the offset Or the cluster in which the request information is stored can be confirmed using the cache index included in the allocation table and the file access request.

이에 더해, 파일 캐시 방법은 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우, 요청정보를 기설정된 서버로부터 다운로드하는 단계(미도시), 다운로드된 정보에 기초하여 파일 접근 요청을 처리하고, 다운로드된 정보를 단일 캐시 데이터 저장소에 저장하는 단계(미도시) 및 메모리의 할당 테이블을 갱신하는 단계(미도시)를 더 포함할 수 있다. 이때, 파일 캐시 방법에 더 포함되는 단계들 역시 파일 캐시 시스템(500)에 의해 수행될 수 있다. 기설정된 서버는 도 1을 통해 설명한 서비스 서버(120)에 대응될 수 있다.In addition, the file cache method includes a step (not shown) of downloading request information from a predetermined server if the request information does not exist in a single cache data store, processing a file access request based on the downloaded information, (Not shown) of storing the information in a single cache data store and updating the allocation table of the memory (not shown). At this time, further steps included in the file cache method may also be performed by the file cache system 500. The predetermined server may correspond to the service server 120 described with reference to FIG.

할당 테이블의 캐시 맵과 리스트를 이용하여 요청정보를 추출하는 구체적인 예시나 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우의 처리 방법에 대한 구체적인 예시는 이미 도 3 및 도 4를 통해 자세히 설명하였기에 반복적인 설명은 생략한다.Detailed examples of extracting the request information using the cache map and the list of the allocation table or a processing method when the request information does not exist in a single cache data storage have been described in detail with reference to FIGS. 3 and 4, .

도 7은 본 발명의 일실시예에 있어서, 배포 시스템의 내부 구성을 설명하기 위한 블록도이다. 본 실시예에 따른 배포 시스템(700)은 도 2를 통해 설명한 배포 서버(230)에 대응될 수 있다. 이러한 배포 시스템(700)은 도 7에 도시된 바와 같이, 설치 파일 유지부(710) 및 설치 파일 전송부(720)를 포함할 수 있다.7 is a block diagram for explaining an internal configuration of a distribution system according to an embodiment of the present invention. The distribution system 700 according to the present embodiment may correspond to the distribution server 230 described with reference to FIG. This distribution system 700 may include an installation file holding unit 710 and an installation file transmission unit 720, as shown in FIG.

설치 파일 유지부(710)는 파일 캐시 어플리케이션의 설치 파일을 저장 및 유지한다. 여기서, 파일 캐시 어플리케이션은 도 1을 통해 설명한 서비스 탐색기에 대응될 수 있다.The installation file holding unit 710 stores and maintains the installation file of the file cache application. Here, the file cache application may correspond to the service explorer described with reference to FIG.

설치 파일 전송부(720)는 클라이언트의 요청에 따라 설치 파일을 클라이언트로 전송한다. 여기서, 클라이언트는 일례로, 도 5를 통해 설명한 파일 캐시 시스템(500)에 대응될 수 있다.The installation file transmission unit 720 transmits the installation file to the client at the request of the client. Here, the client may correspond to the file cache system 500 described with reference to FIG. 5 as an example.

설치 파일을 통해 파일 캐시 어플리케이션이 클라이언트에 설치되는 경우, 단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 파일 캐시 어플리케이션의 제어에 따라 클라이언트의 메모리에 저장될 수 있다. 또한, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 할당 테이블에서 확인될 수 있고, 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 파일 접근 요청에 해당하는 요청정보가 추출될 수 있다.When the file cache application is installed in the client through the installation file, an allocation table including a cache index for indexing information on a plurality of files stored in a single cache data repository is stored in the memory of the client under the control of the file cache application Lt; / RTI > Also, according to the control of the file cache application, a cache index according to a file access request can be checked in the allocation table, and request information corresponding to a file access request is extracted from a single cache data store using the checked cache index .

단일 캐시 데이터 저장소는, 하드 디스크와 같은 저장 장치를 통해 구현될 수 있으며, 저장 장치에 저장된 하나의 파일 형태로 파일 데이터들이 저장될 수 있다. 이때, 단일 캐시 데이터 저장소는, 캐시 인덱스가 식별자로서 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터들로 분류될 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 할당 테이블에서 확인된 캐시 인덱스를 통해 복수의 클러스터들 중 요청정보가 저장된 클러스터가 확인될 수 있다.The single cache data storage may be implemented through a storage device such as a hard disk, and file data may be stored in a single file format stored in the storage device. At this time, a single cache data repository can be classified into a plurality of clusters each assigned a cache index as an identifier and each having a predetermined unit size. In this case, according to the control of the file cache application, the cluster in which the request information among the plurality of clusters is stored can be identified in the client through the cache index identified in the allocation table.

여기서, 할당 테이블은, 복수의 파일 각각에 대한 파일 경로 및 마지막으로 수정된 시각에 대한 정보와 단일 캐시 데이터 저장소의 클러스터들 중 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하기 위한 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함할 수 있다. 이때, 파일 접근 요청은, 요청된 정보가 포함된 파일의 파일 경로 및 파일이 마지막으로 수정된 시각을 포함할 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접속 요청에 포함된 파일 경로 및 시각에 대응하는 캐시 인덱스가 캐시 맵을 이용하여 확인될 수 있다.Here, the allocation table includes cache indexes for identifying clusters in which the beginning of each of a plurality of files among the clusters of a single cache data repository and information about the file path and last modified time for each of the plurality of files are stored And cache maps that associate and store cache maps. At this time, the file access request may include the file path of the file containing the requested information and the time when the file was last modified. In this case, according to the control of the file cache application, the cache index corresponding to the file path and the time included in the file access request can be confirmed at the client using the cache map.

또한, 할당 테이블은 파일 또는 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 캐시 맵에서 확인된 캐시 인덱스와 파일 또는 요청된 정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함할 수 있다. 이러한 리스트는, 캐시 인덱스의 값에 따라 식별되는 복수의 노드들을 포함할 수 있다. 이때, 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들에 대응하는 노드들 중 적어도 하나의 노드에는 복수의 캐시 인덱스들에 대응하는 노드들 중 다른 노드를 나타내기 위한 포인터로서 다른 노드의 캐시 인덱스가 포함될 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 포인터에 기초하여 파일 또는 요청정보가 저장된 복수의 클러스터들이 확인될 수 있다.Also, the allocation table associates a cache index identified in the cache map and a plurality of cache indexes for identifying a file or a plurality of clusters in which the requested information is stored, when the file or request information is divided and stored through a plurality of clusters And may further include a list for storing. Such a list may include a plurality of nodes identified according to the value of the cache index. At this time, at least one of the nodes corresponding to the plurality of cache indexes for identifying the plurality of clusters storing the file or the request information is a pointer for indicating another node among the nodes corresponding to the plurality of cache indexes The cache index of another node may be included. In this case, according to the control of the file cache application, at the client, a plurality of clusters storing the file or the request information based on the pointer can be identified.

파일 또는 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별될 수 있다. 이때, 파일 또는 요청정보가 저장된 복수의 클러스터들과 동일한 캐시 인덱스를 통해 식별되는 노드들 각각은, 대응하는 클러스터에 저장된 청크의 청크 번호를 포함할 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접속 요청에 청크 번호가 포함된 경우, 리스트의 노드에 저장된 청크 번호와 파일 접속 요청에 포함된 청크 번호에 기초하여 요청정보가 저장된 클러스터가 확인될 수 있다.Each of the chunks, which are file data stored in each of a plurality of clusters in which a file or request information is stored, can be identified by a chunk number. At this time, each of the nodes identified through the same cache index as the plurality of clusters storing the file or the request information may include a chunk number of the chunk stored in the corresponding cluster. In this case, according to the control of the file cache application, when the client includes a chunk number in the file access request, the cluster storing the request information is checked based on the chunk number stored in the node of the list and the chunk number included in the file access request .

요청정보가 포함된 파일에서 요청된 정보의 위치를 나타내는 오프셋(offset) 또는 캐시 인덱스가 파일 접속 요청에 포함된 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 할당 테이블 및 오프셋을 이용하여 또는 할당 테이블 및 파일 접속 요청에 포함된 캐시 인덱스를 이용하여 요청정보가 저장된 클러스터가 확인될 수 있다. 할당 테이블의 캐시 맵과 리스트를 이용하여 요청정보를 추출하는 구체적인 예시나 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우의 처리 방법에 대한 구체적인 예시는 이미 도 3 및 도 4를 통해 자세히 설명하였기에 반복적인 설명은 생략한다.If an offset or cache index indicating the location of the requested information in the file containing the request information is included in the file access request, then the client may use the allocation table and offset, or in accordance with the control of the file cache application, And the cluster in which the request information is stored can be confirmed using the cache index included in the file connection request. Detailed examples of extracting the request information using the cache map and the list of the allocation table or a processing method when the request information does not exist in a single cache data storage have been described in detail with reference to FIGS. 3 and 4, .

클라이언트는 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우, 요청정보를 기설정된 서버로부터 다운로드하여 파일 접근 요청을 처리하고, 다운로드된 정보를 단일 캐시 데이터 저장소에 저장하며, 메모리의 할당 테이블을 갱신할 수 있다. 이러한 요청정보의 다운로드, 파일 접근 요청의 처리, 다운로드된 정보의 저장 및 할당 테이블 갱신은 파일 캐시 어플리케이션의 제어에 따라 수행될 수 있다. 기설정된 서버는 도 1을 통해 설명한 서비스 서버(120)에 대응될 수 있다.If the request information does not exist in a single cache data store, the client downloads the request information from the predetermined server to process the file access request, stores the downloaded information in a single cache data store, and updates the allocation table of the memory . Such downloading of the request information, processing of the file access request, storage of the downloaded information, and update of the allocation table can be performed under the control of the file cache application. The predetermined server may correspond to the service server 120 described with reference to FIG.

도 8은 본 발명의 일실시예에 있어서, 배포 방법을 도시한 흐름도이다. 본 실시예에 따른 배포 방법은 도 7을 통해 설명한 배포 시스템(700)에 의해 수행될 수 있다.8 is a flowchart showing a distribution method in an embodiment of the present invention. The distribution method according to the present embodiment can be performed by the distribution system 700 described with reference to FIG.

단계(810)에서 배포 시스템(700)은 파일 캐시 어플리케이션의 설치 파일을 저장 및 유지한다. 여기서, 파일 캐시 어플리케이션은 도 1을 통해 설명한 서비스 탐색기에 대응될 수 있다.At step 810, the distribution system 700 stores and maintains the installation file of the file cache application. Here, the file cache application may correspond to the service explorer described with reference to FIG.

단계(820)에서 배포 시스템(700)은 클라이언트의 요청에 따라 설치 파일을 클라이언트로 전송한다. 여기서, 클라이언트는 일례로, 도 5를 통해 설명한 파일 캐시 시스템(500)에 대응될 수 있다.In step 820, the distribution system 700 transmits the installation file to the client at the request of the client. Here, the client may correspond to the file cache system 500 described with reference to FIG. 5 as an example.

설치 파일을 통해 파일 캐시 어플리케이션이 클라이언트에 설치되는 경우, 단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 파일 캐시 어플리케이션의 제어에 따라 클라이언트의 메모리에 저장될 수 있다. 또한, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 할당 테이블에서 확인될 수 있고, 확인된 캐시 인덱스를 이용하여 단일 캐시 데이터 저장소로부터 파일 접근 요청에 해당하는 요청정보가 추출될 수 있다.When the file cache application is installed in the client through the installation file, an allocation table including a cache index for indexing information on a plurality of files stored in a single cache data repository is stored in the memory of the client under the control of the file cache application Lt; / RTI > Also, according to the control of the file cache application, a cache index according to a file access request can be checked in the allocation table, and request information corresponding to a file access request is extracted from a single cache data store using the checked cache index .

단일 캐시 데이터 저장소는, 하드 디스크와 같은 저장 장치를 통해 구현될 수 있으며, 저장 장치에 저장된 하나의 파일 형태로 파일 데이터들이 저장될 수 있다. 이때, 단일 캐시 데이터 저장소는, 캐시 인덱스가 식별자로서 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터들로 분류될 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 할당 테이블에서 확인된 캐시 인덱스를 통해 복수의 클러스터들 중 요청정보가 저장된 클러스터가 확인될 수 있다.The single cache data storage may be implemented through a storage device such as a hard disk, and file data may be stored in a single file format stored in the storage device. At this time, a single cache data repository can be classified into a plurality of clusters each assigned a cache index as an identifier and each having a predetermined unit size. In this case, according to the control of the file cache application, the cluster in which the request information among the plurality of clusters is stored can be identified in the client through the cache index identified in the allocation table.

여기서, 할당 테이블은, 복수의 파일 각각에 대한 파일 경로 및 마지막으로 수정된 시각에 대한 정보와 단일 캐시 데이터 저장소의 클러스터들 중 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하기 위한 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함할 수 있다. 이때, 파일 접근 요청은, 요청된 정보가 포함된 파일의 파일 경로 및 파일이 마지막으로 수정된 시각을 포함할 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접속 요청에 포함된 파일 경로 및 시각에 대응하는 캐시 인덱스가 캐시 맵을 이용하여 확인될 수 있다.Here, the allocation table includes cache indexes for identifying clusters in which the beginning of each of a plurality of files among the clusters of a single cache data repository and information about the file path and last modified time for each of the plurality of files are stored And cache maps that associate and store cache maps. At this time, the file access request may include the file path of the file containing the requested information and the time when the file was last modified. In this case, according to the control of the file cache application, the cache index corresponding to the file path and the time included in the file access request can be confirmed at the client using the cache map.

또한, 할당 테이블은 파일 또는 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 캐시 맵에서 확인된 캐시 인덱스와 파일 또는 요청된 정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함할 수 있다. 이러한 리스트는, 캐시 인덱스의 값에 따라 식별되는 복수의 노드들을 포함할 수 있다. 이때, 파일 또는 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들에 대응하는 노드들 중 적어도 하나의 노드에는 복수의 캐시 인덱스들에 대응하는 노드들 중 다른 노드를 나타내기 위한 포인터로서 다른 노드의 캐시 인덱스가 포함될 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 포인터에 기초하여 파일 또는 요청정보가 저장된 복수의 클러스터들이 확인될 수 있다.Also, the allocation table associates a cache index identified in the cache map and a plurality of cache indexes for identifying a file or a plurality of clusters in which the requested information is stored, when the file or request information is divided and stored through a plurality of clusters And may further include a list for storing. Such a list may include a plurality of nodes identified according to the value of the cache index. At this time, at least one of the nodes corresponding to the plurality of cache indexes for identifying the plurality of clusters storing the file or the request information is a pointer for indicating another node among the nodes corresponding to the plurality of cache indexes The cache index of another node may be included. In this case, according to the control of the file cache application, at the client, a plurality of clusters storing the file or the request information based on the pointer can be identified.

파일 또는 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별될 수 있다. 이때, 파일 또는 요청정보가 저장된 복수의 클러스터들과 동일한 캐시 인덱스를 통해 식별되는 노드들 각각은, 대응하는 클러스터에 저장된 청크의 청크 번호를 포함할 수 있다. 이 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 파일 접속 요청에 청크 번호가 포함된 경우, 리스트의 노드에 저장된 청크 번호와 파일 접속 요청에 포함된 청크 번호에 기초하여 요청정보가 저장된 클러스터가 확인될 수 있다.Each of the chunks, which are file data stored in each of a plurality of clusters in which a file or request information is stored, can be identified by a chunk number. At this time, each of the nodes identified through the same cache index as the plurality of clusters storing the file or the request information may include a chunk number of the chunk stored in the corresponding cluster. In this case, according to the control of the file cache application, when the client includes a chunk number in the file access request, the cluster storing the request information is checked based on the chunk number stored in the node of the list and the chunk number included in the file access request .

요청정보가 포함된 파일에서 요청된 정보의 위치를 나타내는 오프셋(offset) 또는 캐시 인덱스가 파일 접속 요청에 포함된 경우, 파일 캐시 어플리케이션의 제어에 따라 클라이언트에서, 할당 테이블 및 오프셋을 이용하여 또는 할당 테이블 및 파일 접속 요청에 포함된 캐시 인덱스를 이용하여 요청정보가 저장된 클러스터가 확인될 수 있다. 할당 테이블의 캐시 맵과 리스트를 이용하여 요청정보를 추출하는 구체적인 예시나 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우의 처리 방법에 대한 구체적인 예시는 이미 도 3 및 도 4를 통해 자세히 설명하였기에 반복적인 설명은 생략한다.If an offset or cache index indicating the location of the requested information in the file containing the request information is included in the file access request, then the client may use the allocation table and offset, or in accordance with the control of the file cache application, And the cluster in which the request information is stored can be confirmed using the cache index included in the file connection request. Detailed examples of extracting the request information using the cache map and the list of the allocation table or a processing method when the request information does not exist in a single cache data storage have been described in detail with reference to FIGS. 3 and 4, .

클라이언트는 요청정보가 단일 캐시 데이터 저장소에 존재하지 않는 경우, 요청정보를 기설정된 서버로부터 다운로드하여 파일 접근 요청을 처리하고, 다운로드된 정보를 단일 캐시 데이터 저장소에 저장하며, 메모리의 할당 테이블을 갱신할 수 있다. 이러한 요청정보의 다운로드, 파일 접근 요청의 처리, 다운로드된 정보의 저장 및 할당 테이블 갱신은 파일 캐시 어플리케이션의 제어에 따라 수행될 수 있다. 기설정된 서버는 도 1을 통해 설명한 서비스 서버(120)에 대응될 수 있다.If the request information does not exist in a single cache data store, the client downloads the request information from the predetermined server to process the file access request, stores the downloaded information in a single cache data store, and updates the allocation table of the memory . Such downloading of the request information, processing of the file access request, storage of the downloaded information, and update of the allocation table can be performed under the control of the file cache application. The predetermined server may correspond to the service server 120 described with reference to FIG.

도 5 내지 도 8에서 생략된 내용은 도 1 내지 도 4의 내용을 참조할 수 있다.The contents omitted in FIGS. 5 to 8 can be referred to the contents of FIG. 1 to FIG.

이와 같이, 본 발명의 실시예들에 따르면, 파일 데이터를 주고 받는 시스템들 사이에서 동일 파일이 반복적으로 요청되는 경우, 고성능 파일 캐시를 이용하여 효율적으로 파일 데이터의 전송을 처리할 수 있다.As described above, according to the embodiments of the present invention, when the same file is repeatedly requested between systems that send and receive file data, it is possible to efficiently process the transmission of file data using the high performance file cache.

이상에서 설명된 장치는 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 예를 들어, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPA(field programmable array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 애플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The apparatus described above may be implemented as a hardware component, a software component, and / or a combination of hardware components and software components. For example, the apparatus and components described in the embodiments may be implemented within a computer system, such as, for example, a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable array (FPA) A programmable logic unit (PLU), a microprocessor, or any other device capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications running on the operating system. The processing device may also access, store, manipulate, process, and generate data in response to execution of the software. For ease of understanding, the processing apparatus may be described as being used singly, but those skilled in the art will recognize that the processing apparatus may have a plurality of processing elements and / As shown in FIG. For example, the processing unit may comprise a plurality of processors or one processor and one controller. Other processing configurations are also possible, such as a parallel processor.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instructions, or a combination of one or more of the foregoing, and may be configured to configure the processing device to operate as desired or to process it collectively or collectively Device can be commanded. The software and / or data may be in the form of any type of machine, component, physical device, virtual equipment, computer storage media, or device , Or may be permanently or temporarily embodied in a transmitted signal wave. The software may be distributed over a networked computer system and stored or executed in a distributed manner. The software and data may be stored on one or more computer readable recording media.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The method according to an embodiment may be implemented in the form of a program command that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions to be recorded on the medium may be those specially designed and configured for the embodiments or may be available to those skilled in the art of computer software. Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tape; optical media such as CD-ROMs and DVDs; magnetic media such as floppy disks; Magneto-optical media, and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. Examples of program instructions include machine language code such as those produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. For example, it is to be understood that the techniques described may be performed in a different order than the described methods, and / or that components of the described systems, structures, devices, circuits, Lt; / RTI > or equivalents, even if it is replaced or replaced.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.

310: 메모리
311: 캐시 맵
312: 리스트
320: 저장 장치
330: 캐시 파일
310: memory
311: cache map
312: List
320: Storage device
330: cache file

Claims (19)

복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소;
상기 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블을 저장하는 메모리; 및
상기 할당 테이블에서 파일 접근 요청에 해당하는 캐시 인덱스를 확인하고, 상기 확인된 캐시 인덱스를 이용하여 상기 단일 캐시 데이터 저장소로부터 상기 파일 접근 요청에 해당하는 요청정보를 추출하는 프로세서
를 포함하고,
상기 할당 테이블은, 상기 복수의 파일 각각에 대한 파일 식별 정보 및 상기 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함하고,
상기 파일 식별 정보는 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함하며, 상기 캐시 인덱스는 상기 단일 캐시 데이터 저장소의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하는 것을 특징으로 하는 파일 캐시 시스템.
A single cache data store in which information about a plurality of files is stored;
A memory for storing an allocation table including a cache index for indexing the stored information; And
A processor for checking a cache index corresponding to a file access request in the allocation table and extracting request information corresponding to the file access request from the single cache data store using the checked cache index,
Lt; / RTI >
Wherein the allocation table includes a cache map for storing file identification information for each of the plurality of files and the cache indexes in association with each other,
Wherein the file identification information comprises at least one of a file path, a file name and a last modified time, the cache index identifying a cluster in which the beginning of each of the plurality of files of the single cache data repository is stored And the file cache system.
제1항에 있어서,
상기 단일 캐시 데이터 저장소는, 상기 캐시 인덱스가 식별자로서 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터들로 분류되고,
상기 프로세서는,
상기 할당 테이블에서 확인된 캐시 인덱스를 통해 상기 복수의 클러스터들 중 상기 요청정보가 저장된 클러스터를 확인하는 것을 특징으로 하는 파일 캐시 시스템.
The method according to claim 1,
Wherein the single cache data store is classified into a plurality of clusters each having the cache index assigned as an identifier and each having a predetermined unit size,
The processor comprising:
And a cluster in which the request information is stored among the plurality of clusters is identified through a cache index identified in the allocation table.
삭제delete 제1항에 있어서,
상기 할당 테이블은, 상기 파일 또는 상기 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 상기 캐시 맵에서 확인된 캐시 인덱스와 상기 파일 또는 상기 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함하는 것을 특징으로 하는 파일 캐시 시스템.
The method according to claim 1,
Wherein the allocation table includes a plurality of cache indexes for identifying a cache index identified in the cache map and a plurality of clusters in which the file or the request information is stored when the file or the request information is divided and stored through a plurality of clusters, Further comprising a list for associating and storing the files.
제4항에 있어서,
상기 파일 또는 상기 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별되고,
상기 리스트는 상기 캐시 인덱스에 대응하는 클러스터에 저장된 청크의 청크 번호를 포함하는 것을 특징으로 하는 파일 캐시 시스템.
5. The method of claim 4,
Each of the chunks being file data stored in each of the plurality of clusters in which the file or the request information is stored is identified by a chunk number,
Wherein the list includes a chunk number of a chunk stored in a cluster corresponding to the cache index.
제5항에 있어서,
상기 프로세서는,
상기 파일 접속 요청에 청크 번호가 포함된 경우, 상기 리스트의 노드에 저장된 청크 번호와 상기 파일 접속 요청에 포함된 청크 번호에 기초하여 상기 요청정보가 저장된 클러스터를 확인하는 것을 특징으로 하는 파일 캐시 시스템.
6. The method of claim 5,
The processor comprising:
And if the chunk number is included in the file access request, checks the cluster where the request information is stored based on the chunk number stored in the node of the list and the chunk number included in the file access request.
제1항에 있어서,
상기 프로세서는,
상기 요청정보가 포함된 파일에서 상기 요청정보의 위치를 나타내는 오프셋(offset) 또는 캐시 인덱스가 상기 파일 접속 요청에 포함된 경우,
상기 할당 테이블 및 상기 오프셋을 이용하여 또는 상기 할당 테이블 및 상기 파일 접속 요청에 포함된 캐시 인덱스를 이용하여 상기 요청정보가 저장된 클러스터를 확인하는 것을 특징으로 하는 파일 캐시 시스템.
The method according to claim 1,
The processor comprising:
When an offset or a cache index indicating the location of the request information in the file including the request information is included in the file access request,
Using the allocation table and the offset, or by using a cache index included in the allocation table and the file access request, the cluster storing the request information.
제1항에 있어서,
상기 프로세서는,
상기 요청정보가 상기 단일 캐시 데이터 저장소에 존재하지 않는 경우, 상기 요청정보를 기설정된 서버로부터 다운로드하여 상기 파일 접근 요청을 처리하고, 상기 다운로드된 정보를 상기 단일 캐시 데이터 저장소에 저장하며, 상기 메모리의 할당 테이블을 갱신하는 것을 특징으로 하는 파일 캐시 시스템.
The method according to claim 1,
The processor comprising:
If the request information is not present in the single cache data store, download the request information from a predetermined server to process the file access request, store the downloaded information in the single cache data store, And updates the allocation table.
복수의 파일에 대한 정보가 저장되는 단일 캐시 데이터 저장소에 대해, 상기 저장된 정보의 인덱싱을 위한 캐시 인덱스가 포함된 할당 테이블이 저장된 메모리로 요청정보에 대한 파일 접근 요청을 제공하는 단계; 및
상기 할당 테이블에서 상기 파일 접근 요청에 따라 확인된 캐시 인덱스를 이용하여 상기 단일 캐시 데이터 저장소로부터 상기 요청정보를 추출하는 단계
를 포함하고,
상기 할당 테이블은, 상기 복수의 파일 각각에 대한 파일 식별 정보 및 상기 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함하고,
상기 파일 식별 정보는 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함하며, 상기 캐시 인덱스는 상기 단일 캐시 데이터 저장소의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하는 것을 특징으로 하는 파일 캐시 방법.
Providing a file access request for request information to a memory in which an allocation table including a cache index for indexing the stored information is stored, for a single cache data store in which information on a plurality of files is stored; And
Extracting the request information from the single cache data store using the cache index identified according to the file access request in the allocation table
Lt; / RTI >
Wherein the allocation table includes a cache map for storing file identification information for each of the plurality of files and the cache indexes in association with each other,
Wherein the file identification information comprises at least one of a file path, a file name and a last modified time, the cache index identifying a cluster in which the beginning of each of the plurality of files of the single cache data repository is stored The file cache method comprising:
제9항에 있어서,
상기 단일 캐시 데이터 저장소는, 상기 캐시 인덱스가 식별자로서 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터들로 분류되고,
상기 추출하는 단계는,
상기 할당 테이블에서 확인된 캐시 인덱스를 통해 상기 복수의 클러스터들 중 상기 요청정보가 저장된 클러스터를 확인하는 것을 특징으로 하는 파일 캐시 방법.
10. The method of claim 9,
Wherein the single cache data store is classified into a plurality of clusters each having the cache index assigned as an identifier and each having a predetermined unit size,
Wherein the extracting comprises:
And a cluster in which the request information is stored among the plurality of clusters is identified through the cache index identified in the allocation table.
삭제delete 제9항에 있어서,
상기 할당 테이블은, 상기 파일 또는 상기 요청정보가 복수의 클러스터들을 통해 분할되어 저장된 경우, 상기 캐시 맵에서 확인된 캐시 인덱스와 상기 파일 또는 상기 요청정보가 저장된 복수의 클러스터들을 식별하기 위한 복수의 캐시 인덱스들을 서로 연관하여 저장하는 리스트를 더 포함하는 것을 특징으로 하는 파일 캐시 방법.
10. The method of claim 9,
Wherein the allocation table includes a plurality of cache indexes for identifying a cache index identified in the cache map and a plurality of clusters in which the file or the request information is stored when the file or the request information is divided and stored through a plurality of clusters, And a list for associating and storing the files.
제12항에 있어서,
상기 파일 또는 상기 요청정보가 저장된 복수의 클러스터들 각각에 저장된 파일 데이터들인 청크들 각각은 청크 번호에 의해 식별되고,
상기 리스트는 상기 캐시 인덱스에 대응하는 클러스터에 저장된 청크의 청크 번호를 포함하는 것을 특징으로 하는 파일 캐시 방법.
13. The method of claim 12,
Each of the chunks being file data stored in each of the plurality of clusters in which the file or the request information is stored is identified by a chunk number,
Wherein the list includes a chunk number of a chunk stored in a cluster corresponding to the cache index.
제1항, 제2항, 제4항 내지 제10항, 제12항 또는 제13항 중 어느 한 항의 방법을 수행하는 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.A computer-readable recording medium recording a program for performing the method according to any one of claims 1, 2, 4 to 10, 12 or 13. 삭제delete 파일 캐시 어플리케이션의 설치 파일을 저장 및 유지하는 설치 파일 유지부; 및
클라이언트의 요청에 따라 상기 설치 파일을 상기 클라이언트로 전송하는 설치 파일 전송부
를 포함하고,
상기 설치 파일을 통해 상기 파일 캐시 어플리케이션이 상기 클라이언트에 설치되는 경우,
단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트의 메모리에 저장되고,
상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 상기 할당 테이블에서 확인되고, 상기 확인된 캐시 인덱스를 이용하여 상기 단일 캐시 데이터 저장소로부터 상기 파일 접근 요청에 해당하는 요청정보가 추출되고,
상기 할당 테이블은, 상기 복수의 파일 각각에 대한 파일 식별 정보 및 상기 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함하고,
상기 파일 식별 정보는 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함하며, 상기 캐시 인덱스는 상기 단일 캐시 데이터 저장소의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하는 것을 특징으로 하는 것을 특징으로 하는 배포 시스템.
An installation file holding unit for storing and maintaining an installation file of the file cache application; And
An installation file transfer unit for transferring the installation file to the client according to a request from the client,
Lt; / RTI >
When the file cache application is installed in the client through the installation file,
An allocation table including a cache index for indexing information on a plurality of files stored in a single cache data store is stored in the memory of the client under the control of the file cache application,
A cache index according to a file access request is identified in the allocation table in response to the control of the file cache application, and request information corresponding to the file access request is read from the single cache data store using the checked cache index Is extracted,
Wherein the allocation table includes a cache map for storing file identification information for each of the plurality of files and the cache indexes in association with each other,
Wherein the file identification information comprises at least one of a file path, a file name and a last modified time, the cache index identifying a cluster in which the beginning of each of the plurality of files of the single cache data repository is stored The distribution system comprising:
제16항에 있어서,
상기 단일 캐시 데이터 저장소는, 상기 캐시 인덱스가 식별자로서 부여되며 각각 기설정된 단위크기를 갖는 복수의 클러스터들로 분류되고,
상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트에서, 상기 할당 테이블에서 확인된 캐시 인덱스를 통해 상기 복수의 클러스터들 중 상기 요청정보가 저장된 클러스터가 확인되는 것을 특징으로 하는 배포 시스템.
17. The method of claim 16,
Wherein the single cache data store is classified into a plurality of clusters each having the cache index assigned as an identifier and each having a predetermined unit size,
Wherein the clusters in which the request information is stored among the plurality of clusters are identified in the client according to the control of the file cache application through the cache index identified in the allocation table.
파일 캐시 어플리케이션의 설치 파일을 저장 및 유지하는 단계; 및
클라이언트의 요청에 따라 상기 설치 파일을 상기 클라이언트로 전송하는 단계
를 포함하고,
상기 설치 파일을 통해 상기 파일 캐시 어플리케이션이 상기 클라이언트에 설치되는 경우,
단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트의 메모리에 저장되고,
상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 상기 할당 테이블에서 확인되고, 상기 확인된 캐시 인덱스를 이용하여 상기 단일 캐시 데이터 저장소로부터 상기 파일 접근 요청에 해당하는 요청정보가 추출되고,
상기 할당 테이블은, 상기 복수의 파일 각각에 대한 파일 식별 정보 및 상기 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함하고,
상기 파일 식별 정보는 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함하며, 상기 캐시 인덱스는 상기 단일 캐시 데이터 저장소의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하는 것을 특징으로 하는 것을 특징으로 하는 배포 방법.
Storing and maintaining an installation file of the file cache application; And
Transmitting the installation file to the client at the request of the client
Lt; / RTI >
When the file cache application is installed in the client through the installation file,
An allocation table including a cache index for indexing information on a plurality of files stored in a single cache data store is stored in the memory of the client under the control of the file cache application,
A cache index according to a file access request is identified in the allocation table in response to the control of the file cache application, and request information corresponding to the file access request is read from the single cache data store using the checked cache index Is extracted,
Wherein the allocation table includes a cache map for storing file identification information for each of the plurality of files and the cache indexes in association with each other,
Wherein the file identification information comprises at least one of a file path, a file name and a last modified time, the cache index identifying a cluster in which the beginning of each of the plurality of files of the single cache data repository is stored And distributing the distribution information.
컴퓨터 시스템이 파일 캐시 어플리케이션을 배포하는 명령(instruction)을 포함하는 컴퓨터 판독가능 저장 매체로서,
상기 명령은,
파일 캐시 어플리케이션의 설치 파일을 저장 및 유지하는 단계; 및
클라이언트의 요청에 따라 상기 설치 파일을 상기 클라이언트로 전송하는 단계
를 포함하고,
상기 설치 파일을 통해 상기 파일 캐시 어플리케이션이 상기 클라이언트에 설치되는 경우,
단일 캐시 데이터 저장소에 저장된 복수의 파일에 대한 정보를 인덱싱하기 위한 캐시 인덱스가 포함된 할당 테이블이, 상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트의 메모리에 저장되고,
상기 파일 캐시 어플리케이션의 제어에 따라 상기 클라이언트에서, 파일 접근 요청에 따른 캐시 인덱스가 상기 할당 테이블에서 확인되고, 상기 확인된 캐시 인덱스를 이용하여 상기 단일 캐시 데이터 저장소로부터 상기 파일 접근 요청에 해당하는 요청정보가 추출되고,
상기 할당 테이블은, 상기 복수의 파일 각각에 대한 파일 식별 정보 및 상기 캐시 인덱스들을 서로 연관하여 저장하는 캐시 맵을 포함하고,
상기 파일 식별 정보는 파일 경로, 파일 이름 및 마지막으로 수정된 시각 중 어느 하나 이상을 포함하며, 상기 캐시 인덱스는 상기 단일 캐시 데이터 저장소의 클러스터들 중 상기 복수의 파일 각각의 시작부분이 저장된 클러스터를 식별하는 것을 특징으로 하는 것을 특징으로 하는 방법에 의하여 상기 컴퓨터 시스템을 제어하는, 컴퓨터 판독가능 저장 매체.
A computer readable storage medium comprising instructions for a computer system to distribute a file cache application,
The command includes:
Storing and maintaining an installation file of the file cache application; And
Transmitting the installation file to the client at the request of the client
Lt; / RTI >
When the file cache application is installed in the client through the installation file,
An allocation table including a cache index for indexing information on a plurality of files stored in a single cache data store is stored in the memory of the client under the control of the file cache application,
A cache index according to a file access request is identified in the allocation table in response to the control of the file cache application, and request information corresponding to the file access request is read from the single cache data store using the checked cache index Is extracted,
Wherein the allocation table includes a cache map for storing file identification information for each of the plurality of files and the cache indexes in association with each other,
Wherein the file identification information comprises at least one of a file path, a file name and a last modified time, the cache index identifying a cluster in which the beginning of each of the plurality of files of the single cache data repository is stored Wherein the computer system is controlled by the method.
KR20120050214A 2012-05-11 2012-05-11 File cache system and method using allocation table and system and method for distributing file cache application KR101482014B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR20120050214A KR101482014B1 (en) 2012-05-11 2012-05-11 File cache system and method using allocation table and system and method for distributing file cache application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR20120050214A KR101482014B1 (en) 2012-05-11 2012-05-11 File cache system and method using allocation table and system and method for distributing file cache application

Publications (2)

Publication Number Publication Date
KR20130126257A KR20130126257A (en) 2013-11-20
KR101482014B1 true KR101482014B1 (en) 2015-01-14

Family

ID=49854389

Family Applications (1)

Application Number Title Priority Date Filing Date
KR20120050214A KR101482014B1 (en) 2012-05-11 2012-05-11 File cache system and method using allocation table and system and method for distributing file cache application

Country Status (1)

Country Link
KR (1) KR101482014B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101848277B1 (en) * 2016-08-22 2018-05-28 한양대학교 에리카산학협력단 Method and Apparatus for controlling cache data

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021161B (en) * 2014-05-27 2018-06-15 华为技术有限公司 A kind of clustering storage method and device
US9940236B2 (en) * 2014-12-17 2018-04-10 Intel Corporation Pointer chasing across distributed memory
KR101888846B1 (en) * 2015-05-07 2018-08-16 에스케이테크엑스 주식회사 System for cloud streaming service, method of image cloud streaming service using reciprocal cache and apparatus for the same
KR102199575B1 (en) * 2018-12-26 2021-01-07 울산과학기술원 Computing system and method for data consistency
WO2022107920A1 (en) * 2020-11-20 2022-05-27 울산과학기술원 Buffer cache and method for data consistency
CN112631732B (en) * 2020-12-30 2024-03-29 国云科技股份有限公司 Implementation method and device for creating CephX authentication virtual machines by batch ISO

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110065452A (en) * 2008-09-05 2011-06-15 프리스케일 세미컨덕터, 인크. Error detection schemes for a unified cache in a data processing system
KR20110118782A (en) * 2009-01-05 2011-11-01 쌘디스크 코포레이션 Non-volatile memory and method with write cache partitioning

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110065452A (en) * 2008-09-05 2011-06-15 프리스케일 세미컨덕터, 인크. Error detection schemes for a unified cache in a data processing system
KR20110118782A (en) * 2009-01-05 2011-11-01 쌘디스크 코포레이션 Non-volatile memory and method with write cache partitioning

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101848277B1 (en) * 2016-08-22 2018-05-28 한양대학교 에리카산학협력단 Method and Apparatus for controlling cache data

Also Published As

Publication number Publication date
KR20130126257A (en) 2013-11-20

Similar Documents

Publication Publication Date Title
KR101482014B1 (en) File cache system and method using allocation table and system and method for distributing file cache application
KR102266756B1 (en) KVS tree
US9928250B2 (en) System and method for managing deduplication using checkpoints in a file storage system
US10635643B2 (en) Tiering data blocks to cloud storage systems
US8600949B2 (en) Deduplication in an extent-based architecture
US10019459B1 (en) Distributed deduplication in a distributed system of hybrid storage and compute nodes
US8751763B1 (en) Low-overhead deduplication within a block-based data storage
US9798728B2 (en) System performing data deduplication using a dense tree data structure
CN103502926B (en) Extent-based storage architecture
US9342528B2 (en) Method and apparatus for tiered storage
CN101350030B (en) Method and apparatus for caching data
US11287994B2 (en) Native key-value storage enabled distributed storage system
US9529731B1 (en) Contention-free approximate LRU for multi-threaded access
US20120005307A1 (en) Storage virtualization
US8768898B1 (en) Performing direct data manipulation on a storage device
US10482061B1 (en) Removing invalid data from a dataset in advance of copying the dataset
US20190258604A1 (en) System and method for implementing a quota system in a distributed file system
US20160342342A1 (en) Information processing device, information processing system, and data access method
JP4713257B2 (en) Data storage device and version management program
US11860739B2 (en) Methods for managing snapshots in a distributed de-duplication system and devices thereof
US20200394304A1 (en) Optimizing storage system performance using storage device topology
KR101368441B1 (en) Apparatus, method and computer readable recording medium for reusing a free space of database

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20180102

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20190102

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20200102

Year of fee payment: 6