JPWO2014024610A1 - Data transfer device, data transfer method, and program - Google Patents

Data transfer device, data transfer method, and program Download PDF

Info

Publication number
JPWO2014024610A1
JPWO2014024610A1 JP2014529389A JP2014529389A JPWO2014024610A1 JP WO2014024610 A1 JPWO2014024610 A1 JP WO2014024610A1 JP 2014529389 A JP2014529389 A JP 2014529389A JP 2014529389 A JP2014529389 A JP 2014529389A JP WO2014024610 A1 JPWO2014024610 A1 JP WO2014024610A1
Authority
JP
Japan
Prior art keywords
data
compression
unit
transfer
performance value
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2014529389A
Other languages
Japanese (ja)
Inventor
真澄 一圓
真澄 一圓
真樹 菅
真樹 菅
純平 上村
純平 上村
徳寿 伊賀
徳寿 伊賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Publication of JPWO2014024610A1 publication Critical patent/JPWO2014024610A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/60General implementation details not specific to a particular type of compression
    • H03M7/6017Methods or arrangements to increase the throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

データ転送装置は、単位時間あたりに圧縮することができるデータ量を示す圧縮性能値と、単位時間あたりに転送することができるデータ量を示す転送性能値を算出し、それらに基づいて転送すべき全データに対する圧縮した後に転送するデータの割合を示す圧縮割合を算出する。データを記憶する記憶部から転送すべきデータを抽出すると、前記圧縮割合に基づいて、抽出したデータの一部を圧縮し、圧縮したデータと残りのデータとを他の装置に転送する。前記圧縮と転送処理とは、並行して実行される。The data transfer device should calculate a compression performance value indicating the amount of data that can be compressed per unit time and a transfer performance value indicating the amount of data that can be transferred per unit time, and transfer based on these values. A compression ratio indicating the ratio of data to be transferred after compression for all data is calculated. When data to be transferred is extracted from the storage unit for storing data, a part of the extracted data is compressed based on the compression ratio, and the compressed data and the remaining data are transferred to another device. The compression and transfer process are executed in parallel.

Description

本発明は、データ転送装置、データ転送方法、及びプログラムに関する。   The present invention relates to a data transfer device, a data transfer method, and a program.

近年、データを高速に並列処理して分析する技術が確立されつつある。例えば、データを分散して保持しておき、データを保持しているマシンで並列に処理を行う技術がある(非特許文献1を参照)。   In recent years, techniques for analyzing data by parallel processing at high speed have been established. For example, there is a technique in which data is distributed and held, and processing is performed in parallel on a machine holding the data (see Non-Patent Document 1).

一方、データを蓄積する蓄積装置からデータ処理装置にデータを移行(転送)する場合、当該データ処理装置における処理にあったデータ形式や構造にデータを変更する必要がある。
そのための処理として、蓄積装置からデータを読み込む処理(Extract)、データ形式の変換処理(Transform)、データ処理装置へのデータ読み込み処理(Load)を行う必要がある。これらの処理は、頭文字をとってETL処理と呼ばれる。
On the other hand, when data is transferred (transferred) from a storage device that stores data to a data processing device, it is necessary to change the data to a data format or structure suitable for processing in the data processing device.
For this purpose, it is necessary to perform processing for reading data from the storage device (Extract), data format conversion processing (Transform), and data reading processing (Load) to the data processing device. These processes are called ETL processes after the initials.

ETL処理においては、転送処理がボトルネックとなることが多い。これは、ストレージレイヤの広帯域化や演算器のマルチコア化による処理帯域の広帯域化が進んでいることが原因にある。
この問題を解決する方法として、データを圧縮して転送する技術がある(例えば、特許文献1、特許文献2を参照)。また、特許文献3には、データの圧縮と転送とを並列して実行する技術が開示されている。
In ETL processing, transfer processing often becomes a bottleneck. This is because the bandwidth of the storage layer and the processing bandwidth are increasing due to the multi-core computing unit.
As a method for solving this problem, there is a technique for compressing and transferring data (see, for example, Patent Document 1 and Patent Document 2). Patent Document 3 discloses a technique for executing data compression and transfer in parallel.

また、特許文献4、特許文献5には、圧縮すべきデータと圧縮しないデータとを振り分けてデータの転送を行う技術が開示されている。   Patent Documents 4 and 5 disclose techniques for transferring data by distributing data to be compressed and data not to be compressed.

特開平08−147251号公報Japanese Patent Laid-Open No. 08-147251 特開平07−175707号公報JP 07-175707 A 特開昭62−182919号公報Japanese Patent Laid-Open No. 62-182919 特開平01−108631号公報JP-A-01-108631 特開2008−176420号公報JP 2008-176420 A

“Hadoop”、[online]、Apache Software Foundation、[2012年7月30日検索]、インターネット〈URL: http://hadoop.apache.org/〉“Hadoop”, [online], Apache Software Foundation, [searched July 30, 2012], Internet <URL: http: // hadoop. apache. org />

しかしながら、特許文献1、2に記載の技術のように、圧縮処理を実行した後に転送処理を行う場合、圧縮処理の性能がそのまま転送性能に影響を与えてしまうという問題がある。例えば、圧縮性能が転送性能より悪い場合、実効転送スループットが悪化するおそれがある。なお、実効転送スループットとは、転送すべきデータ形式での転送スループットのことである。
また、特許文献3に記載の技術によれば、圧縮処理と転送処理とを並列して実行するが、転送すべき全てのデータを圧縮する必要があるため、特許文献1、2と同様に、圧縮性能がそのまま転送性能に影響を与えてしまうという問題がある。
However, when the transfer process is performed after the compression process is executed as in the techniques described in Patent Documents 1 and 2, there is a problem that the performance of the compression process directly affects the transfer performance. For example, when the compression performance is worse than the transfer performance, the effective transfer throughput may be deteriorated. The effective transfer throughput is a transfer throughput in a data format to be transferred.
Further, according to the technique described in Patent Document 3, the compression process and the transfer process are executed in parallel, but all the data to be transferred must be compressed. There is a problem that the compression performance directly affects the transfer performance.

また、特許文献4に記載の技術は、圧縮すべきデータと圧縮しないデータとで振り分けて、圧縮処理と転送処理とを並行して行うが、圧縮すべきデータと圧縮しないデータとの振り分けを制御する手段が明記されていない。
また、特許文献5に記載の技術は、圧縮率が高いデータを圧縮すべきデータ、圧縮率が低いデータを圧縮しないデータにそれぞれ振り分けて圧縮処理と転送処理とを並行して行う技術である。しかしながら、例えば全てのデータが圧縮率が高いデータである場合、または全てのデータが圧縮率が低いデータである場合、特許文献1−3と同様の問題が生じる。
The technique described in Patent Document 4 distributes data to be compressed and data that is not compressed, and performs compression processing and transfer processing in parallel, but controls the distribution of data to be compressed and data that is not compressed. The means to do is not specified.
The technique described in Patent Document 5 is a technique for performing compression processing and transfer processing in parallel by allocating data having a high compression ratio to data to be compressed and data having a low compression ratio to data not to be compressed. However, for example, when all the data is data with a high compression rate, or when all the data is data with a low compression rate, the same problem as in Patent Documents 1-3 occurs.

本発明の目的は、上述した課題を解決するデータ転送装置、データ転送方法、及びプログラムを提供することにある。   An object of the present invention is to provide a data transfer apparatus, a data transfer method, and a program that solve the above-described problems.

本発明は上記の課題を解決するためになされたものであり、データを圧縮する圧縮部と、前記圧縮部が単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する圧縮性能値算出部と、データを他の装置に転送する転送部と、前記転送部が単位時間あたりに転送することができるデータ量を示す転送性能値を算出する転送性能値算出部と、前記圧縮性能値と前記転送性能値とに基づいて、転送すべき全データに対する、前記圧縮部が圧縮した後に転送するデータの割合を示す圧縮割合を算出する圧縮割合算出部と、データを記憶する記憶部から転送すべきデータを抽出し、前記圧縮割合算出部が算出した圧縮割合に基づいて、抽出したデータの一部を前記圧縮部に出力し、残りを前記転送部に出力する圧縮判定部とを備え、前記圧縮部と前記転送部は並行して処理を行うことを特徴とするデータ転送装置を提供する。   The present invention has been made in order to solve the above-described problems, and includes a compression unit that compresses data, and a compression performance that calculates a compression performance value indicating the amount of data that the compression unit can compress per unit time. A value calculation unit, a transfer unit that transfers data to another device, a transfer performance value calculation unit that calculates a transfer performance value indicating the amount of data that the transfer unit can transfer per unit time, and the compression performance A compression ratio calculation unit that calculates a compression ratio indicating a ratio of data to be transferred after being compressed by the compression unit with respect to all data to be transferred based on a value and the transfer performance value; and a storage unit that stores data A compression determination unit that extracts data to be transferred, outputs a part of the extracted data to the compression unit, and outputs the rest to the transfer unit based on the compression ratio calculated by the compression ratio calculation unit; , Serial compression unit and the transfer unit provides data transfer apparatus characterized by performing the process in parallel.

また、本発明は、単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する圧縮性能値算出ステップと、単位時間あたりに転送することができるデータ量を示す転送性能値を算出する転送性能値算出ステップと、前記圧縮性能値と前記転送性能値とに基づいて、転送すべき全データに対する、圧縮した後に転送するデータの割合を示す圧縮割合を算出する圧縮割合算出ステップと、データを記憶する記憶部から転送すべきデータを抽出する抽出ステップと、前記圧縮割合に基づいて、抽出したデータの一部を圧縮する圧縮ステップと、前記圧縮ステップにおいて圧縮したデータと残りのデータとを他の装置に転送する転送ステップとを備え、前記圧縮ステップと前記転送ステップを並行して実行することを特徴とするデータ転送方法も提供する。   Also, the present invention calculates a compression performance value calculating step for calculating a compression performance value indicating the amount of data that can be compressed per unit time, and calculates a transfer performance value indicating the amount of data that can be transferred per unit time. A transfer performance value calculating step, a compression ratio calculation step for calculating a compression ratio indicating a ratio of data to be transferred after being compressed with respect to all data to be transferred, based on the compression performance value and the transfer performance value; An extraction step for extracting data to be transferred from a storage unit for storing data, a compression step for compressing a portion of the extracted data based on the compression ratio, the data compressed in the compression step, and the remaining data A transfer step for transferring the data to another device, wherein the compression step and the transfer step are executed in parallel. Transfer method is also provided.

また、本発明は、コンピュータを、データを圧縮する圧縮部、前記圧縮部が単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する圧縮性能値算出部、データを他の装置に転送する転送部、前記転送部が単位時間あたりに転送することができるデータ量を示す転送性能値を算出する転送性能値算出部、前記圧縮性能値と前記転送性能値とに基づいて、転送すべき全データに対する、前記圧縮部が圧縮した後に転送するデータの割合を示す圧縮割合を算出する圧縮割合算出部、データを記憶する記憶部から転送すべきデータを抽出し、前記圧縮割合算出部が算出した圧縮割合に基づいて、抽出したデータの一部を前記圧縮部に出力し、残りを前記転送部に出力する圧縮判定部として機能させ、前記圧縮部と前記転送部は並行して処理を行うことを特徴とするプログラムも提供する。   Further, the present invention provides a computer, a compression unit that compresses data, a compression performance value calculation unit that calculates a compression performance value indicating the amount of data that the compression unit can compress per unit time, and the data to another device Based on the compression performance value and the transfer performance value, a transfer performance value calculation unit that calculates a transfer performance value indicating the amount of data that the transfer unit can transfer per unit time. A compression ratio calculation unit for calculating a compression ratio indicating a ratio of data to be transferred after being compressed by the compression unit with respect to all data to be extracted, extracting data to be transferred from a storage unit for storing data, and the compression ratio calculation unit Based on the compression ratio calculated by the functioning unit, a part of the extracted data is output to the compression unit and the rest is output to the transfer unit as a compression determination unit. The compression unit and the transfer unit are arranged in parallel. Also provides a program and performs the process by.

本発明によれば、圧縮性能の良否に依存せずに実効転送スループットを向上させることができる。   According to the present invention, the effective transfer throughput can be improved without depending on whether the compression performance is good or bad.

本発明の第1の実施形態に係る蓄積装置を備える分析システムの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the analysis system provided with the storage device which concerns on the 1st Embodiment of this invention. 同第1の実施形態による蓄積装置のデータ取得処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the data acquisition process of the storage device by the said 1st Embodiment. 同第1の実施形態による蓄積装置のデータ転送処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the data transfer process of the storage device by the said 1st Embodiment. 同第2の実施形態に係る分析システムの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the analysis system which concerns on the 2nd Embodiment. 本発明によるデータ転送装置の基本構成を示す概略ブロック図である。It is a schematic block diagram which shows the basic composition of the data transfer apparatus by this invention.

《第1の実施形態》
以下、図面を参照しながら本発明の第1の実施形態について詳しく説明する。
図1は、本発明の第1の実施形態に係る蓄積装置1を備える分析システムの構成を示す概略ブロック図である。
<< First Embodiment >>
Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a schematic block diagram showing a configuration of an analysis system including a storage device 1 according to the first embodiment of the present invention.

分析システムは、蓄積装置1(データ転送装置)と分析装置2とを備える。
蓄積装置1は、サービスを提供するクライアントのデータや分析に用いるセンサのデータなど、分析処理を行う前の生データを蓄積する。
蓄積装置1と分析装置2とはネットワーク3で接続されており、蓄積装置1は、ネットワーク3を介してデータを分析装置2に送信する。
分析装置2は、蓄積装置1から転送されるデータに対して分析処理を行う。なお、本実施形態では、分析システムが分析装置2を1つだけ備える構成について説明するが、これに限られず、分析装置2に台数の制限はない。
The analysis system includes a storage device 1 (data transfer device) and an analysis device 2.
The accumulation device 1 accumulates raw data before performing analysis processing, such as data of a client providing a service and data of a sensor used for analysis.
The storage device 1 and the analysis device 2 are connected via a network 3, and the storage device 1 transmits data to the analysis device 2 via the network 3.
The analysis device 2 performs an analysis process on the data transferred from the storage device 1. In the present embodiment, the configuration in which the analysis system includes only one analysis device 2 will be described. However, the present invention is not limited to this, and the number of analysis devices 2 is not limited.

蓄積装置1は、記憶部101、取得部102、圧縮判定部103、非圧縮データ保持部104、圧縮前データ保持部105、圧縮後データ保持部106、圧縮部107、転送部108、転送性能値算出部109、圧縮性能値算出部110、圧縮割合算出部111を備える。   The storage device 1 includes a storage unit 101, an acquisition unit 102, a compression determination unit 103, an uncompressed data holding unit 104, a pre-compression data holding unit 105, a post-compression data holding unit 106, a compression unit 107, a transfer unit 108, and a transfer performance value. A calculation unit 109, a compression performance value calculation unit 110, and a compression ratio calculation unit 111 are provided.

記憶部101は、上述のクライアントのデータやセンサのデータなど、分析処理を行う前の生データを記憶する。具体的には、記憶部101は、データベースやファイルシステム、メッセージキューなどによって実装される。
取得部102は、記憶部101から分析装置2に送信すべきデータを取得する。
The storage unit 101 stores raw data before performing analysis processing, such as the above-described client data and sensor data. Specifically, the storage unit 101 is implemented by a database, a file system, a message queue, or the like.
The acquisition unit 102 acquires data to be transmitted from the storage unit 101 to the analysis device 2.

圧縮判定部103は、圧縮割合算出部111が算出した圧縮割合に基づいて、取得部102が取得したデータを圧縮するか否かを判定する。なお、圧縮割合とは、転送すべきデータに対する圧縮すべきデータ量の割合のことである。
例えば、圧縮した後に転送するデータのデータ量をc、圧縮せずに転送するデータのデータ量をsとすると、転送すべき全データが「c+s」であるため、圧縮割合は、「c/(c+s)」である。
また、圧縮判定部103は、データを圧縮すべきでないと判定した場合、当該データを非圧縮データ保持部104に記録し、データを圧縮すべきと判定した場合、当該データを圧縮前データ保持部105に記録する(enqueue、push)。
The compression determination unit 103 determines whether to compress the data acquired by the acquisition unit 102 based on the compression ratio calculated by the compression ratio calculation unit 111. The compression ratio is the ratio of the amount of data to be compressed to the data to be transferred.
For example, if the data amount of data to be transferred after compression is c and the data amount of data to be transferred without compression is s, all the data to be transferred is “c + s”, so the compression ratio is “c / ( c + s) ".
When the compression determination unit 103 determines that the data should not be compressed, the compression determination unit 103 records the data in the uncompressed data holding unit 104. When the compression determination unit 103 determines that the data should be compressed, the compression determination unit 103 stores the data before compression. 105 (enqueue, push).

非圧縮データ保持部104は、圧縮せずにそのまま分析装置2に転送すべきデータを一時的に保持する。
圧縮前データ保持部105は、圧縮部107により圧縮される前のデータを一時的に保持する。
圧縮後データ保持部106は、圧縮部107により圧縮されたデータを一時的に保持する。
なお、各保持部(非圧縮データ保持部104、圧縮前データ保持部105、圧縮後データ保持部106)は、FIFO(First In First Out)バッファなどによって実装される。
The uncompressed data holding unit 104 temporarily holds data to be transferred to the analyzer 2 as it is without being compressed.
The pre-compression data holding unit 105 temporarily holds data before being compressed by the compression unit 107.
The post-compression data holding unit 106 temporarily holds the data compressed by the compression unit 107.
Each holding unit (uncompressed data holding unit 104, pre-compression data holding unit 105, and post-compression data holding unit 106) is implemented by a FIFO (First In First Out) buffer or the like.

圧縮部107は、圧縮前データ保持部105から逐次データを取り出し(dequeue、pop)、当該データを圧縮する。圧縮部107による圧縮方法に制限はない。また圧縮部107は、圧縮したデータを圧縮後データ保持部106に記録する。
なお、本明細書において「保持部からデータを取り出す」とは、保持部からデータを読み出した後に、当該データを削除することを示す。
The compression unit 107 sequentially extracts data from the pre-compression data holding unit 105 (dequeue, pop) and compresses the data. There is no restriction | limiting in the compression method by the compression part 107. FIG. The compression unit 107 records the compressed data in the post-compression data holding unit 106.
In this specification, “extracting data from the holding unit” indicates that the data is deleted after the data is read from the holding unit.

転送部108は、非圧縮データ保持部104または圧縮後データ保持部106から逐次データを取り出し、ネットワーク3を介して分析装置2に転送する。
なお、転送部108は、非圧縮データ保持部104または圧縮後データ保持部106のうち一方の保持部を、データを取り出す保持部として選択し、当該保持部から全てのデータを取り出した後に、他方の保持部をデータを取り出す保持部として選択する。つまり、転送部108は、非圧縮データ保持部104が保持するデータの転送と圧縮後データ保持部106が保持するデータの転送のサイクルを繰り返し実行する。
なお、圧縮部107による圧縮処理と転送部108による転送処理とは並行して実行される。
The transfer unit 108 sequentially extracts data from the uncompressed data holding unit 104 or the compressed data holding unit 106 and transfers the data to the analyzer 2 via the network 3.
The transfer unit 108 selects one of the non-compressed data holding unit 104 and the post-compression data holding unit 106 as a holding unit for extracting data, and after extracting all data from the holding unit, Is selected as a holding unit for extracting data. That is, the transfer unit 108 repeatedly executes a cycle of transferring data held by the uncompressed data holding unit 104 and transferring data held by the compressed data holding unit 106.
Note that the compression processing by the compression unit 107 and the transfer processing by the transfer unit 108 are executed in parallel.

転送性能値算出部109は、転送部108を監視し、転送部108が単位時間あたりに転送することができるデータ量を示す転送性能値を算出する。なお本実施形態において、転送性能値は、メガバイト毎秒を単位とする転送処理スループットを示す。   The transfer performance value calculation unit 109 monitors the transfer unit 108 and calculates a transfer performance value indicating the amount of data that the transfer unit 108 can transfer per unit time. In the present embodiment, the transfer performance value indicates the transfer processing throughput in units of megabytes per second.

圧縮性能値算出部110は、圧縮部107を監視し、圧縮部107が単位時間当たりに圧縮することができるデータ量を示す圧縮性能値、及び圧縮部107によるデータの圧縮率を算出する。
なお本実施形態において、圧縮性能値は、メガバイト毎秒を単位とする圧縮処理スループットを示す。圧縮率は、圧縮後のデータ量を圧縮前のデータ量で除算することで算出する。例えば、圧縮部107の圧縮処理により100バイトのデータが10バイトになる場合、圧縮率は、10/100=0.1である。
The compression performance value calculation unit 110 monitors the compression unit 107, and calculates a compression performance value indicating the amount of data that the compression unit 107 can compress per unit time, and a compression rate of data by the compression unit 107.
In the present embodiment, the compression performance value indicates a compression processing throughput in units of megabytes per second. The compression rate is calculated by dividing the data amount after compression by the data amount before compression. For example, when the data of 100 bytes becomes 10 bytes by the compression processing of the compression unit 107, the compression rate is 10/100 = 0.1.

圧縮割合算出部111は、転送性能値算出部109が算出した転送性能値と圧縮性能値算出部110が算出した圧縮性能値とに基づいて、圧縮割合を算出する。なお、圧縮割合算出部111は、圧縮性能値による圧縮に要する時間と転送性能値による転送に要する時間とが同一となるようなデータ量の割合を、圧縮割合として算出する。   The compression ratio calculation unit 111 calculates a compression ratio based on the transfer performance value calculated by the transfer performance value calculation unit 109 and the compression performance value calculated by the compression performance value calculation unit 110. The compression ratio calculation unit 111 calculates the ratio of the data amount such that the time required for compression based on the compression performance value and the time required for transfer based on the transfer performance value are the same as the compression ratio.

圧縮割合算出部111が算出する圧縮割合により、圧縮判定部103は、圧縮に要する時間と転送に要する時間とが同一となるような割合で、データを圧縮前データ保持部105と非圧縮データ保持部104とに振り分ける。これにより、圧縮部107は、非圧縮データ保持部104が保持するデータを転送部108が全て転送したときに、圧縮前データ保持部105が保持するデータを全て圧縮し終えることとなる。
つまり、本実施形態によれば、転送部108が圧縮部107による圧縮処理が完了を待機することがないため、圧縮性能の良否によらず、実効転送スループットを確実に向上させることができる。
According to the compression ratio calculated by the compression ratio calculation unit 111, the compression determination unit 103 holds the data and the uncompressed data holding unit 105 so that the time required for compression and the time required for transfer are the same. Divided into parts 104. As a result, when the transfer unit 108 transfers all the data held by the uncompressed data holding unit 104, the compression unit 107 finishes compressing all the data held by the pre-compression data holding unit 105.
That is, according to the present embodiment, since the transfer unit 108 does not wait for the compression processing by the compression unit 107 to be completed, the effective transfer throughput can be reliably improved regardless of the compression performance.

次に、本実施形態による蓄積装置1の動作について説明する。
まず、本実施形態による蓄積装置1のデータ取得処理について説明する。
図2は、本発明の第1の実施形態による蓄積装置1のデータ取得処理の動作を示すフローチャートである。
まず、初期設定として、圧縮判定部103は、管理者の入力に基づいて、蓄積装置1のデータ取得処理における単位データ量を設定して内部メモリに記録する(ステップS1)。
データ取得処理における単位データ量とは、圧縮判定部103が圧縮するデータ量を算出する際の基となるデータ量であって、転送部108による非圧縮データ及び圧縮後データの転送の1サイクルにおいて転送されるデータの総データ量である。
Next, the operation of the storage device 1 according to the present embodiment will be described.
First, the data acquisition process of the storage device 1 according to the present embodiment will be described.
FIG. 2 is a flowchart showing an operation of data acquisition processing of the storage device 1 according to the first embodiment of the present invention.
First, as an initial setting, the compression determination unit 103 sets a unit data amount in the data acquisition process of the storage device 1 based on an input from the administrator, and records it in the internal memory (step S1).
The unit data amount in the data acquisition process is a data amount that is a basis for calculating the data amount to be compressed by the compression determination unit 103, and in one cycle of transfer of uncompressed data and compressed data by the transfer unit 108. This is the total amount of data transferred.

次に、圧縮割合算出部111は、転送性能値及び圧縮性能値を所定の式に当てはめることで、圧縮割合を算出する(ステップS2)。
なお、圧縮割合を算出するための式は、例えば数理計画法を用いて、転送性能値及び圧縮性能値をモデル化することで導出することができる。本実施形態においては、圧縮割合は、「C/(N+C−Ca)」によって算出する。ここで、Cとは圧縮性能値を示し、Nとは転送性能値を示し、aは圧縮率を示す。
例えば、圧縮性能値算出部110が算出した圧縮性能値が20メガバイト毎秒、圧縮率が0.3であり、転送性能値算出部109が算出した転送性能値が100メガバイト毎秒である場合、圧縮割合算出部111は、0.175を圧縮割合として算出する。
なお、初回実行時には、圧縮性能値算出部110及び転送性能値算出部109は、それぞれ予め測定しておいた圧縮性能値及び転送性能値の初期値を圧縮割合算出部111に出力する。
また、圧縮後のデータの転送処理時間が十分に小さい場合は、圧縮率を用いずに「C/(N+C)」によって圧縮割合を算出しても良い。
なお、圧縮割合の算出法は、「C/(N+C−Ca)」や「C/(N+C)」に限られず、転送性能値及び圧縮性能値をモデル化することで導出された他の式であっても良い。
Next, the compression ratio calculation unit 111 calculates the compression ratio by applying the transfer performance value and the compression performance value to a predetermined expression (step S2).
The formula for calculating the compression ratio can be derived by modeling the transfer performance value and the compression performance value using, for example, mathematical programming. In the present embodiment, the compression ratio is calculated by “C / (N + C−Ca)”. Here, C indicates a compression performance value, N indicates a transfer performance value, and a indicates a compression rate.
For example, when the compression performance value calculated by the compression performance value calculation unit 110 is 20 megabytes per second and the compression rate is 0.3, and the transfer performance value calculated by the transfer performance value calculation unit 109 is 100 megabytes per second, the compression rate The calculation unit 111 calculates 0.175 as the compression ratio.
In the first execution, the compression performance value calculation unit 110 and the transfer performance value calculation unit 109 output the compression performance value and the initial value of the transfer performance value measured in advance to the compression ratio calculation unit 111, respectively.
If the data transfer processing time after compression is sufficiently short, the compression ratio may be calculated by “C / (N + C)” without using the compression ratio.
The method for calculating the compression ratio is not limited to “C / (N + C−Ca)” or “C / (N + C)”, and other expressions derived by modeling transfer performance values and compression performance values. There may be.

次に、圧縮判定部103は、ステップS1で設定した単位データ量と、ステップS2で圧縮割合算出部111が算出した圧縮割合とに基づいて、非圧縮データの送出データ量閾値と、圧縮データの送出データ量閾値とを設定して、内部メモリに記録する(ステップS3)。
具体的には、圧縮データの送出データ量閾値は、単位データ量に圧縮割合を乗算することで算出し、非圧縮データの送出データ量閾値は、単位データ量に、圧縮割合の補数(1−圧縮割合)を乗算することで算出する。
Next, based on the unit data amount set in step S1 and the compression ratio calculated by the compression ratio calculation unit 111 in step S2, the compression determination unit 103 determines the transmission data amount threshold for uncompressed data, and the compressed data A transmission data amount threshold is set and recorded in the internal memory (step S3).
Specifically, the transmission data amount threshold for compressed data is calculated by multiplying the unit data amount by the compression ratio, and the transmission data amount threshold for uncompressed data is calculated by multiplying the unit data amount by the complement of the compression ratio (1− It is calculated by multiplying the compression ratio.

例えば、単位データ量が1000キロバイトであり、圧縮割合が0.3である場合、圧縮判定部103は、圧縮データの送出データ量閾値が300キロバイトであり、非圧縮データの送出データ量閾値が700キロバイトであると算出する。
この場合、1000キロバイトのデータのうち、700キロバイト分のデータが圧縮されずに転送され、300キロバイト分のデータが圧縮された後に転送されることとなる。なお、この場合、圧縮部107による300キロバイトのデータの圧縮に要する時間と、転送部108による700キロバイトのデータの転送に要する時間は、ほぼ同じである。
For example, if the unit data amount is 1000 kilobytes and the compression ratio is 0.3, the compression determination unit 103 has a compressed data transmission data amount threshold value of 300 kilobytes and an uncompressed data transmission data amount threshold value of 700. Calculate as kilobytes.
In this case, of the 1000 kilobytes of data, 700 kilobytes of data are transferred without being compressed, and 300 kilobytes of data are transferred after being compressed. In this case, the time required for compressing 300 kilobytes of data by the compression unit 107 and the time required for transferring 700 kilobytes of data by the transfer unit 108 are substantially the same.

次に、圧縮判定部103は、非圧縮データ保持部104または圧縮前データ保持部105に記録したデータ量を示す累積送出データ量を、初期値の0に設定して内部メモリに記録する(ステップS4)。
また、圧縮判定部103は、取得部102が取得したデータの記録先の保持部として、非圧縮データ保持部104を選択して内部メモリに記録する(ステップS5)。
以上がデータ取得処理の初期設定である。
Next, the compression determination unit 103 sets the accumulated transmission data amount indicating the data amount recorded in the non-compressed data holding unit 104 or the pre-compression data holding unit 105 to an initial value of 0 and records it in the internal memory (step). S4).
In addition, the compression determination unit 103 selects the non-compressed data holding unit 104 as a recording destination holding unit for the data acquired by the acquiring unit 102 and records it in the internal memory (step S5).
The above is the initial setting of the data acquisition process.

初期設定を終えると、取得部102は、記憶部101を参照し、分析装置2に転送すべきデータがあるか否かを判定する(ステップS6)。
取得部102は、分析装置2に転送すべきデータがあると判定した場合(ステップS6:YES)、当該データを取得する(複数種類ある時は、そのうちの1つ)(ステップS7)。
次に、取得部102は、取得したデータのデータ量を算出する(ステップS8)。次に、圧縮判定部103は、内部メモリに記憶する累積送出データ量に、当該データ量を加算する(ステップS9)。
When the initial setting is completed, the acquisition unit 102 refers to the storage unit 101 and determines whether there is data to be transferred to the analyzer 2 (step S6).
If the acquisition unit 102 determines that there is data to be transferred to the analyzer 2 (step S6: YES), the acquisition unit 102 acquires the data (one of them when there are multiple types) (step S7).
Next, the acquisition unit 102 calculates the data amount of the acquired data (step S8). Next, the compression determination unit 103 adds the data amount to the cumulative transmission data amount stored in the internal memory (step S9).

次に、圧縮判定部103は、内部メモリにおいてデータの記録先の保持部として非圧縮データ保持部104と圧縮前データ保持部105のいずれを選択しているかを判定する(ステップS10)。
圧縮判定部103は、データの記録先の保持部として非圧縮データ保持部104を選択している場合(ステップS10:非圧縮)、取得部102が取得したデータを非圧縮データ保持部104に記録する(ステップS11)。
Next, the compression determination unit 103 determines which one of the uncompressed data holding unit 104 and the pre-compression data holding unit 105 is selected as a data recording destination holding unit in the internal memory (step S10).
When the non-compressed data holding unit 104 is selected as the data recording destination holding unit (step S10: uncompressed), the compression determination unit 103 records the data acquired by the acquiring unit 102 in the non-compressed data holding unit 104. (Step S11).

次に、圧縮判定部103は、内部メモリに記憶する累積送出データ量が、非圧縮データの送出データ量閾値以上であるか否かを判定する(ステップS12)。累積送出データ量が非圧縮データの送出データ量閾値未満である場合(ステップS12:NO)、ステップS6に戻り、次のデータの処理を行う。   Next, the compression determination unit 103 determines whether or not the accumulated transmission data amount stored in the internal memory is equal to or larger than a transmission data amount threshold value of uncompressed data (step S12). If the accumulated transmission data amount is less than the transmission data amount threshold value of the uncompressed data (step S12: NO), the process returns to step S6 to process the next data.

他方、累積送出データ量が非圧縮データの送出データ量閾値以上である場合(ステップS12:YES)、圧縮判定部103は、内部メモリに記憶するデータの記録先の保持部を、圧縮前データ保持部105に書き換え、累積送出データ量を0にリセットする(ステップS13)。
また、このとき転送性能値算出部109及び圧縮性能値算出部110は、それぞれ転送性能値及び圧縮性能値を算出する。
次に、圧縮割合算出部111は圧縮割合を算出し、圧縮判定部103は、当該圧縮割合に基づいて圧縮データの送出データ量閾値及び非圧縮データの送出データ量閾値を算出し、内部メモリに記録する(ステップS14)。
そして、ステップS6に戻り、次のデータの処理を行う。
On the other hand, when the cumulative transmission data amount is equal to or larger than the transmission data amount threshold value of the uncompressed data (step S12: YES), the compression determination unit 103 sets the storage unit for storing the data to be stored in the internal memory as the pre-compression data storage unit. The data is rewritten to the unit 105, and the accumulated transmission data amount is reset to 0 (step S13).
At this time, the transfer performance value calculation unit 109 and the compression performance value calculation unit 110 calculate the transfer performance value and the compression performance value, respectively.
Next, the compression ratio calculation unit 111 calculates a compression ratio, and the compression determination unit 103 calculates a transmission data amount threshold for compressed data and a transmission data amount threshold for uncompressed data based on the compression ratio, and stores them in the internal memory. Recording is performed (step S14).
Then, the process returns to step S6 to process the next data.

また、ステップS10において圧縮判定部103は、データの記録先の保持部として圧縮前データ保持部105を選択している場合(ステップS10:圧縮前)、取得部102が取得したデータを圧縮前データ保持部105に記録する(ステップS15)。   In step S10, when the compression determination unit 103 selects the pre-compression data holding unit 105 as a data recording destination holding unit (step S10: before compression), the data acquired by the acquisition unit 102 is converted into pre-compression data. Recording is performed in the holding unit 105 (step S15).

次に、圧縮判定部103は、内部メモリに記憶する累積送出データ量が、圧縮データの送出データ量閾値以上であるか否かを判定する(ステップS16)。累積送出データ量が圧縮データの送出データ量閾値未満である場合(ステップS16:NO)、ステップS6に戻り、次のデータの処理を行う。   Next, the compression determination unit 103 determines whether or not the accumulated transmission data amount stored in the internal memory is equal to or larger than the transmission data amount threshold value of the compressed data (step S16). When the cumulative transmission data amount is less than the transmission data amount threshold value of the compressed data (step S16: NO), the process returns to step S6 to process the next data.

他方、累積送出データ量が圧縮データの送出データ量閾値以上である場合(ステップS16:YES)、圧縮判定部103は、内部メモリに記憶するデータの記録先の保持部を、非圧縮データ保持部104に書き換え、累積送出データ量を0にリセットする(ステップS17)。
また、このとき転送性能値算出部109及び圧縮性能値算出部110は、それぞれ転送性能値及び圧縮性能値を算出する。
次に、圧縮割合算出部111は圧縮割合を算出し、圧縮判定部103は、当該圧縮割合に基づいて圧縮データの送出データ量閾値及び非圧縮データの送出データ量閾値を算出し、内部メモリに記録する(ステップS18)。
そして、ステップS6に戻り、次のデータの処理を行う。
On the other hand, when the accumulated transmission data amount is equal to or larger than the transmission data amount threshold value of the compressed data (step S16: YES), the compression determination unit 103 sets the storage unit for storing the data to be stored in the internal memory as an uncompressed data storage unit. It is rewritten to 104, and the accumulated transmission data amount is reset to 0 (step S17).
At this time, the transfer performance value calculation unit 109 and the compression performance value calculation unit 110 calculate the transfer performance value and the compression performance value, respectively.
Next, the compression ratio calculation unit 111 calculates a compression ratio, and the compression determination unit 103 calculates a transmission data amount threshold for compressed data and a transmission data amount threshold for uncompressed data based on the compression ratio, and stores them in the internal memory. Recording is performed (step S18).
Then, the process returns to step S6 to process the next data.

なお、ステップS6において取得部102は、分析装置2に転送すべきデータがないと判定した場合(ステップS6:NO)、つまり分析装置2に転送すべきデータを全て取得した場合、データ取得処理を終了する。   In step S6, if the acquisition unit 102 determines that there is no data to be transferred to the analyzer 2 (step S6: NO), that is, if all the data to be transferred to the analyzer 2 is acquired, the data acquisition process is performed. finish.

次に、本実施形態による蓄積装置1のデータ転送処理について説明する。
図3は、本発明の第1の実施形態による蓄積装置1のデータ転送処理の動作を示すフローチャートである。
まず、転送部108は、転送すべきデータを取得する保持部として、非圧縮データ保持部104を選択し、内部メモリに記録する(ステップS101)。
Next, the data transfer process of the storage device 1 according to the present embodiment will be described.
FIG. 3 is a flowchart showing the data transfer processing operation of the storage device 1 according to the first embodiment of the present invention.
First, the transfer unit 108 selects the non-compressed data holding unit 104 as a holding unit that acquires data to be transferred, and records it in the internal memory (step S101).

次に、転送部108は、転送すべき全てのデータの転送を完了しているか否かを判定する(ステップS102)。
データの転送が完了しているかの判定方法としては、例えば、管理者などによる操作や割り込み処理などにより、外部から処理の終了要求を入力した場合が挙げられる。
転送部108は、全てのデータの転送を完了していないと判定した場合(ステップS102:NO)、転送すべきデータを取得する保持部として選択している保持部(非圧縮データ保持部104または圧縮後データ保持部106)にデータが格納されているか否かを判定する(ステップS103)。
Next, the transfer unit 108 determines whether or not transfer of all data to be transferred has been completed (step S102).
As a method for determining whether or not the data transfer has been completed, for example, a case where a process end request is input from the outside by an operation by an administrator or an interrupt process or the like can be cited.
If the transfer unit 108 determines that the transfer of all data has not been completed (step S102: NO), the transfer unit 108 selects the holding unit (uncompressed data holding unit 104 or It is determined whether data is stored in the post-compression data holding unit 106) (step S103).

転送すべきデータを取得する保持部として選択している保持部にデータが格納されていると判定した場合(ステップS103:YES)、当該保持部からデータを取り出す(ステップS104)。
そして、転送部108は、取り出したデータに、当該データの種類を識別する情報を付与して、ネットワーク3を介して分析装置2に転送する(ステップS105)。
ここで、データの種類を識別する情報とは、当該データが圧縮されたものであるか否かを示す情報である。なお転送部108が、非圧縮データ保持部104が記憶するデータを転送している場合、当該転送処理に並行して、圧縮部107は、圧縮前データ保持部105が記憶するデータを圧縮し、逐次圧縮後データ保持部106に記録している。これにより、転送部108が、非圧縮データ保持部104が記憶するデータを転送し終えたときに、圧縮部107は、圧縮前データ保持部105が記憶するデータを全て圧縮し終えることとなる。
そしてステップS102に戻り、次のデータの転送を行う。
If it is determined that the data is stored in the holding unit selected as the holding unit that acquires the data to be transferred (step S103: YES), the data is taken out from the holding unit (step S104).
Then, the transfer unit 108 adds information identifying the type of the data to the extracted data, and transfers the data to the analyzer 2 via the network 3 (step S105).
Here, the information for identifying the type of data is information indicating whether or not the data is compressed. When the transfer unit 108 is transferring the data stored in the uncompressed data holding unit 104, in parallel with the transfer process, the compression unit 107 compresses the data stored in the pre-compression data holding unit 105, The data is recorded in the data holding unit 106 after sequential compression. As a result, when the transfer unit 108 finishes transferring the data stored in the non-compressed data holding unit 104, the compression unit 107 finishes compressing all the data stored in the pre-compression data holding unit 105.
Then, the process returns to step S102, and the next data is transferred.

他方、ステップS103において、転送すべきデータを取得する保持部として選択している保持部にデータが格納されていないと判定した場合(ステップS103:NO)、転送部108は、内部メモリに記憶している、転送すべきデータを取得する保持部の情報を切り替える(ステップS106)。
つまり、内部メモリに記憶している転送すべきデータを取得する保持部が非圧縮データ保持部104である場合、転送部108は、転送すべきデータを取得する保持部を圧縮後データ保持部106に切り替える。
他方、内部メモリに記憶している転送すべきデータを取得する保持部が圧縮後データ保持部106である場合、転送部108は、転送すべきデータを取得する保持部を非圧縮データ保持部104に切り替える。そしてステップS102に戻り、次のデータの転送を行う。
On the other hand, when it is determined in step S103 that no data is stored in the holding unit selected as the holding unit that acquires the data to be transferred (step S103: NO), the transfer unit 108 stores the data in the internal memory. The information of the holding unit that acquires the data to be transferred is switched (step S106).
That is, when the holding unit that acquires the data to be transferred stored in the internal memory is the uncompressed data holding unit 104, the transfer unit 108 sets the holding unit that acquires the data to be transferred as the post-compression data holding unit 106. Switch to.
On the other hand, when the holding unit that acquires the data to be transferred stored in the internal memory is the post-compression data holding unit 106, the transfer unit 108 sets the holding unit that acquires the data to be transferred as the uncompressed data holding unit 104. Switch to. Then, the process returns to step S102, and the next data is transferred.

他方、ステップS102において転送部108は、全てのデータの転送を完了したと判定した場合(ステップS102:YES)、データ転送処理を終了する。   On the other hand, if it is determined in step S102 that the transfer of all data has been completed (step S102: YES), the data transfer process ends.

なお、蓄積装置1からデータの転送を受けた分析装置2は、ステップS105で付与された情報に基づいてデータが圧縮されたデータであるか否かを判定し、それに応じた記憶部101にデータを振り分けて、圧縮されているデータのみを解凍処理する。これにより、分析装置2は、性能を落とすことなくデータを受信することができる。   The analysis device 2 that has received the data transfer from the storage device 1 determines whether the data is compressed data based on the information given in step S105, and stores the data in the storage unit 101 accordingly. And only decompress the compressed data. Thereby, the analyzer 2 can receive data without degrading performance.

このように、本実施形態によれば、蓄積装置1は、圧縮性能に見合った圧縮割合に従って圧縮すべきデータと圧縮すべきでないデータとに割り振ることで、転送性能を低下させることなく、圧縮処理と転送処理とを並行して実行することができる。これにより、圧縮による転送データ量の削減分だけ転送時間が短縮されるため、実効転送スループットを向上させることができる。   As described above, according to the present embodiment, the storage device 1 allocates the data to be compressed and the data that should not be compressed according to the compression ratio corresponding to the compression performance, so that the compression processing is performed without reducing the transfer performance. And the transfer process can be executed in parallel. As a result, the transfer time is reduced by the amount of transfer data reduced by the compression, so that the effective transfer throughput can be improved.

また、本実施形態によれば、蓄積装置1の転送性能値算出部109及び圧縮性能値算出部110は、転送処理及び圧縮処理の実行中に、転送性能と圧縮性能とを算出し、圧縮割合を算出しなおす(ステップS14、ステップS18)。これにより、常に状況に合った最適な圧縮割合を設定することができる。   Further, according to the present embodiment, the transfer performance value calculation unit 109 and the compression performance value calculation unit 110 of the storage device 1 calculate the transfer performance and the compression performance during the execution of the transfer process and the compression process, and the compression ratio. Is recalculated (step S14, step S18). Thereby, it is possible to always set an optimal compression ratio suitable for the situation.

《第2の実施形態》
次に、本発明の第2の実施形態について説明する。
図4は、本発明の第2の実施形態に係る分析システムの構成を示す概略ブロック図である。
第2の実施形態に係る分析システムの蓄積装置1は、第1の実施形態に係る蓄積装置1の構成に加えて、さらにリソース制御部112を備える。
<< Second Embodiment >>
Next, a second embodiment of the present invention will be described.
FIG. 4 is a schematic block diagram showing the configuration of the analysis system according to the second embodiment of the present invention.
The storage device 1 of the analysis system according to the second embodiment further includes a resource control unit 112 in addition to the configuration of the storage device 1 according to the first embodiment.

リソース制御部112は、自装置の空き計算リソースを特定し、当該空き計算リソースの有無に基づいて、圧縮部107の処理並列数や計算リソースの利用優先度の制御を行う。
なお、計算リソースとは、CPU(Central Processing Unit)やGPU(Graphics Processing Unit)などの処理演算器や、RAM(Random Access Memory)などの主記憶装置などのことである。
The resource control unit 112 identifies a free calculation resource of the own device, and controls the processing parallel number of the compression unit 107 and the use priority of the calculation resource based on the presence or absence of the free calculation resource.
Note that the computing resources are processing arithmetic units such as a CPU (Central Processing Unit) and GPU (Graphics Processing Unit), and a main storage device such as a RAM (Random Access Memory).

ここで、蓄積装置1の計算リソースとして、4つのコアからなるCPUが使用されている場合を例に、第2の実施形態に係る蓄積装置1の動作について説明する。リソース制御部112が、転送処理中に計算リソースの負荷を計算し、2つのコアの使用率が100%であり、残りのコアの使用率が0%であると判定した場合、リソース制御部112は、圧縮部107の処理並列数を2つ上げる。   Here, the operation of the storage device 1 according to the second embodiment will be described by taking as an example a case where a CPU including four cores is used as the calculation resource of the storage device 1. When the resource control unit 112 calculates the load of the calculation resource during the transfer process and determines that the usage rate of the two cores is 100% and the usage rate of the remaining cores is 0%, the resource control unit 112 Increases the processing parallel number of the compression unit 107 by two.

これにより、圧縮部107の圧縮性能が向上するため、圧縮割合算出部111が算出する圧縮割合は、処理並列数を上げる前と比較して高くなる。これにより、転送するデータに対する圧縮すべきデータ量が増えるため、実効転送スループットをさらに向上させることができる。   Thereby, since the compression performance of the compression unit 107 is improved, the compression ratio calculated by the compression ratio calculation unit 111 is higher than before the number of processing parallels is increased. As a result, the amount of data to be compressed with respect to the data to be transferred increases, so that the effective transfer throughput can be further improved.

以上、図面を参照してこの発明のいくつかの実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。
例えば、上述した実施形態では、本発明に係るデータ転送装置を蓄積装置1に実装する場合について説明したが、これに限られず、記憶部101を備える蓄積装置1とデータ転送装置とを別個に備える構成であっても良い。
Although several embodiments of the present invention have been described in detail with reference to the drawings, the specific configuration is not limited to that described above, and various designs can be made without departing from the scope of the present invention. It is possible to make changes.
For example, in the above-described embodiment, the case where the data transfer device according to the present invention is mounted on the storage device 1 has been described. However, the present invention is not limited to this, and the storage device 1 including the storage unit 101 and the data transfer device are separately provided. It may be a configuration.

また、上述した実施形態では、圧縮割合算出部111がデータ量に基づいて圧縮割合を算出する場合について説明したが、これに限られない。
例えば、取得部102が取得するデータのデータ量が一定である場合は、データ取得回数に基づいて圧縮割合を算出しても良いし、取得部102によるデータ取得スループットが一定である場合は、時間を基に圧縮割合を算出しても良い。
In the above-described embodiment, the case where the compression ratio calculation unit 111 calculates the compression ratio based on the data amount has been described, but the present invention is not limited thereto.
For example, when the data amount of data acquired by the acquisition unit 102 is constant, the compression ratio may be calculated based on the number of data acquisitions, or when the data acquisition throughput by the acquisition unit 102 is constant, The compression ratio may be calculated based on the above.

また、上述した実施形態では、初期設定において圧縮判定部103がデータの記録先の保持部として、非圧縮データ保持部104を選択し(ステップS5)、転送部108が転送すべきデータを取得する保持部として非圧縮データ保持部104を選択する(ステップS101)場合について説明したが、これに限られない。
例えば、初期設定において、データの記録先の保持部として、圧縮前データ保持部105を選択しても良いし、転送すべきデータを取得する保持部として圧縮後データ保持部106を選択しても良い。
但し、初期状態においては圧縮部107による圧縮処理が完了していないため、圧縮後データ保持部106にはデータが記録されていないので、この場合、転送部108はすぐに転送処理を開始することができない。
In the above-described embodiment, in the initial setting, the compression determination unit 103 selects the non-compressed data holding unit 104 as the data recording destination holding unit (step S5), and the transfer unit 108 acquires data to be transferred. Although the case where the uncompressed data holding unit 104 is selected as the holding unit (step S101) has been described, the present invention is not limited to this.
For example, in the initial setting, the pre-compression data holding unit 105 may be selected as a data recording destination holding unit, or the post-compression data holding unit 106 may be selected as a holding unit that acquires data to be transferred. good.
However, since the compression process by the compression unit 107 is not completed in the initial state, no data is recorded in the post-compression data holding unit 106. In this case, the transfer unit 108 starts the transfer process immediately. I can't.

《基本構成》
図5は、本発明によるデータ転送装置の基本構成を示す概略ブロック図である。
上述した実施形態では、本発明によるデータ転送装置の一実施形態として図1、図4に示す構成について説明したが、本発明によるデータ転送装置の基本構成は、図5に示すとおりである。
すなわち、本発明によるデータ転送装置は、圧縮判定部103、圧縮部107、転送部108、転送性能値算出部109、圧縮性能値算出部110、圧縮割合算出部111を基本構成とする。
<Basic configuration>
FIG. 5 is a schematic block diagram showing the basic configuration of the data transfer apparatus according to the present invention.
In the embodiment described above, the configuration shown in FIGS. 1 and 4 has been described as an embodiment of the data transfer device according to the present invention. The basic configuration of the data transfer device according to the present invention is as shown in FIG.
That is, the data transfer apparatus according to the present invention has a compression determination unit 103, a compression unit 107, a transfer unit 108, a transfer performance value calculation unit 109, a compression performance value calculation unit 110, and a compression ratio calculation unit 111 as basic configurations.

圧縮判定部103は、圧縮割合算出部111が算出した圧縮割合に基づいて、抽出したデータの一部を圧縮部107に出力し、残りを転送部108に出力する。
圧縮部107は、データを圧縮する。転送部108は、データを他の装置に転送する。
転送性能値算出部109は、転送部108が単位時間あたりに転送することができるデータ量を示す転送性能値を算出する。圧縮性能値算出部110は、圧縮部107が単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する。
圧縮割合算出部111は、上記圧縮性能値と上記転送性能値とに基づいて、転送部108が転送すべきデータに対する圧縮部107が圧縮すべきデータ量の割合を示す圧縮割合を算出する。
Based on the compression ratio calculated by the compression ratio calculation unit 111, the compression determination unit 103 outputs a part of the extracted data to the compression unit 107 and outputs the rest to the transfer unit 108.
The compression unit 107 compresses data. The transfer unit 108 transfers data to another device.
The transfer performance value calculation unit 109 calculates a transfer performance value indicating the amount of data that the transfer unit 108 can transfer per unit time. The compression performance value calculation unit 110 calculates a compression performance value indicating the amount of data that the compression unit 107 can compress per unit time.
Based on the compression performance value and the transfer performance value, the compression ratio calculation unit 111 calculates a compression ratio indicating the ratio of the amount of data to be compressed by the compression unit 107 to the data to be transferred by the transfer unit 108.

これにより、データ転送装置は、圧縮性能の良否に依存せずに実効転送スループットを向上させることができる。   Thereby, the data transfer apparatus can improve the effective transfer throughput without depending on whether the compression performance is good or bad.

上述のデータ転送装置は内部に、コンピュータシステムを有している。
そして、上述した各処理部の動作は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータが読み出して実行することによって、上記処理が行われる。
ここでコンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。
また、このコンピュータプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該プログラムを実行するようにしても良い。
The data transfer apparatus described above has a computer system inside.
The operation of each processing unit described above is stored in a computer-readable recording medium in the form of a program, and the above processing is performed by the computer reading and executing this program.
Here, the computer-readable recording medium means a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, or the like.
Alternatively, the computer program may be distributed to the computer via a communication line, and the computer that has received the distribution may execute the program.

また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。
さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
The program may be for realizing a part of the functions described above.
Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

この出願は、2012年8月7日に出願された日本出願特願2012−174802号を基礎とする優先権を主張し、その開示の全てをここに取り込む。
This application claims the priority on the basis of Japanese application Japanese Patent Application No. 2012-174802 for which it applied on August 7, 2012, and takes in those the indications of all here.

本発明によれば、圧縮性能の良否に依存せずに実効転送スループットを向上させることができる。   According to the present invention, the effective transfer throughput can be improved without depending on whether the compression performance is good or bad.

1…蓄積装置
2…分析装置
3…ネットワーク
101…記憶部
102…取得部
103…圧縮判定部
104…非圧縮データ保持部
105…圧縮前データ保持部
106…圧縮後データ保持部
107…圧縮部
108…転送部
109…転送性能値算出部
110…圧縮性能値算出部
111…圧縮割合算出部
112…リソース制御部
DESCRIPTION OF SYMBOLS 1 ... Accumulation apparatus 2 ... Analysis apparatus 3 ... Network 101 ... Memory | storage part 102 ... Acquisition part 103 ... Compression determination part 104 ... Uncompressed data holding part 105 ... Pre-compression data holding part 106 ... Post-compression data holding part 107 ... Compression part 108 ... Transfer unit 109 ... Transfer performance value calculation unit 110 ... Compression performance value calculation unit 111 ... Compression rate calculation unit 112 ... Resource control unit

Claims (10)

データを圧縮する圧縮部と、
前記圧縮部が単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する圧縮性能値算出部と、
データを他の装置に転送する転送部と、
前記転送部が単位時間あたりに転送することができるデータ量を示す転送性能値を算出する転送性能値算出部と、
前記圧縮性能値と前記転送性能値とに基づいて、前記転送部が転送すべきデータに対する前記圧縮部が圧縮すべきデータ量の割合を示す圧縮割合を算出する圧縮割合算出部と、
データを記憶する記憶部から転送すべきデータを抽出し、前記圧縮割合算出部が算出した圧縮割合に基づいて、抽出したデータの一部を前記圧縮部に出力し、残りを前記転送部に出力する圧縮判定部と
を備え、
前記圧縮部と前記転送部は並行して処理を行う
ことを特徴とするデータ転送装置。
A compression unit for compressing data;
A compression performance value calculation unit that calculates a compression performance value indicating the amount of data that the compression unit can compress per unit time;
A transfer unit for transferring data to another device;
A transfer performance value calculating unit that calculates a transfer performance value indicating the amount of data that the transfer unit can transfer per unit time; and
Based on the compression performance value and the transfer performance value, a compression ratio calculation unit that calculates a compression ratio indicating a ratio of the amount of data to be compressed by the compression unit with respect to data to be transferred by the transfer unit;
Extract data to be transferred from a storage unit for storing data, output a part of the extracted data to the compression unit based on the compression ratio calculated by the compression ratio calculation unit, and output the rest to the transfer unit A compression determination unit that
The data transfer apparatus, wherein the compression unit and the transfer unit perform processing in parallel.
前記圧縮部により圧縮すべきデータを保持する圧縮前データ保持部と、
前記圧縮部が圧縮したデータを保持する圧縮後データ保持部と、
前記圧縮部による圧縮をせずに転送するデータを保持する非圧縮データ保持部と
を更に備え、
前記圧縮判定部は、データを記憶する記憶部から転送すべきデータを抽出し、前記圧縮割合算出部が算出した圧縮割合に基づいて、抽出したデータの一部を前記圧縮前データ保持部に記録し、残りを前記非圧縮データ保持部に記録し、
前記転送部は、前記圧縮後データ保持部と前記非圧縮データ保持部との何れか一方の保持部が記憶するデータを他の装置に転送し、当該保持部が記憶する全てのデータを転送し終えたときに、他方の保持部が記憶するデータを他の装置に転送する
ことを特徴とする請求項1に記載のデータ転送装置。
A pre-compression data holding unit for holding data to be compressed by the compression unit;
A post-compression data holding unit that holds data compressed by the compression unit;
An uncompressed data holding unit that holds data to be transferred without being compressed by the compression unit,
The compression determination unit extracts data to be transferred from a storage unit that stores data, and records a part of the extracted data in the pre-compression data holding unit based on the compression ratio calculated by the compression ratio calculation unit And record the rest in the uncompressed data holding unit,
The transfer unit transfers data stored in any one of the compressed data holding unit and the non-compressed data holding unit to another device, and transfers all data stored in the holding unit. The data transfer device according to claim 1, wherein when the processing is completed, the data stored in the other holding unit is transferred to another device.
前記圧縮割合は、前記圧縮性能値による圧縮に要する時間と前記転送性能値による転送に要する時間とが同一となるようなデータ量の割合である
ことを特徴とする請求項1または請求項2に記載のデータ転送装置。
The compression ratio is a ratio of a data amount such that the time required for compression based on the compression performance value is the same as the time required for transfer based on the transfer performance value. The data transfer device described.
前記圧縮性能値算出部は、前記圧縮部によるデータの圧縮率を算出し、
前記圧縮割合算出部は、前記圧縮性能値と前記転送性能値と前記圧縮率とに基づいて、前記圧縮割合を算出する
ことを特徴とする請求項1から請求項3の何れか1項に記載のデータ転送装置。
The compression performance value calculation unit calculates a compression rate of data by the compression unit,
The compression ratio calculation unit calculates the compression ratio based on the compression performance value, the transfer performance value, and the compression ratio. Data transfer device.
前記圧縮割合は、前記圧縮性能値と前記転送性能値の和から、前記転送性能値に前記圧縮率を乗じた値を減じた値で、前記圧縮性能値を除算した値である
ことを特徴とする請求項4に記載のデータ転送装置。
The compression ratio is a value obtained by dividing the compression performance value by a value obtained by subtracting a value obtained by multiplying the transfer performance value by the compression rate from the sum of the compression performance value and the transfer performance value. The data transfer device according to claim 4.
自装置の余剰計算リソース量に応じて、前記圧縮部の処理に対するリソース割り当てを行うリソース制御部を備えることを特徴とする請求項1から請求項5の何れか1項に記載のデータ転送装置。   6. The data transfer device according to claim 1, further comprising: a resource control unit that performs resource allocation for the processing of the compression unit in accordance with a surplus calculation resource amount of the own device. 単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する圧縮性能値算出ステップと、
単位時間あたりに転送することができるデータ量を示す転送性能値を算出する転送性能値算出ステップと、
前記圧縮性能値と前記転送性能値とに基づいて、転送すべき全データに対する圧縮した後に転送するデータの割合を示す圧縮割合を算出する圧縮割合算出ステップと、
データを記憶する記憶部から転送すべきデータを抽出する抽出ステップと、
前記圧縮割合に基づいて、抽出したデータの一部を圧縮する圧縮ステップと、
前記圧縮ステップにおいて圧縮したデータと残りのデータとを他の装置に転送する転送ステップと
を備え、
前記圧縮ステップと前記転送ステップを並行して実行する
ことを特徴とするデータ転送方法。
A compression performance value calculating step for calculating a compression performance value indicating the amount of data that can be compressed per unit time;
A transfer performance value calculating step for calculating a transfer performance value indicating the amount of data that can be transferred per unit time; and
Based on the compression performance value and the transfer performance value, a compression ratio calculation step of calculating a compression ratio indicating a ratio of data to be transferred after being compressed with respect to all data to be transferred;
An extraction step for extracting data to be transferred from a storage unit for storing data;
A compression step of compressing a portion of the extracted data based on the compression ratio;
A transfer step of transferring the data compressed in the compression step and the remaining data to another device, and
The data transfer method, wherein the compression step and the transfer step are executed in parallel.
前記圧縮割合に基づいて、前記抽出したデータの一部を圧縮前データ保持部に記録し、残りを非圧縮データ保持部に記録する圧縮判定ステップを更に備え、
前記圧縮ステップは、前記圧縮前データ保持部が記憶するデータを逐次圧縮して圧縮後データ保持部に記録し、
前記転送ステップは、前記圧縮後データ保持部と前記非圧縮データ保持部との何れか一方の保持部が記憶するデータを他の装置に転送し、当該保持部が記憶する全てのデータを転送し終えたときに、他方の保持部が記憶するデータを他の装置に転送する
ことを特徴とする請求項7に記載のデータ転送方法。
Based on the compression ratio, further comprising a compression determination step of recording a part of the extracted data in the pre-compression data holding unit and recording the rest in the non-compressed data holding unit,
In the compression step, the data stored in the pre-compression data holding unit is sequentially compressed and recorded in the post-compression data holding unit,
The transfer step transfers data stored in one of the compressed data holding unit and the non-compressed data holding unit to another device, and transfers all data stored in the holding unit. 8. The data transfer method according to claim 7, wherein when the processing is completed, the data stored in the other holding unit is transferred to another device.
コンピュータを、
データを圧縮する圧縮部、
前記圧縮部が単位時間あたりに圧縮することができるデータ量を示す圧縮性能値を算出する圧縮性能値算出部、
データを他の装置に転送する転送部、
前記転送部が単位時間あたりに転送することができるデータ量を示す転送性能値を算出する転送性能値算出部、
前記圧縮性能値と前記転送性能値とに基づいて、前記転送部が転送すべきデータに対する前記圧縮部が圧縮すべきデータ量の割合を示す圧縮割合を算出する圧縮割合算出部、
データを記憶する記憶部から転送すべきデータを抽出し、前記圧縮割合算出部が算出した圧縮割合に基づいて、抽出したデータの一部を前記圧縮部に出力し、残りを前記転送部に出力する圧縮判定部
として機能させ、
前記圧縮部と前記転送部は並行して処理を行う
ことを特徴とするプログラム。
Computer
A compression unit that compresses the data,
A compression performance value calculation unit that calculates a compression performance value indicating the amount of data that the compression unit can compress per unit time;
A transfer unit that transfers data to other devices,
A transfer performance value calculating unit that calculates a transfer performance value indicating the amount of data that the transfer unit can transfer per unit time;
Based on the compression performance value and the transfer performance value, a compression ratio calculation unit that calculates a compression ratio indicating a ratio of the amount of data to be compressed by the compression unit with respect to data to be transferred by the transfer unit,
Extract data to be transferred from a storage unit for storing data, output a part of the extracted data to the compression unit based on the compression ratio calculated by the compression ratio calculation unit, and output the rest to the transfer unit Function as a compression judgment unit
The compression unit and the transfer unit perform processing in parallel.
前記コンピュータを、
前記圧縮部により圧縮すべきデータを保持する圧縮前データ保持部と、
前記圧縮部が圧縮したデータを保持する圧縮後データ保持部と、
前記圧縮部による圧縮をせずに転送するデータを保持する非圧縮データ保持部としても機能させ、
前記圧縮判定部は、データを記憶する記憶部から転送すべきデータを抽出し、前記圧縮割合算出部が算出した圧縮割合に基づいて、抽出したデータの一部を前記圧縮前データ保持部に記録し、残りを前記非圧縮データ保持部に記録し、
前記転送部は、前記圧縮後データ保持部と前記非圧縮データ保持部との何れか一方の保持部が記憶するデータを他の装置に転送し、当該保持部が記憶する全てのデータを転送し終えたときに、他方の保持部が記憶するデータを他の装置に転送する
ことを特徴とする請求項9に記載のプログラム。
The computer,
A pre-compression data holding unit for holding data to be compressed by the compression unit;
A post-compression data holding unit that holds data compressed by the compression unit;
Function as an uncompressed data holding unit for holding data to be transferred without being compressed by the compression unit;
The compression determination unit extracts data to be transferred from a storage unit that stores data, and records a part of the extracted data in the pre-compression data holding unit based on the compression ratio calculated by the compression ratio calculation unit And record the rest in the uncompressed data holding unit,
The transfer unit transfers data stored in any one of the compressed data holding unit and the non-compressed data holding unit to another device, and transfers all data stored in the holding unit. The program according to claim 9, wherein when the processing is completed, the data stored in the other holding unit is transferred to another device.
JP2014529389A 2012-08-07 2013-07-04 Data transfer device, data transfer method, and program Pending JPWO2014024610A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2012174802 2012-08-07
JP2012174802 2012-08-07
PCT/JP2013/068368 WO2014024610A1 (en) 2012-08-07 2013-07-04 Data forwarding device, data forwarding method, and program

Publications (1)

Publication Number Publication Date
JPWO2014024610A1 true JPWO2014024610A1 (en) 2016-07-25

Family

ID=50067850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014529389A Pending JPWO2014024610A1 (en) 2012-08-07 2013-07-04 Data transfer device, data transfer method, and program

Country Status (4)

Country Link
US (1) US9769241B2 (en)
EP (1) EP2884398A4 (en)
JP (1) JPWO2014024610A1 (en)
WO (1) WO2014024610A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9491103B2 (en) * 2014-02-28 2016-11-08 Qualcomm Incorporated Introducing uncompressed packets in compression flow based on flow control
US20150271023A1 (en) * 2014-03-20 2015-09-24 Northrop Grumman Systems Corporation Cloud estimator tool
US10120601B2 (en) * 2014-03-24 2018-11-06 Hitachi, Ltd. Storage system and data processing method
JP6273969B2 (en) * 2014-03-28 2018-02-07 富士通株式会社 Data processing apparatus, information processing apparatus, method, and program
US10412619B2 (en) * 2014-11-14 2019-09-10 Qualcomm Incorporated Buffer status report for eDCS
US10277248B2 (en) * 2015-07-07 2019-04-30 Tidal Systems, Inc. Compression engine with consistent throughput
CN110391873B (en) * 2018-04-20 2022-02-11 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for determining a data transfer mode

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62182919A (en) 1986-02-07 1987-08-11 Fujitsu Ltd Data transfer controller
JPH01108631A (en) 1987-10-21 1989-04-25 Fujitsu Ltd Data transfer processing system
JPH05145437A (en) 1991-11-21 1993-06-11 Hitachi Ltd Data transmission system
JPH07162460A (en) 1993-12-10 1995-06-23 Nec Eng Ltd Data transfer device
JP2746092B2 (en) 1993-12-20 1998-04-28 日本電気株式会社 File transfer method
JPH08147251A (en) 1994-11-18 1996-06-07 Hitachi Ltd Parallel computer
US8001294B2 (en) 2004-09-28 2011-08-16 Sony Computer Entertainment Inc. Methods and apparatus for providing a compressed network in a multi-processing system
WO2006054618A1 (en) 2004-11-17 2006-05-26 Naltec Inc. Method and device for transferring data to peripheral device
JP4615337B2 (en) * 2005-03-16 2011-01-19 株式会社日立製作所 Storage system
JP2008176420A (en) 2007-01-16 2008-07-31 Matsushita Electric Ind Co Ltd Data transfer method, data transfer device, and debugging device
JP5104740B2 (en) * 2008-12-10 2012-12-19 富士通株式会社 Data transfer device, data transfer method, and data transfer program
JP5712609B2 (en) * 2010-12-24 2015-05-07 富士通株式会社 Data processing apparatus and data recording method

Also Published As

Publication number Publication date
US20150180936A1 (en) 2015-06-25
EP2884398A1 (en) 2015-06-17
US9769241B2 (en) 2017-09-19
WO2014024610A1 (en) 2014-02-13
EP2884398A4 (en) 2016-07-06

Similar Documents

Publication Publication Date Title
WO2014024610A1 (en) Data forwarding device, data forwarding method, and program
US8812639B2 (en) Job managing device, job managing method and job managing program
EP3000050B1 (en) Efficient data compression and analysis as a service
US9698824B2 (en) Data transfer device, data transfer system, method for compressing and transferring data, and program
CN108446176B (en) Task allocation method, computer readable storage medium and terminal device
US9270624B2 (en) Cloud messaging services optimization through adaptive message compression
KR101867286B1 (en) Distributed processing apparatus and method for big data using hardware acceleration based on work load
CN102541657B (en) The method and apparatus that during for running hardware accelerator, function is distributed
US10255114B2 (en) Abnormality detection apparatus, control method, and program
US9244737B2 (en) Data transfer control method of parallel distributed processing system, parallel distributed processing system, and recording medium
JP6269257B2 (en) Information processing apparatus, information processing system, information processing apparatus control program, and information processing apparatus control method
JP2008217332A (en) Virtual machine management system, its method, and its program
WO2017092582A1 (en) Data processing method and apparatus
CN107864391B (en) Video stream cache distribution method and device
JP6340481B2 (en) Data caching method, apparatus and storage medium
CN105094981B (en) A kind of method and device of data processing
CN111580974B (en) GPU instance allocation method, device, electronic equipment and computer readable medium
US20130063288A1 (en) Methods and computer program products for providing a compressed circular buffer for efficient storage of network performance data
CN104008016A (en) Information processing apparatus, resource control method, and program
JP4569614B2 (en) Data conversion system
CN102098215A (en) Priority management method for multi-application packet reception
CN106534312A (en) Service request selection and scheduling method facing mobile device
CN107229424B (en) Data writing method for distributed storage system and distributed storage system
WO2020232682A1 (en) Parallel compression system and method employing hardware
WO2013153620A1 (en) Data processing system and data processing method