File systems accessing register dynamic collection method

A technology for access records and file systems, applied in hardware monitoring, special data processing applications, instruments, etc., can solve problems such as interruption of user applications, failure to collect file system internal operations, loss, etc., to reduce the number of times and prevent total capacity Effect of oversized, safe uninstall

CN100583099CInactive Publication Date: 2010-01-20TSINGHUA UNIV
3 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2010-01-20
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a dynamic acquisition method of file system access record, belonging to the field of storage system testing and performance analysis. The invention is characterized in that a kernel module can be loaded without the need of unloading the old file system, thus not needing to interrupt the working application. A file system operation interception module can dynamically intercept the underlayer file system operation by a substitution of corresponding functions in the interception module. While executing the underlayer file system operation, the functions output the operation type and parameters to an access record output module which compresses the file record and outputs a plurality of operation information at one time in a output record way of register. The access record output module controls the output file size to prevent the problems of difficult read and write and exceeding file system restriction. An access record file management module collects additional information and packages and transfers the access record according to the assignment of users, thus being convenient for users to manage. The test shows that the collection of access record has little impact on the application.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The method for dynamically collecting file system access records belongs to the field of test and performance analysis of storage systems, and particularly relates to the field of file system operation tracking and analysis. Background technique

[0002] File system access record collection technology refers to recording the type, occurrence time and parameters of operations in the file system into log files for future analysis and testing. The main purposes of the file system access records are as follows: First, the access records help to design better hardware and software, find the bottleneck of the file system, and provide valuable data for system optimization and improvement. For example, you can use various data such as the ratio of file creation, the distribution of file read and write operations, and the frequency of file operations to evaluate whether the system is effective and meets expectations. Access records can be used to analyze and o...

Examples

Embodiment Construction

[0070] The method for dynamically collecting file access records is realized between the virtual file system layer (VFS) of the Linux operating system and the underlying file system, and can be used for collecting access information of any underlying file system.

[0071] The structural diagram of the present invention is as figure 1 As shown, it has the following modules:

[0072] Module (1). The file system operation interception module is divided into three sub-modules

[0073] Module (1.1). Super block operation interception module: used to intercept the super operation set by the super block operation function table of the super block used to store the set file system information in the underlying file system, which contains at least the super block read Write operations, the file system mount and unmount operations, and inode creation and deletion operations.

[0074] Module (1.2). Index node operation interception module: the index node operation interception module ...