File reading method, apparatus and device, and storage medium

By obtaining consecutive file page combinations and pre-read window sizes in intelligent electronic devices for sequential reading, the problem of insufficient disk performance caused by the random read/write methods of UFS and eMMC storage chips is solved, improving file reading efficiency and the stability of business processes.

WO2026152893A1PCT designated stage Publication Date: 2026-07-23SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SHENZHEN TCL NEW-TECH CO LTD
Filing Date
2025-11-27
Publication Date
2026-07-23

AI Technical Summary

Technical Problem

In existing technologies, the random read/write methods of UFS and eMMC storage chips in smart electronic devices prevent disk performance from being fully utilized, leading to I/O operation blockage and affecting the stability of business processes.

Method used

By obtaining the consecutive file page combinations and prefetch window size in the target access file, sequential reading is performed, and the file prefetching method is adjusted to sequential reading to fully utilize disk performance.

Benefits of technology

It improves file reading efficiency, reduces the probability of process unresponsiveness caused by input/output blocking, and improves the operational stability of business processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025138176_23072026_PF_FP_ABST
    Figure CN2025138176_23072026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a file reading method, apparatus and device, and a storage medium. The file reading method in the present application comprises: in response to a file reading request for a target service process, acquiring a target access file corresponding to the target service process; and on the basis of a consecutive file page combination in the target access file and a pre-reading window size corresponding to the consecutive file page combination, performing sequential reading on the target access file, so as to obtain a file reading result. By means of the technical solution in the present application, a file pre-reading mode for a target service process can be adjusted to a sequential reading mode by means of a predetermined consecutive file page combination, such that the sequential reading performance of a disk is fully exerted, the file reading efficiency is improved, and the occurrence probability of a process unresponsiveness event of the target service process or other service processes that is caused by input / output blocking is further reduced, thereby improving the operational stability of the target service process or the other service processes.
Need to check novelty before this filing date? Find Prior Art

Description

File reading methods, devices, equipment, and storage media

[0001] This application claims priority to Chinese Patent Application No. 202510076803.3, filed on January 15, 2025, entitled “Document Reading Method, Apparatus, Device and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of computer technology, specifically to a file reading method, apparatus, device, and storage medium. Background Technology

[0003] Currently, with the rapid development of the field of intelligent electronic devices, these devices can provide users with various business processes to meet their business needs. However, in practical applications, intelligent electronic devices may choose storage chips such as UFS (Universal Flash Storage) and eMMC (embedded MultiMediaCard) due to factors such as cost and supply. These storage chips typically use random read / write methods, which are limited by factors such as disk addressing, resulting in the inability to fully utilize disk performance. This may increase the likelihood of blocking of IO (input / output) operations in intelligent electronic devices, causing business processes to enter an unresponsive state (i.e., Uninterruptible Sleep state) while waiting for input / output operations to complete, thus affecting the stability of business process operation. Technical solutions

[0004] This application provides a file reading method, apparatus, device, and storage medium, aiming to solve the technical problem in the prior art where abnormal disk input / output leads to poor stability of business process operation.

[0005] On one hand, embodiments of this application provide a file reading method, which includes the following steps:

[0006] Respond to a file read request for a target business process and obtain the target access file corresponding to the target business process;

[0007] The target access file is read sequentially based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result.

[0008] In one possible implementation of this application, before obtaining the target access file corresponding to the target business process, the method further includes:

[0009] Retrieve the initial file pages of the target access file;

[0010] Based on the file page offset interval of each initial file page and a preset grouping strategy, the initial file pages are grouped and merged to obtain a continuous combination of file pages of the target access file.

[0011] In one possible implementation of this application, the step of grouping and merging the initial file pages based on the file page offset interval and a preset grouping strategy to obtain a continuous combination of file pages of the target access file includes:

[0012] Obtain the file page information of each initial file page based on the preset file loading stubs;

[0013] Calculate the file page offset interval for each initial file page based on the file page offset in the file page information;

[0014] The consecutive file pages in each initial file page are determined based on the file page offset interval and the preset grouping strategy;

[0015] The consecutive file pages are grouped and merged to obtain a combination of consecutive file pages of the target access file.

[0016] In one possible implementation of this application, determining consecutive file pages in each of the initial file pages based on the file page offset interval and a preset grouping strategy includes:

[0017] Obtain the memory capacity value of the storage module corresponding to the target access file;

[0018] The offset interval threshold for each initial file page is calculated based on the preset grouping strategy and the memory capacity value;

[0019] Initial file pages whose offset interval is less than or equal to the offset interval threshold are identified as consecutive file pages.

[0020] In one possible implementation of this application, after calculating the file page offset interval of each of the initial file pages based on the file page offset in the file page information, the method further includes:

[0021] Obtain the storage sector parameters and driver sector parameters of the storage module corresponding to the target access file;

[0022] The target offset interval is determined based on the storage sector parameters, the drive sector parameters, and the file page size of the initial file page.

[0023] If the file page offset interval is greater than the target offset interval, then the target offset interval is set as the file page offset interval of the initial file page.

[0024] In one possible implementation of this application, the step of sequentially reading the target access file based on consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations to obtain the file reading result includes:

[0025] The target file page combination in the continuous file page combination is determined based on the file page read identifier in the file read request and the file page number identifier in the continuous file group;

[0026] Obtain the number of target files in the target file page combination, and generate the pre-read window size corresponding to the number of target files;

[0027] The target access file is read sequentially based on the pre-read window size and the target file page combination to obtain the file reading result.

[0028] In one possible implementation of this application, the step of sequentially reading the target access file based on consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations to obtain the file reading result includes:

[0029] Identify the file reading scenario corresponding to the file reading request, and the business process type of the target business process;

[0030] If the file reading scenario is the same as the preset target reading scenario and / or the business process type is the same as the preset sequential reading process type, then the file reading type of the file reading request is determined to be a sequential reading type;

[0031] The target access file is sequentially read based on the sequential read type, the consecutive file page combinations in the target access file, and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file read result.

[0032] On the other hand, this application provides a file reading device, the file reading device comprising:

[0033] The file access module is configured to respond to a file read request for a target business process and obtain the target access file corresponding to the target business process.

[0034] The sequential reading module is configured to sequentially read the target access file based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, and obtain the file reading result.

[0035] On the other hand, this application also provides a file reading device, the file reading device comprising:

[0036] One or more processors;

[0037] Memory; and

[0038] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the file reading method.

[0039] On the other hand, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the file reading method described above.

[0040] This application obtains the target access file corresponding to the target business process by responding to a file read request for that target business process. The target access file is then sequentially read based on a combination of consecutive file pages within the target access file and the pre-read window size corresponding to that combination, resulting in a file read result. This achieves the following: when a file read request for a target business program is executed using a low-performance disk, the target access file corresponding to that target business process is obtained. The target access file is then sequentially read based on a pre-generated combination of consecutive file pages within the target access file and the pre-read window size corresponding to that combination, to obtain the file read result. This achieves the goal of adjusting the file pre-reading method of the target business process to sequential reading by using a pre-determined combination of consecutive file pages, thereby fully utilizing the sequential read performance of the disk, improving file read efficiency, and reducing the probability of process unresponsiveness events caused by input / output blocking in the target business process or other business processes, thus improving the operational stability of the target business process or other business processes. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 is a schematic diagram of a scenario for the file reading method according to an embodiment of this application;

[0043] Figure 2 is a flowchart illustrating one embodiment of the file reading method in this application.

[0044] Figure 3 is a schematic diagram of a target file access scenario in the file reading method provided in the embodiments of this application;

[0045] Figure 4 is a flowchart illustrating an embodiment of the file reading method provided in this application for determining consecutive file pages in a file page to generate a combination of consecutive file pages.

[0046] Figure 5 is a flowchart illustrating an embodiment of the file reading method provided in this application for determining whether to sequentially read the target access file;

[0047] Figure 6 is a schematic diagram of the structure of an embodiment of the file reading device provided in this application;

[0048] Figure 7 is a schematic diagram of the structure of an embodiment of the file reading device provided in this application.

[0049] Implementation methods of this application

[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0051] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0052] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0053] Currently, with the rapid development of the field of intelligent electronic devices, these devices can provide users with various business processes to meet their business needs. However, in practical applications, intelligent electronic devices may choose storage chips such as UFS (Universal Flash Storage) and eMMC (embedded MultiMediaCard) due to factors such as cost and supply. These storage chips typically use random read / write methods, which are limited by factors such as disk addressing, resulting in the inability to fully utilize disk performance. This may increase the likelihood of blocking of IO (input / output) operations in intelligent electronic devices, causing business processes to enter an unresponsive state (i.e., Uninterruptible Sleep state) while waiting for input / output operations to complete, thus affecting the stability of business process operation.

[0054] Based on this, this application proposes a file reading method, apparatus, device, and computer-readable storage medium to solve the technical problem in the prior art where abnormal disk input / output leads to poor stability of business process operation.

[0055] The file reading method in this embodiment is applied to a file reading device, which is provided in a file reading equipment. The file reading equipment includes one or more processors, a memory, and one or more application programs. The one or more application programs are stored in the memory and configured to be executed by the processor to implement the file reading method. The file reading equipment can be a smart terminal, such as a mobile phone, tablet computer, network device, and smart computer. Optionally, the file reading equipment can also be a server or a service cluster composed of multiple servers.

[0056] As shown in Figure 1, Figure 1 is a schematic diagram of a file reading method according to an embodiment of this application. The file reading scenario in this embodiment includes a file reading device 100 (the file reading device 100 integrates a file reading apparatus), and the file reading device 100 is equipped with a computer-readable storage medium corresponding to the file reading method to execute the steps of the file reading method.

[0057] It is understood that the file reading device in the file reading method scenario shown in Figure 1, or the device included in the file reading device, does not constitute a limitation on the embodiments of this application. That is, the number or type of the file reading device included in the file reading method scenario, or the number or type of the device included in each device, does not affect the overall implementation of the technical solution in the embodiments of this application, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of this application.

[0058] In this embodiment of the application, the file reading device 100 is mainly used to: respond to a file reading request for a target business process and obtain the target access file corresponding to the target business process;

[0059] The target access file is read sequentially based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result.

[0060] The file reading device 100 in this application embodiment can be an independent file reading device, such as a mobile phone, tablet computer, network device, server and smart computer, or a file reading network or file reading cluster composed of multiple file reading devices.

[0061] This application provides a file reading method, apparatus, device, and computer-readable storage medium, which will be described in detail below.

[0062] Those skilled in the art will understand that the application environment shown in Figure 1 is only one application scenario related to the solution of this application, and does not constitute a limitation on the application scenario of the solution of this application. Other application environments may include more or fewer file reading devices or file reading network connections than those shown in Figure 1. For example, only one file reading device is shown in Figure 1. It is understood that the scenario of the file reading method may also include one or more file reading devices, which is not specifically limited here. The file reading device 100 may also include a memory for storing file data and other data.

[0063] It should be noted that the scenario diagram of the file reading method shown in Figure 1 is merely an example. The scenario of the file reading method described in the embodiments of this application is intended to more clearly illustrate the technical solution of the embodiments of this application and does not constitute a limitation on the technical solution provided in the embodiments of this application.

[0064] Based on the scenarios described above for file reading methods, various embodiments of the file reading method disclosed in this application are proposed.

[0065] As shown in Figure 2, Figure 2 is a flowchart of an embodiment of the file reading method in this application. The file reading method includes the following steps 201 to 202:

[0066] 201. Respond to a file read request for the target business process and obtain the target access file corresponding to the target business process;

[0067] The file reading method in this embodiment is applied to a file reading device. The type and number of file reading devices are not specifically limited. That is, the file reading device can be one or more smart electronic devices. In a specific embodiment, the file reading device is any smart electronic device such as a smartphone, tablet computer, smart TV, and smart computer.

[0068] The target business process is a running process that runs on the file reading device and is used to perform specific business operations.

[0069] The target access file is a file to be accessed stored in the corresponding storage module of the file reading device, containing process data associated with the target business process. This target access file can contain at least one or more initial file pages. Optionally, in a specific embodiment, the initial file page is a kernel file page or other file page associated with the target business process or other processes. As shown in Figure 3, Figure 3 is a schematic diagram of a target access file scenario in the file reading method provided by this application embodiment. As shown in Figure 3, Figure 3 illustrates three target access files associated with the target business process (i.e., target access file A, target access file B, and target access file C in Figure 3). Each target access file contains several initial file pages. For example, target access file A contains initial file pages from A1 to A13, target access file B contains initial file pages from B1 to B13, and target access file C contains initial file pages from C1 to C13.

[0070] As shown in Figure 3, the distances between different initial file pages in the target access file vary. Figure 3 uses "." symbols to represent the file page distances between different initial file pages; the more "." symbols there are, the farther the corresponding file page distance. For example, in the embodiment shown in Figure 3, the distance between initial file pages A2 and A4 is smaller than the distance between initial file pages B5 and B7.

[0071] Optionally, in other embodiments, the number of the target access file and the number of initial file pages in the target access file can be the same as or different from the number of files in Figure 3. This embodiment does not make specific limitations here.

[0072] Specifically, during the operation of the file reading device, the business behavior of the existing target business process when accessing the target file is difficult to predict, and the order in which the existing target business process accesses the target file is difficult to restrict. The access method of the target business process when accessing the target file can be random. For example, in the embodiment shown in Figure 3, the access method of the target business process to access the target file page is: A1->B7->C10->A5->B1->C1->A2->A4->B2->B3->B4->C2->C3->C4->C11->C13->B8->A6->A7. This random access method will lead to the ineffective utilization of disk read performance, causing the target business process or other related processes to experience unresponsive events due to input / output blocking.

[0073] Based on this, during operation, the file reading device responds to file read requests triggered by the target business process. These file read requests are operation requests that drive the file reading device to read specified file information from a target access file associated with the target business process. The triggering method for these file read requests is not specifically limited here; that is, the file read request can be actively triggered by the user. For example, the user can actively trigger the file read operation corresponding to the I / O of the target business process by clicking an operation button associated with the operation related to the target business process on the file reading device. Furthermore, the file read request can also be automatically triggered by the file reading device. For example, when the target business process in the file reading device performs a corresponding business action, it automatically triggers the file read request corresponding to that business action.

[0074] Specifically, after receiving a file read request for a target business process, the file reading device determines the target access file to be read by the target business process based on the file read request.

[0075] Optionally, in one specific embodiment, when the file reading device obtains a file reading request, it also obtains the file reading scenario corresponding to the file reading request and the business process type of the target business process, and determines whether the target access file needs to be read sequentially based on the file reading scenario and the business process type, thereby improving file reading efficiency.

[0076] 202. The target access file is sequentially read according to the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations to obtain the file reading result.

[0077] Specifically, after obtaining the target access file to be read by the target business process and determining that the file read request is a sequential read / write request, the file reading device also sequentially reads the target access file according to the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, so as to obtain the file read result of the target business process.

[0078] Here, a contiguous file page combination is a combination of file pages obtained from a specified initial combination of file pages that are determined to be contiguous file pages in the target access file.

[0079] The read-ahead window size is the read range information of the data read window used to read file data in advance, which is configured in the file system of the file read device according to the combination of consecutive file pages.

[0080] Specifically, to improve file reading performance, the file reading device pre-groups and merges the initial file pages in each target access file before receiving a file read request for the target business process. This results in a combination of consecutive file pages in each target access file. After receiving a file read request for each target business process, the file reading device can sequentially read the target file page using this combination of consecutive file pages. This allows the target business process to perform I / O operations faster and reduces the probability of the target business process or other business processes becoming unresponsive due to input / output blocking.

[0081] Optionally, during power-on operation, the file reading device acquires each initial file page from each target access file, and groups and merges these initial file pages based on the file page offset interval and a preset grouping strategy to obtain a combination of consecutive file pages in the target access file. This updates the target access file to an access file comprising multiple combinations of consecutive file pages. The file page offset interval is a parameter characterizing the offset interval between the file page offsets of each initial file page. The preset grouping strategy is a set of rule strategies that include consecutive file page identification of the initial file pages and grouping of consecutive file pages.

[0082] Specifically, after acquiring the target file, the file reading device also obtains the file page information of each initial file page based on preset file loading stubs. That is, the file reading device uses pre-set preset file loading stubs to record the initial file page information corresponding to the target business process accessing the target file within a specified time period or specified business scenario. In one specific embodiment, this initial file page information includes a file device identifier, a file page number identifier, and a file page offset.

[0083] Here, the file page offset is a parameter used to characterize the position of the initial file page in the target access file. In one specific embodiment, the file page offset is the number of bytes from the starting file position of the target access file to the position of the initial file page. This file page offset can identify the file page position of the initial file page in the target access file.

[0084] Specifically, after obtaining the file page offset from the initial file page information, the file reading device also calculates the file page offset interval between each initial file page based on that file page offset. That is, after obtaining the file page offset of each initial file page, the file reading device also calculates the file page offset difference between different initial file pages, and determines the file page offset interval between each initial file page based on this difference. This file page offset difference is a positive number greater than 0.

[0085] Specifically, after obtaining the file page offset intervals between each initial file page, the file reading device also identifies consecutive file pages in each initial file page according to the file page offset intervals and the preset grouping strategy, and groups and merges the identified consecutive file pages into a combination of file pages in the target access file, thus obtaining a combination of consecutive file pages.

[0086] Optionally, in one specific embodiment, after obtaining the file page offset interval, the file reading device further corrects the file page offset interval according to the target offset interval in the preset grouping strategy, and compares the corrected file offset interval with the offset interval threshold in the preset grouping strategy to determine whether the initial file pages corresponding to each file page offset interval are consecutive file pages. Here, consecutive file pages are similar initial file pages whose file page offset intervals satisfy the preset grouping strategy.

[0087] Specifically, after generating a combination of consecutive file pages in the target access file, the file reading device also obtains the number of target files in the combination of consecutive file pages, where the number of target files represents the number of consecutive file pages in the combination of consecutive file pages. After obtaining the combination of consecutive file pages and the number of target files in the combination of consecutive file pages, the file reading device also updates the target access file according to the combination of consecutive file pages and the number of target files, obtaining an updated target access file. Optionally, in one specific embodiment, the updated target access file includes:

[0088] Target access file A: consecutive file page combination 1, number of target files 1; consecutive file page combination 2, number of target files 2; consecutive file page combination 3, number of target files 3; ... consecutive file page combination n, number of target files n.

[0089] Target access file B: consecutive file page combination 1, number of target files 1; consecutive file page combination 2, number of target files 2; consecutive file page combination 3, number of target files 3; ... consecutive file page combination n, number of target files n.

[0090] Target access file B: consecutive file page combination 1, number of target files 1; consecutive file page combination 2, number of target files 2; consecutive file page combination 3, number of target files 3; ... consecutive file page combination n, number of target files n.

[0091] Specifically, after acquiring the updated target access file, the file reading device also responds to the file read request for that target business process, obtaining the target access file corresponding to that target business process. It then parses the file read request, obtains the file page read identifier from the request, and determines the target file page combination within the continuous file page group based on the file page read identifier and the file page number identifier in the continuous file group. The file page read identifier represents the file page identifier corresponding to the continuous file page to be read by the target business process. The target file page combination is the continuous file page combination for which the target business process will perform file page read operations in this file read request.

[0092] Specifically, when the file reading device obtains the file page read identifier, it compares the file page read identifier with the file page number identifier in each consecutive file group. If the file page read identifier and the file page number identifier are the same, the consecutive file page combination corresponding to the file page identifier is determined as the target file page combination hit by the file reading request.

[0093] Specifically, after obtaining the target file page combination matched by the file read request, the file reading device also obtains the number of target files in the target file page combination and configures the pre-read window size based on the number of target files. That is, after determining the target file page combination to be read, the file reading device sets the window size corresponding to the file pre-read window of the file pre-read system to the number of target files in the target file page combination, thus obtaining the pre-read window size. The pre-read window size is the same as the number of target files.

[0094] Specifically, after obtaining the pre-read window size and the target file page combination, the file reading device sequentially reads the target access file based on this pre-read window size and target file page combination to obtain the file reading result. That is, the file reading device reads consecutive file pages in each target access file according to each target file page combination and the corresponding pre-read window size, thereby achieving sequential reading of each target access file. This improves the IO delivery efficiency of the target business process and avoids process unresponsiveness events caused by input / output blocking of the target business process or other business processes.

[0095] Optionally, in the specific embodiment shown in Figure 3, the file reading device determines the consecutive file page combinations in the target access file through the file page offset interval and a preset grouping strategy, and determines the target file page combination to be read in the consecutive file page combinations through the file page read identifier in the file read request, and then reads the target file page combination in the target access file, thereby realizing sequential reading of each target access file and pre-reading the target file page combinations that will be accessed by subsequent target business processes, thus reducing the overall duration of the target business process entering the Uninterruptible Sleep (IO) waiting state in the target business scenario. In one specific embodiment, the access order of the file reading device for sequential reading of each target access file is as follows:

[0096] A1->A2->A4->B7->B8->C10->C11->C13->A5->A6->A7->B1->B2->B3->B4->C1->C2->C3->C4.

[0097] Where A1->A2->A4 and A5->A6->A7 are the target file page combinations in target access file A; B7->B8 and B1->B2->B3->B4 are the target file page combinations in target access file B; C10->C11->C13 and C1->C2->C3->C4 are the target file combinations in target access file C.

[0098] In this embodiment, the file reading device obtains the target access file corresponding to the target business process by responding to a file read request for that target business process. It then sequentially reads the target access file based on the combination of consecutive file pages within the target access file and the pre-read window size corresponding to that combination, obtaining the file read result. This achieves the following: when a file read request for a target business program is executed using a low-performance disk, the device obtains the target access file corresponding to that target business process and sequentially reads the target access file based on a pre-generated combination of consecutive file pages within the target access file and the pre-read window size corresponding to that combination, thus obtaining the file read result. This achieves the goal of adjusting the file pre-reading method of the target business process to sequential reading by using a pre-determined combination of consecutive file pages, thereby fully utilizing the sequential read performance of the disk, improving file read efficiency, and reducing the probability of process unresponsiveness events caused by input / output blocking in the target business process or other business processes, thereby improving the operational stability of the target business process or other business processes.

[0099] As shown in Figure 4, Figure 4 is a flowchart illustrating an embodiment of the file reading method provided in this application for determining consecutive file pages to generate a combination of consecutive file pages. Specifically, in this embodiment, the file reading method further includes steps 301 to 303:

[0100] 301. Obtain the memory capacity value of the storage module corresponding to the target access file;

[0101] 302. Calculate the offset interval threshold for each of the initial file pages based on the preset grouping strategy and the memory capacity value;

[0102] 303. Initial file pages whose offset interval is less than or equal to the offset interval threshold are determined as consecutive file pages.

[0103] Based on the above embodiments, in this embodiment, before the file reading device receives a file reading request and sequentially reads the continuous file combination associated with the file reading request and the pre-read window size, the file reading device also identifies the continuous file pages in each initial file page according to the file page offset interval between the initial file pages and the preset grouping strategy, and groups and merges the identified continuous file pages into a file page combination in the target access file, thereby obtaining a continuous file page combination.

[0104] Specifically, before sequentially reading and writing the target access file page, the file reading device also obtains the memory capacity value (unit: Gigabyte, GB) of the storage module corresponding to the target access file. This content capacity value represents the available memory size of the storage module where the target access file resides.

[0105] Specifically, after obtaining the memory capacity value, the file reading device also calculates an offset interval threshold for detecting whether each initial file page is a contiguous set of similar file pages based on the preset grouping strategy and the memory capacity value. That is, the file reading device obtains the offset interval threshold algorithm from the preset grouping strategy and inputs the memory capacity value into the offset interval algorithm to obtain the offset interval threshold. Optionally, in a specific embodiment, the expression for the offset interval threshold algorithm is: Offset threshold interval = Capacity coefficient * Memory capacity value - Offset constant. Wherein, the capacity coefficient and the offset constant are constants that are custom-set according to the actual business scenario requirements. For example, in a specific embodiment, the capacity coefficient is set to 0.5, and the offset constant is set to 1. In this case, the offset threshold interval = 0.5 * Content capacity value - 1.

[0106] Optionally, after obtaining the file page offset interval and offset threshold interval, the file reading device further corrects the file page offset interval according to the target offset interval in the preset grouping strategy, and compares the corrected file offset interval with the offset interval threshold in the preset grouping strategy to determine whether the initial file pages corresponding to each file page offset interval are consecutive file pages. Here, consecutive file pages are similar initial file pages whose file page offset intervals satisfy the preset grouping strategy.

[0107] Specifically, the file reading device obtains the storage sector parameters and driver sector parameters of the storage module corresponding to the target access file. The storage sector parameters are the maximum single-transaction I / O size supported by the file reading device. The driver sector parameters are the maximum single-transaction I / O size supported by the file reading device kernel driver. Optionally, in one specific embodiment, the storage sector parameter is the `max_hw_sectors_kb` parameter; the driver sector parameter is the `max_sectors_kb` parameter.

[0108] Specifically, when the file reading device obtains the storage sector parameters and the driver sector parameters, it also obtains the file page size of each initial file page, and determines the target offset interval based on the file page size, storage sector parameters, and driver sector parameters. That is, the file reading device obtains the target offset interval algorithm in the preset grouping strategy, and determines the target offset interval corresponding to the initial file page in each target access file based on the file page size, storage sector parameters, driver sector parameters, and the target offset interval algorithm. Optionally, in a specific embodiment, the expression for the target offset interval algorithm is:

[0109] Target offset interval = min(max_hw_sectors_kb, max_sectors_kb) / PAGE_SIZE. Where PAGE_SIZE is the file page size.

[0110] That is, the file reading device pre-compares the storage sector parameters and the drive sector parameters, and determines the smaller of the two parameters—either the storage sector parameter or the ratio of the drive sector parameter to the file page size—as the target offset interval. This target offset interval is the maximum file page offset interval between the initial file pages in the target access file.

[0111] Specifically, after obtaining the target offset interval, the file reading device compares the target offset interval with the file page offset interval of each initial file page, and corrects the file page offset interval according to the comparison result to obtain the corrected file page offset interval.

[0112] Optionally, if the file reading device determines that the file page offset interval is less than the target offset interval, it determines that the file page offset interval meets the requirements of the preset grouping strategy, and there is no need to correct the file page offset interval.

[0113] Optionally, if the file reading device determines that the file page offset interval is greater than the target offset interval, the file reading device sets the target offset interval as the new file page offset interval for the initial file page.

[0114] Specifically, after obtaining the corrected file page offset interval, the file page reading device compares the file page offset interval with the offset interval threshold to determine whether the initial file pages corresponding to the file page offset interval are consecutive file pages with similar file page positions.

[0115] Optionally, if the file page offset interval is less than or equal to the offset interval threshold, the file page reading device determines that the file page positions between the initial file pages corresponding to the file page offset interval are close, and determines the initial file pages whose file page offset interval is less than or equal to the offset interval threshold as consecutive file pages.

[0116] Specifically, after identifying consecutive file pages in the initial file page corresponding to each target access file, the file page reading device groups and merges the identified consecutive file pages into a combination of file pages in the target access file, thus obtaining a combination of consecutive file pages. In subsequent steps, the required file information is read sequentially based on this combination of consecutive file pages, thereby improving the IO distribution efficiency of the target business process and avoiding unresponsive events caused by input / output blocking of the target business process or other business processes.

[0117] In this embodiment, the file page reading device obtains the memory capacity value of the storage module corresponding to the target access file; calculates the offset interval threshold of each initial file page according to the preset grouping strategy and the memory capacity value; and determines the initial file pages whose offset interval is less than or equal to the offset interval threshold as consecutive file pages. This enables the identification and merging of consecutive file pages in the initial file of the target access file to obtain a consecutive file page combination, and uses this consecutive file page combination to achieve sequential reading of the target access file, thereby improving the file reading efficiency of the target business process.

[0118] As shown in Figure 5, Figure 5 is a flowchart illustrating an embodiment of the file reading method provided in this application for determining whether to sequentially read the target access file. Specifically, in this embodiment, the file reading method further includes steps 401 to 403:

[0119] 401. Identify the file reading scenario corresponding to the file reading request, and the business process type of the target business process;

[0120] 402. If the file reading scenario is the same as the preset target reading scenario and / or the business process type is the same as the preset sequential reading process type, then the file reading type of the file reading request is determined to be a sequential reading type;

[0121] 403. Based on the sequential read type, the consecutive file page combinations in the target access file, and the pre-read window size corresponding to the consecutive file page combinations, the target access file is sequentially read to obtain the file read result.

[0122] Based on the above embodiments, in this embodiment, after receiving a file read request, the file reading device further identifies the file read scenario corresponding to the file read request and the business process type of the target business process. The file read scenario is information representing the business scenario to which the business action of the target business process corresponding to the file read request belongs. For example, the file read scenario can be an audio / video playback scenario, a high-load game scenario, a system interaction scenario, and other file read scenarios. The business process type is a process type identifier representing the target business process. Optionally, the business process type can be a first process type and a second process type. The first process type represents a business process type where the process interaction of the target business process has a lower priority. The second process type represents a business process type where the process interaction of the target business process has a higher priority. The file reading device determines the second process type as the sequential business type to be sequentially read.

[0123] Specifically, after obtaining the file reading scenario and business process type, the file reading device will compare the file reading scenario with the preset target reading scenario and the business process type with the preset sequential reading business type. Based on the comparison results, it will determine the file reading type of the file reading request and then determine whether sequential reading operation is required for the target access file corresponding to the file reading request.

[0124] Optionally, if the file reading scenario is the same as the preset target reading scenario and / or the service process type is the same as the preset sequential reading process type, the file reading device determines that the file reading type of the file reading request is a sequential reading type. Here, the target reading scenario is a file reading scenario characterized by high file reading efficiency requirements. For example, in a specific embodiment, the file reading device determines the audio / video playback scenario, the high-load game scenario, and other application scenarios with high file reading efficiency requirements as target reading scenarios.

[0125] Optionally, if the file reading scenario is different from the preset target reading scenario and / or the business process type is different from the preset sequential reading process type, the file reading device determines that the file reading type of the file reading request is a normal reading type, and then performs file pre-reading on the target access file according to the random access method to obtain the file reading result.

[0126] Specifically, after determining that the file reading request is a sequential reading type, the file reading device performs sequential reading of the target file based on the sequential reading type, the consecutive file page combinations in the target file, and the pre-read window size corresponding to the consecutive file page combinations, and obtains the file reading result.

[0127] In this embodiment, the file reading device identifies the file reading scenario corresponding to the file reading request and the business process type of the target business process. If the file reading scenario is the same as a preset target reading scenario and / or the business process type is the same as a preset sequential reading process type, then the file reading type of the file reading request is determined to be a sequential reading type. Based on the sequential reading type, the consecutive file page combinations in the target access file, and the pre-read window size corresponding to the consecutive file page combinations, the target access file is read sequentially to obtain the file reading result. This achieves the identification of the file reading type of the file reading request through the file reading scenario and business process type. After determining that the file reading type is a sequential reading type, the target file page combinations in the target access file are accessed sequentially according to the sequential reading type. This enables the selection of the corresponding file reading method for different file reading needs, improving file access efficiency and reducing the system resources consumed by file reading.

[0128] To better implement the file reading method in this application embodiment, based on the file reading method, this application embodiment also provides a file reading device, as shown in FIG6. FIG6 is a structural schematic diagram of an embodiment of the file reading device provided in this application embodiment. Specifically, the file reading device 500 includes:

[0129] The file access module 501 is configured to respond to a file read request for a target business process and obtain the target access file corresponding to the target business process.

[0130] The sequential reading module 502 is configured to sequentially read the target access file based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, and obtain the file reading result.

[0131] In one possible implementation of this embodiment, before the file reading device obtains the target access file corresponding to the target service process, it further includes:

[0132] Retrieve the initial file pages of the target access file;

[0133] Based on the file page offset interval of each initial file page and a preset grouping strategy, the initial file pages are grouped and merged to obtain a continuous combination of file pages of the target access file.

[0134] In one possible implementation of this embodiment, the file reading device groups and merges the initial file pages based on the file page offset interval of each initial file page and a preset grouping strategy to obtain a continuous combination of file pages of the target access file, including:

[0135] Obtain the file page information of each initial file page based on the preset file loading stubs;

[0136] Calculate the file page offset interval for each initial file page based on the file page offset in the file page information;

[0137] The consecutive file pages in each initial file page are determined based on the file page offset interval and the preset grouping strategy;

[0138] The consecutive file pages are grouped and merged to obtain a combination of consecutive file pages of the target access file. In one possible implementation of this embodiment, the file reading device determines the consecutive file pages in each of the initial file pages according to the file page offset interval and a preset grouping strategy, including:

[0139] Obtain the memory capacity value of the storage module corresponding to the target access file;

[0140] The offset interval threshold for each initial file page is calculated based on the preset grouping strategy and the memory capacity value;

[0141] Initial file pages whose offset interval is less than or equal to the offset interval threshold are identified as consecutive file pages.

[0142] In one possible implementation of this embodiment, after the file reading device calculates the file page offset interval of each of the initial file pages based on the file page offset in the file page information, it further includes:

[0143] Obtain the storage sector parameters and driver sector parameters of the storage module corresponding to the target access file;

[0144] The target offset interval is determined based on the storage sector parameters, the drive sector parameters, and the file page size of the initial file page.

[0145] If the file page offset interval is greater than the target offset interval, then the target offset interval is set as the file page offset interval of the initial file page.

[0146] In one possible implementation of this embodiment, the file reading device sequentially reads the target access file based on consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result, including:

[0147] The target file page combination in the continuous file page combination is determined based on the file page read identifier in the file read request and the file page number identifier in the continuous file group;

[0148] Obtain the number of target files in the target file page combination, and generate the pre-read window size corresponding to the number of target files;

[0149] The target access file is read sequentially based on the pre-read window size and the target file page combination to obtain the file reading result.

[0150] In one possible implementation of this embodiment, the file reading device sequentially reads the target access file based on consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result, including:

[0151] Identify the file reading scenario corresponding to the file reading request, and the business process type of the target business process;

[0152] If the file reading scenario is the same as the preset target reading scenario and / or the business process type is the same as the preset sequential reading process type, then the file reading type of the file reading request is determined to be a sequential reading type;

[0153] The target access file is sequentially read based on the sequential read type, the consecutive file page combinations in the target access file, and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file read result.

[0154] In this embodiment, the file reading device obtains the target access file corresponding to the target business process by responding to a file read request for that target business process. It then sequentially reads the target access file based on a pre-generated combination of consecutive file pages and the corresponding pre-read window size to obtain the file read result. This achieves the following: when a file read request for a target business program is executed using a low-performance disk, the device obtains the target access file corresponding to that target business process and sequentially reads the target access file based on a pre-generated combination of consecutive file pages and the corresponding pre-read window size to obtain the file read result. This adjusts the file pre-reading method of the target business process to sequential reading by using a pre-determined combination of consecutive file pages, thereby fully utilizing the disk's sequential read performance, improving file read efficiency, and reducing the probability of process unresponsiveness due to input / output blocking in the target business process or other business processes, thus improving the operational stability of the target business process or other business processes.

[0155] This application also provides a file reading device, as shown in FIG7, which is a schematic diagram of an embodiment of the file reading device provided in this application.

[0156] The file reading device integrates any of the file reading apparatuses provided in the embodiments of this application. The file reading device includes:

[0157] One or more processors;

[0158] Memory; and

[0159] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in the steps of the file reading method described in any of the embodiments of the above file reading method.

[0160] Specifically, a file reading device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that the file reading device structure shown in Figure 7 does not constitute a limitation on the file reading device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0161] The processor 601 is the control center of the file reading device. It connects various parts of the file reading device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, it performs various functions and processes data of the file reading device, thereby providing overall monitoring of the file reading device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.

[0162] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the file reading device, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0163] The file reading device also includes a power supply 603 that supplies power to the various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0164] The file reading device may also include an input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0165] Although not shown, the file reading device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the file reading device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602 to realize various functions, as follows:

[0166] Respond to a file read request for a target business process and obtain the target access file corresponding to the target business process;

[0167] The target access file is read sequentially based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result.

[0168] Therefore, embodiments of this application provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc. A computer program is stored thereon, which is loaded by a processor to execute the steps of any of the file reading methods provided in embodiments of this application. For example, the computer program loaded by the processor can execute the following steps:

[0169] Respond to a file read request for a target business process and obtain the target access file corresponding to the target business process;

[0170] The target access file is read sequentially based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result.

[0171] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.

[0172] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.

[0173] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0174] The above provides a detailed description of a file reading method provided by the embodiments of this application. Specific embodiments have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A file reading method, wherein, The file reading method includes: Respond to a file read request for a target business process and obtain the target access file corresponding to the target business process; The target access file is read sequentially based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file reading result.

2. The file reading method according to claim 1, wherein, Before obtaining the target access file corresponding to the target business process, the method further includes: Retrieve the initial file pages of the target access file; Based on the file page offset interval of each initial file page and a preset grouping strategy, the initial file pages are grouped and merged to obtain a continuous combination of file pages of the target access file.

3. The file reading method according to claim 2, wherein, The step of grouping and merging the initial file pages based on the file page offset interval and a preset grouping strategy to obtain a continuous combination of file pages of the target access file includes: Obtain the file page information of each initial file page based on the preset file loading stubs; Calculate the file page offset interval for each initial file page based on the file page offset in the file page information; The consecutive file pages in each initial file page are determined based on the file page offset interval and the preset grouping strategy; The consecutive file pages are grouped and merged to obtain a combination of consecutive file pages of the target access file.

4. The file reading method according to claim 3, wherein, The step of determining consecutive file pages in each initial file page based on the file page offset interval and a preset grouping strategy includes: Obtain the memory capacity value of the storage module corresponding to the target access file; The offset interval threshold for each initial file page is calculated based on the preset grouping strategy and the memory capacity value; Initial file pages whose offset interval is less than or equal to the offset interval threshold are identified as consecutive file pages.

5. The file reading method according to claim 4, wherein, The step of calculating the offset interval threshold for each initial file page based on the preset grouping strategy and the memory capacity value includes: Obtain the offset interval threshold algorithm in the preset grouping strategy. Input the memory capacity value into the offset interval algorithm to obtain the offset interval threshold. The offset interval threshold algorithm expression is: offset threshold interval = capacity coefficient * memory capacity value - offset constant, where the capacity coefficient and offset constant are constants stored in the preset grouping strategy and are customized according to the actual business scenario requirements.

6. The file reading method according to claim 3, wherein, After calculating the file page offset interval of each initial file page based on the file page offset in the file page information, the method further includes: Obtain the storage sector parameters and driver sector parameters of the storage module corresponding to the target access file; The target offset interval is determined based on the storage sector parameters, the drive sector parameters, and the file page size of the initial file page. If the file page offset interval is greater than the target offset interval, then the target offset interval is set as the file page offset interval of the initial file page.

7. The file reading method according to claim 1, wherein, The step of sequentially reading the target access file based on consecutive file page combinations and the corresponding pre-read window size to obtain file reading results includes: The target file page combination in the continuous file page combination is determined based on the file page read identifier in the file read request and the file page number identifier in the continuous file group; Obtain the number of target files in the target file page combination, and generate the pre-read window size corresponding to the number of target files; The target access file is read sequentially based on the pre-read window size and the target file page combination to obtain the file reading result.

8. The file reading method according to claim 7, characterized in that, The step of obtaining the number of target files in the target file page combination and generating the pre-read window size corresponding to the number of target files includes: Obtain the number of target files in the target file page combination; The size of the file prefetch window is obtained by setting the window size to the number of target files in the target file page combination.

9. The file reading method according to claim 1, wherein, The step of sequentially reading the target access file based on consecutive file page combinations and the corresponding pre-read window size to obtain file reading results includes: Identify the file reading scenario corresponding to the file reading request, and the business process type of the target business process; If the file reading scenario is the same as the preset target reading scenario and / or the business process type is the same as the preset sequential reading process type, then the file reading type of the file reading request is determined to be a sequential reading type; The target access file is sequentially read based on the sequential read type, the consecutive file page combinations in the target access file, and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file read result.

10. A file reading device, wherein, The file reading device includes: The file access module is configured to respond to a file read request for a target business process and obtain the target access file corresponding to the target business process. The sequential reading module is configured to sequentially read the target access file based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, and obtain the file reading result.

11. The file reading device according to claim 10, wherein, Before obtaining the target access file corresponding to the target business process, the file access module also includes: Retrieve the initial file pages of the target access file; Based on the file page offset interval of each initial file page and a preset grouping strategy, the initial file pages are grouped and merged to obtain a continuous combination of file pages of the target access file.

12. The file reading device according to claim 11, wherein, The file access module is further configured to group and merge the initial file pages based on the file page offset interval of each initial file page and a preset grouping strategy to obtain a continuous combination of file pages of the target access file, including: Obtain the file page information of each initial file page based on the preset file loading stubs; Calculate the file page offset interval for each initial file page based on the file page offset in the file page information; The consecutive file pages in each initial file page are determined based on the file page offset interval and the preset grouping strategy; The consecutive file pages are grouped and merged to obtain a combination of consecutive file pages of the target access file.

13. The file reading device according to claim 12, wherein, The file access module is further configured to determine consecutive file pages in each of the initial file pages based on the file page offset interval and a preset grouping strategy, including: Obtain the memory capacity value of the storage module corresponding to the target access file; The offset interval threshold for each initial file page is calculated based on the preset grouping strategy and the memory capacity value; Initial file pages whose offset interval is less than or equal to the offset interval threshold are identified as consecutive file pages.

14. The file reading device according to claim 13, wherein, The file access module is further configured to calculate the offset interval threshold for each of the initial file pages based on the preset grouping strategy and the memory capacity value, including: Obtain the offset interval threshold algorithm in the preset grouping strategy. Input the memory capacity value into the offset interval algorithm to obtain the offset interval threshold. The offset interval threshold algorithm expression is: offset threshold interval = capacity coefficient * memory capacity value - offset constant, where the capacity coefficient and offset constant are constants stored in the preset grouping strategy and are customized according to the actual business scenario requirements.

15. The file reading device according to claim 12, wherein, The file access module is further configured to calculate the file page offset interval of each initial file page based on the file page offset in the file page information, and then further include: Obtain the storage sector parameters and driver sector parameters of the storage module corresponding to the target access file; The target offset interval is determined based on the storage sector parameters, the drive sector parameters, and the file page size of the initial file page. If the file page offset interval is greater than the target offset interval, then the target offset interval is set as the file page offset interval of the initial file page.

16. The file reading device according to claim 10, wherein, The sequential reading module is further configured to sequentially read the target access file based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain file reading results, including: The target file page combination in the continuous file page combination is determined based on the file page read identifier in the file read request and the file page number identifier in the continuous file group; Obtain the number of target files in the target file page combination, and generate the pre-read window size corresponding to the number of target files; The target access file is read sequentially based on the pre-read window size and the target file page combination to obtain the file reading result.

17. The file reading device according to claim 16, wherein, The sequential reading module is further configured to obtain the number of target files in the target file page combination and generate a pre-read window size corresponding to the number of target files, including: Obtain the number of target files in the target file page combination; The size of the file prefetch window is obtained by setting the window size to the number of target files in the target file page combination.

18. The file reading device according to claim 10, wherein, The sequential reading module is further configured to sequentially read the target access file based on the consecutive file page combinations in the target access file and the pre-read window size corresponding to the consecutive file page combinations, to obtain file reading results, including: Identify the file reading scenario corresponding to the file reading request, and the business process type of the target business process; If the file reading scenario is the same as the preset target reading scenario and / or the business process type is the same as the preset sequential reading process type, then the file reading type of the file reading request is determined to be a sequential reading type; The target access file is sequentially read based on the sequential read type, the consecutive file page combinations in the target access file, and the pre-read window size corresponding to the consecutive file page combinations, to obtain the file read result.

19. A file reading device, wherein, The file reading device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the file reading method according to any one of claims 1 to 9.

20. A computer-readable storage medium, wherein, It stores a computer program, which is loaded by a processor to perform the steps of the file reading method according to any one of claims 1 to 9.