JP2007134000A - Information processor and its control method - Google Patents

Information processor and its control method Download PDF

Info

Publication number
JP2007134000A
JP2007134000A JP2005327809A JP2005327809A JP2007134000A JP 2007134000 A JP2007134000 A JP 2007134000A JP 2005327809 A JP2005327809 A JP 2005327809A JP 2005327809 A JP2005327809 A JP 2005327809A JP 2007134000 A JP2007134000 A JP 2007134000A
Authority
JP
Japan
Prior art keywords
disk device
command
commands
information processing
processing apparatus
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
JP2005327809A
Other languages
Japanese (ja)
Inventor
Atsushi Takeda
淳 武田
Noboru Suzuki
昇 鈴木
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2005327809A priority Critical patent/JP2007134000A/en
Publication of JP2007134000A publication Critical patent/JP2007134000A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processor capable of more rapidly executing the protective operation of a disk unit when a free fall is detected. <P>SOLUTION: The information processor comprises a command output means which outputs a command for writing or reading-in of data to the disk unit 102, a number-of-commands setting means for setting the number of the commands temporarily stored in a memory region provided in the disk unit 102, a fall judgment means for performing the fall judgment based on the acceleration signal detected by an acceleration sensor 114, and a saving command output means which outputs a saving command to save the head of the disk unit to the disk unit when the fall is judged by the fall judgment means. The number-of-commands setting means reduces the setting of the number of the commands to be temporarily stored in the memory region of the disk unit 102 in a mode in which the saving command is effectively output as compared to the case the saving command is disabled. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ディスク装置を制御する情報処理装置に関し、特にディスク装置へのアクセス要求を緊急度に応じて制御するようにしたものに関する。   The present invention relates to an information processing apparatus that controls a disk device, and more particularly to an information processing device that controls an access request to a disk device in accordance with the degree of urgency.

一般に、パーソナルコンピュータ(PC)のような情報処理装置に於いては、所定のアプリケーションプログラムにより種々の処理を実行させるため、必要なデータをHDD(Hard Disk Drive)等のディスク装置に記憶させている。   Generally, in an information processing apparatus such as a personal computer (PC), necessary data is stored in a disk device such as an HDD (Hard Disk Drive) in order to execute various processes by a predetermined application program. .

このような情報処理装置では、その主な制御を司る上位の計算機(CPU)が、アプリケーションプログラム(サービス)の処理に合わせて必要なデータをディスク装置から読み出し、また演算結果を保存するためにメモリアクセスを行う。ディスク装置は、このメモリアクセスを受信すると、読み出し要求であれば、該当するデータが記憶されているディスクよりデータを読み出し、読み出し要求を出した上位の計算機へ送信する。また逆に、書込み要求であれば、書込み要求に含まれる論理アドレスから物理アドレスを求め、該当するディスクに対して書込み処理を実行する。なお、ディスク装置は、上位計算機からのメモリアクセスを受信すると、この要求を一旦メモリにキューイングし、保持した順番に従って処理を行っている。   In such an information processing apparatus, a host computer (CPU) that controls the main control reads out necessary data from the disk device in accordance with the processing of the application program (service), and stores a calculation result in a memory. Access. When the disk device receives this memory access, if it is a read request, the disk device reads the data from the disk in which the corresponding data is stored, and transmits it to the host computer that issued the read request. Conversely, if it is a write request, the physical address is obtained from the logical address included in the write request, and the write process is executed for the corresponding disk. When the disk device receives a memory access from the host computer, the disk device temporarily queues this request in the memory and performs processing in the order in which it is held.

しかし上位計算機からのメモリアクセスを一旦メモリにキューイング保存し、保存した順序に従って処理するため、上位計算機で実行されているサービスの重要度や緊急度にばらつきがない状況では、特に問題を生じることはないが、緊急度の高いサービスを実行している場合には先に受信したメモリアクセスの処理が終了するまで緊急度の高い処理が待たされることになるため、サービスの質の低下を引き起こすことになってしまう。   However, since memory access from the host computer is temporarily queued and stored in the memory and processed according to the order in which it was stored, problems arise especially in situations where there is no variation in the importance or urgency of the services being executed on the host computer. However, if a service with a high degree of urgency is being executed, a process with a high degree of urgency will be waited until the processing of the previously received memory access is completed. Become.

そのため、上位計算機で実行されるサービスの重要度や緊急度に応じたメモリアクセスの優先処理を可能としたディスク装置が考えられている。(例えば、特許文献1参照)   For this reason, a disk device that can perform priority processing of memory access according to the importance or urgency of a service executed by a host computer is considered. (For example, see Patent Document 1)

また、NCQ(Native Command Queuing)機能によってデータの読み書きの順番を最適化する技術もある。
また、このようなディスク装置を備えた情報処理装置において、その落下をセンサで検出し、ディスク装置におけるディスクへの書込み/読出し用のヘッドをディスク面上から退避させ、ディスクとヘッドとの物理的な接触によるディスク上のデータ損失を防ぐようにした、所謂「HDDプロテクション」という技術がある。これは、加速度センサで検出される加速度を監視し、落下重力加速度を検出した場合にヘッドをディスク面上から外に退避させるというものである。(例えば、特許文献2参照)
特開2001−222382 特開2000−241442
There is also a technique for optimizing the order of reading and writing data by using an NCQ (Native Command Queuing) function.
Further, in an information processing apparatus equipped with such a disk device, the fall is detected by a sensor, and the head for writing / reading on the disk in the disk device is retreated from the disk surface, so that the physical relationship between the disk and the head is reduced. There is a so-called “HDD protection” technique that prevents data loss on a disk due to a simple contact. In this method, the acceleration detected by the acceleration sensor is monitored, and when the falling gravity acceleration is detected, the head is moved away from the disk surface. (For example, see Patent Document 2)
JP 2001-222382 A JP2000-241442A

しかしながら、加速度センサによって落下検出が行われ、ディスク装置に対して退避コマンドが出力されても、ディスク装置内部のメモリにキューイングされてしまい、ヘッド回避のコマンドが落下前までに実行されず、結果としてHDDプロテクションの機能が有効に働かない可能性がある。   However, even if the fall detection is performed by the acceleration sensor and the evacuation command is output to the disk device, it is queued in the memory inside the disk device, and the head avoidance command is not executed before the fall. As a result, the HDD protection function may not work effectively.

そこで本発明では、落下検出した場合にディスク装置の保護動作をより迅速に実行されるようにした情報処理装置を提供することを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to provide an information processing apparatus in which a protection operation of a disk device can be executed more quickly when a drop is detected.

上記目的を達成するために、本発明の情報処理装置は、データの書込み或いは読込み等のコマンドをディスク装置へ出力するコマンド出力手段と、前記ディスク装置に設けられた記憶領域にて一時保存されるコマンド数を可変制御するコマンド数設定手段と、加速度センサにより検出される加速度信号に基づいて落下判定を行う落下判定手段と、前記落下判定手段により落下と判定された場合に、前記ディスク装置のヘッドを退避させる退避コマンドをディスク装置へ出力する退避コマンド出力手段とを備え、前記コマンド数制御手段は、前記退避コマンド出力手段が機能し、退避コマンドが有効に出力されるモードでは、前記ディスク装置の記憶領域に一時保存されるコマンド数を前記退避コマンド出力手段が無効にされている場合に比較して減らすことを特徴とするものである。   In order to achieve the above object, an information processing apparatus according to the present invention is temporarily stored in a command output means for outputting a command for writing or reading data to a disk device and a storage area provided in the disk device. Command number setting means for variably controlling the number of commands, drop determination means for performing drop determination based on an acceleration signal detected by an acceleration sensor, and the head of the disk device when the drop determination means determines that the head is falling Save command output means for outputting to the disk device a save command for saving the command, and the command number control means is configured so that the save command output means functions in a mode in which the save command is output effectively. Compare the number of commands temporarily stored in the storage area when the save command output means is disabled Reducing Te is characterized in.

また、本発明の情報処理装置の制御方法は、データの書込み或いは読込み等のコマンドをディスク装置へ出力するステップと、前記ディスク装置に設けられた記憶領域にて一時保存されるコマンド数を制御するステップと、加速度センサにより検出される加速度信号に基づいて落下判定を行う落下判定ステップと、前記落下判定ステップにより落下と判定された場合に、前記ディスク装置のヘッドを退避させる退避コマンドをディスク装置へ出力する退避コマンド出力ステップと、前記退避コマンド出力ステップの機能が有効にされている場合に、前記ディスク装置の記憶領域に一時保存されるコマンド数を前記退避コマンド出力ステップの機能が無効にされている場合に比較して減らすステップとを備える。   In addition, the control method of the information processing apparatus of the present invention controls the step of outputting a command for writing or reading data to the disk device and the number of commands temporarily stored in a storage area provided in the disk device. A drop determination step for performing a drop determination based on an acceleration signal detected by an acceleration sensor, and a retreat command for retracting the head of the disk device to the disk device when the drop determination step determines a drop. If the save command output step to be output and the save command output step function are enabled, the number of commands temporarily saved in the storage area of the disk device is set to the save command output step function disabled. And a step of reducing as compared to the case of being present.

本発明によれば、落下検出した場合にディスク装置の保護動作をより迅速に実行されるようにした情報処理装置を提供することができる。   According to the present invention, it is possible to provide an information processing apparatus in which a protection operation of a disk device can be executed more quickly when a drop is detected.

以下、本発明の情報処理装置について、図面を参照しながら説明する。   The information processing apparatus of the present invention will be described below with reference to the drawings.

図1は、本発明の情報処理装置の第1の実施例であるノートPC(Personal Computer)10のシステム構成を示す図である。ノートPC10は、各種部品が実装される基板101と、この基板101にケーブル(SATAケーブル)を介して接続されるディスク装置(以下HDDと言う)102と、液晶表示装置(以下LCDと言う)103と、文字入力を行うための入力装置であるキーボード104と、これらに電源を供給する電源部105とから構成されている。   FIG. 1 is a diagram showing a system configuration of a notebook PC (Personal Computer) 10 which is a first embodiment of the information processing apparatus of the present invention. The notebook PC 10 includes a substrate 101 on which various components are mounted, a disk device (hereinafter referred to as HDD) 102 connected to the substrate 101 via a cable (SATA cable), and a liquid crystal display device (hereinafter referred to as LCD) 103. And a keyboard 104 which is an input device for inputting characters, and a power supply unit 105 which supplies power to them.

基板101には、PC10全体の動作の制御を行うCPU110と、メインメモリ111と、BIOS(Basic Input/Output System)メモリ112と、インターネット11やLANと電子メールやデータを送受信するためのLAN(Local Area Network)デバイス113と、PC10自体の加速度を検出する加速度センサ114と、HDD102とのデータやコマンドの授受を行うSATAコントローラ115とが設けられている。CPU110は、BIOSメモリ112に記憶された各種プログラムを実行したり、HDD102に記憶されたオペレーティングシステムに従ってPC10全体の動作を制御するプロセッサである。メインメモリ111は、HDD102に記憶されたオペレーティングシステムやアプリケーションプログラム、デバイスドライバがシステム起動時に展開されて記憶されるメモリであり、HDD102のデバイスドライバであるHDDドライバ116、加速度センサ114のデバイスドライバであるセンサドライバ117がHDD102からメインメモリ111に展開される。BIOSメモリ112は、電源部105によりシステムが起動した際に、接続される各種ハードウエアデバイスの初期化処理、メインメモリ111のメモリ容量チェック等を実行する各種プログラムを記憶するメモリである。LANデバイス113は、インターネット11やLANへ接続し、電子メールやデータを送受信する通信デバイスモジュールである。加速度センサ114は、PC10本体に設けられ、PC10が静止しているときには重力を検知して重力の加速度成分信号を出力し、自由落下時には略ゼロの加速度成分信号を出力するものである。HDDドライバ116は、CPU110が実行するアプリケーションプログラム等に基づく指示に従ってデータの書込み、或いはデータの読み込み等の指示コマンドをSATAコントローラ115を介してHDD102に出力する。またHDD102に内蔵されるメモリに一時保存(キューイング)されるコマンドの数を設定するコマンド設定信号を出力し、一時保存されるコマンド数の上限を可変設定する。HDD102よりコマンドが実行される度に、HDD102で一時保存されるコマンド数の上限に達するまで書込みコマンド或いは読み出しコマンドをHDD102に出力する。センサドライバ117は、加速度センサ114よりの加速度信号を20ms周期で監視し、重力の加速度成分信号を出力しているのか、自由落下の加速度成分信号、つまり略ゼロの加速度成分信号を出力しているのかを監視する。自由落下の加速度成分信号である略ゼロの信号を所定期間、例えば100ms継続(略ゼロの加速度成分信号を6回連続で検出)した場合に落下判定信号をHDDドライバ116に出力する。   The board 101 includes a CPU 110 that controls the operation of the entire PC 10, a main memory 111, a BIOS (Basic Input / Output System) memory 112, and a LAN (Local) for sending and receiving e-mails and data to and from the Internet 11 and LAN. (Area Network) device 113, an acceleration sensor 114 for detecting the acceleration of the PC 10 itself, and a SATA controller 115 for exchanging data and commands with the HDD 102 are provided. The CPU 110 is a processor that executes various programs stored in the BIOS memory 112 and controls the operation of the entire PC 10 according to an operating system stored in the HDD 102. The main memory 111 is a memory in which an operating system, application programs, and device drivers stored in the HDD 102 are expanded and stored when the system is started. The main memory 111 is a HDD driver 116 that is a device driver of the HDD 102 and a device driver of the acceleration sensor 114. A sensor driver 117 is expanded from the HDD 102 to the main memory 111. The BIOS memory 112 is a memory that stores various programs that execute initialization processing of various hardware devices to be connected, memory capacity check of the main memory 111, and the like when the system is activated by the power supply unit 105. The LAN device 113 is a communication device module that connects to the Internet 11 or a LAN and transmits and receives electronic mail and data. The acceleration sensor 114 is provided in the PC 10 main body, detects gravity when the PC 10 is stationary and outputs a gravitational acceleration component signal, and outputs a substantially zero acceleration component signal when the PC 10 is free-falling. The HDD driver 116 outputs an instruction command such as data writing or data reading to the HDD 102 via the SATA controller 115 in accordance with an instruction based on an application program executed by the CPU 110. In addition, a command setting signal for setting the number of commands temporarily stored (queued) in the memory built in the HDD 102 is output, and the upper limit of the number of commands temporarily stored is variably set. Each time a command is executed from the HDD 102, a write command or a read command is output to the HDD 102 until the upper limit of the number of commands temporarily stored in the HDD 102 is reached. The sensor driver 117 monitors the acceleration signal from the acceleration sensor 114 at a cycle of 20 ms and outputs a gravitational acceleration component signal, or outputs a free fall acceleration component signal, that is, a substantially zero acceleration component signal. To monitor. When a substantially zero signal, which is a free fall acceleration component signal, continues for a predetermined period, for example, 100 ms (a substantially zero acceleration component signal is detected six times continuously), a fall determination signal is output to the HDD driver 116.

次にHDD102(ディスク装置)の構成について図2を用いて説明する。
HDD102は、SATAコントローラ115とSATAケーブルで接続され、コマンドやデータの送受信を司るインターフェイス201と、HDD102全体の制御を司るCPU202と、HDDドライバ116より出力されるコマンドを一時保存(キューイング)するメモリ203と、データを記録する磁気ディスク204と、磁気ディスク204にデータを書込み或いは磁気ディスク204よりデータを読み出すための磁気ヘッド205と、この磁気ヘッド205を移動動作させるアクチュエータ206とから構成されている。インターフェイス201は、SATAケーブルを介してHDDドライバ116からの磁気ディスク204への書込みコマンド、読み込みコマンドを入力したり、磁気ディスクから読み出したデータをHDDドライバ116に出力するためのSATAコントローラ115とのインターフェイスである。CPU202は、メモリ203に一時保存されたコマンドを順に実行し、磁気ディスク204へのデータの書込み、或いはデータの読込み処理を行わせる。また、HDDドライバ116より磁気ヘッドの退避コマンドを受けた場合には、それに従ってアクチュエータ206を駆動制御し、磁気ヘッド205を磁気ディスク上から外れた退避領域(図2の点線で示した状態)に移動させるよう制御するものである。メモリ203は、HDDドライバ116からの磁気ディスク204への書込みコマンド、読み込みコマンド或いは退避コマンド等を一時的に保存(キューイング)する記憶領域を有し、通常は32個のコマンドを上限として一時保存する。但し、HDDドライバ116よりその上限を下げるよう指示を受けた場合にはそれに従って一時保持するコマンド数が変更設定される。例えば、センサドライバ117による加速度センサ114の監視が周期的に実行されている、つまり自由落下時にヘッド退避を行うHDDプロテクションが機能している場合にはメモリ203に一時保存されるコマンドを4個とし、ユーザによってHDDプロテクションの機能が無効に設定されている場合にはメモリに一時保存されるコマンドを32個として磁気ディスク204への書込み或いは読み出しの処理速度を優先させる。磁気ディスク204は、PC10が実行するアプリケーションプログラムや、そのプログラムが必要とするデータ等を記憶するものである。磁気ヘッド205は、磁気ディスク204へのデータ書込み(記録)或いはデータの読出し(再生)を行うものである。アクチュエータ206は、磁気ディスク204へのデータの書き込み位置、或いはデータの読出し位置に応じて磁気ヘッド205を移動駆動させるものであり、退避コマンドを受けた時には磁気ヘッド205を磁気ディスク204上から外れた退避領域(図2の点線で示した状態)に移動させる。
Next, the configuration of the HDD 102 (disk device) will be described with reference to FIG.
The HDD 102 is connected to the SATA controller 115 via a SATA cable, and an interface 201 that controls transmission and reception of commands and data, a CPU 202 that controls the entire HDD 102, and a memory that temporarily stores (queues) commands output from the HDD driver 116. 203, a magnetic disk 204 for recording data, a magnetic head 205 for writing data to or reading data from the magnetic disk 204, and an actuator 206 for moving the magnetic head 205. . The interface 201 is an interface with the SATA controller 115 for inputting a write command and a read command to the magnetic disk 204 from the HDD driver 116 via the SATA cable and outputting data read from the magnetic disk to the HDD driver 116. It is. The CPU 202 sequentially executes commands temporarily stored in the memory 203, and causes data to be written to or read from the magnetic disk 204. When a magnetic head retract command is received from the HDD driver 116, the actuator 206 is driven and controlled in accordance with the command, and the magnetic head 205 is moved to the retract area (shown by the dotted line in FIG. 2) off the magnetic disk. It is controlled to move. The memory 203 has a storage area for temporarily storing (queuing) a write command, a read command, a save command, or the like from the HDD driver 116 to the magnetic disk 204, and normally temporarily stores up to 32 commands as an upper limit. To do. However, when an instruction is received from the HDD driver 116 to lower the upper limit, the number of commands temporarily held is changed and set accordingly. For example, when monitoring of the acceleration sensor 114 by the sensor driver 117 is periodically executed, that is, when HDD protection for retracting the head at the time of free fall is functioning, four commands are temporarily stored in the memory 203. When the HDD protection function is disabled by the user, 32 commands are temporarily stored in the memory, and the writing / reading processing speed to the magnetic disk 204 is prioritized. The magnetic disk 204 stores application programs executed by the PC 10, data necessary for the programs, and the like. The magnetic head 205 performs data writing (recording) or data reading (reproduction) on the magnetic disk 204. The actuator 206 moves and drives the magnetic head 205 in accordance with the data writing position on the magnetic disk 204 or the data reading position, and the magnetic head 205 is detached from the magnetic disk 204 when receiving the evacuation command. It is moved to a retreat area (state shown by a dotted line in FIG. 2).

以上のように構成されたPC10の加速度センサ114およびセンサドライバ117による落下判定処理について図3のフローチャート図を用いて説明する。
まず、ユーザによりHDDプロテクション機能が有効に設定されているかどうかがチェックされ(ステップ301)、有効に設定されている場合には、センサドライバ117は20ms経過したか否かを判断し(ステップ302)、20msを経過している場合には加速度センサ114からの加速度成分信号を入力する(ステップ303)。つまり、センサドライバ117は、20ms間隔で加速度センサ114から出力される加速度成分信号を入力する。次に、入力した加速度成分信号が略ゼロか否かを判断し、具体的には重力加速度Gが−0.25から0.25までの間であるか否かを検出する(ステップ304)。これにより自由落下状態であるかを判断する。ちなみにPC10の静止状態では重力加速度Gは1(G=1)として出力される。ステップ304にて重力加速度が略ゼロであると検出された場合には、その検出回数が6回に達したか否か、6回連続して重力加速度略ゼロが検出されたか否か、つまり100ms以上継続して略ゼロの状態が継続したか否かが判定され(ステップ305)、6回連続して検出された場合には落下と判定し、落下判定信号をHDDドライバ116に出力する。ここで、6回連続して、つまり100ms以上継続して自由落下状態を検出して落下判定しているのは、PC10をユーザが持ち運ぶ際に瞬時に発生する加速度略ゼロの状態を自由落下であると判断してしまうことを極力防ぐようにするためである。もちろん、安全性を考慮して、自由落下状態の継続検出時間を100msより短い時間に設定しても良い。また、PC10が損壊に至る落下距離を予め計算し、その落下距離に相当する落下時間との関係から継続検出時間を設定しても良い。あまり落下時間に近い時間に継続検出時間を設定すると、磁気ヘッド205を退避領域に退避させる時間が確保できなくなるため、その時間も考慮すべきである。
A drop determination process by the acceleration sensor 114 and the sensor driver 117 of the PC 10 configured as described above will be described with reference to the flowchart of FIG.
First, it is checked whether or not the HDD protection function is enabled by the user (step 301). If the HDD protection function is enabled, the sensor driver 117 determines whether or not 20 ms has passed (step 302). When 20 ms has elapsed, an acceleration component signal from the acceleration sensor 114 is input (step 303). That is, the sensor driver 117 inputs acceleration component signals output from the acceleration sensor 114 at 20 ms intervals. Next, it is determined whether or not the input acceleration component signal is substantially zero, and specifically, it is detected whether or not the gravitational acceleration G is between -0.25 and 0.25 (step 304). Thereby, it is determined whether or not it is in a free fall state. Incidentally, the gravitational acceleration G is output as 1 (G = 1) when the PC 10 is stationary. If it is detected in step 304 that the gravitational acceleration is substantially zero, whether or not the number of times of detection has reached six times, whether or not the gravitational acceleration is substantially zero has been detected six times in succession, that is, 100 ms. It is determined whether or not the substantially zero state is continued (step 305). If it is detected six times in succession, it is determined that it is falling, and a drop determination signal is output to the HDD driver 116. Here, six consecutive times, that is, 100 ms or more continuously, the free fall state is detected and the fall determination is performed because the free fall is a state in which the acceleration that occurs instantaneously when the user carries the PC 10 is approximately zero. This is to prevent as much as possible from judging that there is. Of course, in consideration of safety, the continuous detection time of the free fall state may be set to a time shorter than 100 ms. Alternatively, the falling distance at which the PC 10 is damaged may be calculated in advance, and the continuous detection time may be set from the relationship with the falling time corresponding to the falling distance. If the continuous detection time is set too close to the drop time, the time for retracting the magnetic head 205 to the retreat area cannot be secured, and that time should be taken into consideration.

尚、HDDプロテクション機能の有効/無効設定は、PC10の筐体に設けられるスライド式のハードウエアスイッチでも良いし、アプリケーションプログラム(ソフトウエア)により実現されても良い。オン/オフスライド式のハードウエアスイッチの場合にはそのスイッチがオン状態とされた場合にセンサドライバ117が動作し、加速度センサ114からの加速度成分信号を監視する。一方、アプリケーションプログラム(ソフトウエア)で実装された場合には、そのプログラムが起動されている場合、センサドライバ117が動作し、加速度センサ114からの加速度成分信号を監視する。   The validity / invalidity setting of the HDD protection function may be a slide-type hardware switch provided in the casing of the PC 10 or may be realized by an application program (software). In the case of an on / off slide type hardware switch, when the switch is turned on, the sensor driver 117 operates to monitor the acceleration component signal from the acceleration sensor 114. On the other hand, when implemented by an application program (software), when the program is activated, the sensor driver 117 operates to monitor the acceleration component signal from the acceleration sensor 114.

次に、PC10のHDDドライバ116によるHDDプロテクション機能動作について図4のフローチャート図を用いて説明する。
まず、ユーザによりHDDプロテクション機能が有効に設定されているかどうかがチェックされ(ステップ401)、有効である場合には、HDD102のメモリ203へ一時的に保存(キューイング)されるコマンド数の上限を「4」に設定する(ステップ402)。HDDドライバ116は、そのコマンド数が上限となるよう、HDD102にて実行処理されるコマンドを監視し、HDD102側でメモリ203内に一時記憶されたコマンドが実行処理されていく度に書込み/読出しコマンドをHDD102に出力し、常に設定したコマンド数の上限を超えないようコマンドの出力を制御する。ステップ401で、HDDプロテクション機能が無効に設定されている場合、つまりセンサドライバ117も機能動作していない場合には、HDD102のメモリ203へ一時的に保存(キューイング)されるコマンド数の上限を「32」に設定する(ステップ403)。
Next, the HDD protection function operation by the HDD driver 116 of the PC 10 will be described with reference to the flowchart of FIG.
First, it is checked whether or not the HDD protection function is enabled by the user (step 401). If it is enabled, the upper limit of the number of commands temporarily stored (queued) in the memory 203 of the HDD 102 is set. “4” is set (step 402). The HDD driver 116 monitors commands executed in the HDD 102 so that the number of commands reaches the upper limit, and a write / read command is executed each time a command temporarily stored in the memory 203 is executed on the HDD 102 side. Is output to the HDD 102, and command output is controlled so that the upper limit of the set number of commands is not always exceeded. If the HDD protection function is disabled at step 401, that is, if the sensor driver 117 is not functioning, the upper limit of the number of commands temporarily stored (queued) in the memory 203 of the HDD 102 is set. “32” is set (step 403).

このようにコマンド数の上限が設定された状態で次にセンサドライバ117より、落下判定信号を入力しているか否かが監視される(ステップ404)。センサドライバ117より落下判定信号を入力した場合には、HDD102のメモリ203へ一時的に保存(キューイング)されているコマンドが全て実行処理されるまでHDD102への新たなコマンドの出力を停止する。そしてメモリ203内の全てのコマンドが実行されたか否かを監視し(ステップ405)、メモリ203内の全てのコマンド、つまり最高でも4つのコマンドが処理されたことを確認してから磁気ヘッド205の退避コマンドをHDD102に出力する(ステップ406)。HDD102ではその退避コマンドをインターフェース201を介して受信し、メモリ203に一時保存した後、CPU202によるそのコマンドの実行処理によりアクチュエータ206が動作され、磁気ヘッド205が磁気ディスク204上から外れた退避領域に退避することとなる。   In the state where the upper limit of the number of commands is set in this way, the sensor driver 117 next monitors whether or not a fall determination signal is input (step 404). When a drop determination signal is input from the sensor driver 117, the output of a new command to the HDD 102 is stopped until all commands temporarily stored (queued) in the memory 203 of the HDD 102 are executed. Then, it is monitored whether or not all the commands in the memory 203 have been executed (step 405). After confirming that all the commands in the memory 203, that is, at most four commands have been processed, the magnetic head 205 is checked. A save command is output to the HDD 102 (step 406). The HDD 102 receives the save command via the interface 201, temporarily stores it in the memory 203, and then the actuator 206 is operated by the execution processing of the command by the CPU 202, so that the magnetic head 205 is moved to the save area removed from the magnetic disk 204. It will be evacuated.

尚、コマンド数の上限は低く設定するほど磁気ディスク204への記録或いは再生の速度は低下する。従って、PC10が損壊に至る落下距離から算出される落下時間と、落下検出時間を考慮し、さらにコマンドの処理時間を考慮することにより最適なコマンド数の上限を決めることができる。例えばPC10が損壊に至る落下距離から算出される落下時間が300msであり、落下を検出する時間として100msが必要であれば、残る200msで処理できるコマンド数を計算し、そのコマンド数より少ない数を上限に設定すれば良い。   Note that the lower the upper limit of the number of commands, the lower the speed of recording or reproduction on the magnetic disk 204. Therefore, the upper limit of the optimum number of commands can be determined by considering the fall time calculated from the fall distance at which the PC 10 is damaged, the fall detection time, and the command processing time. For example, if the fall time calculated from the fall distance at which the PC 10 breaks is 300 ms and 100 ms is required as the time for detecting the fall, the number of commands that can be processed in the remaining 200 ms is calculated, and the number less than the number of commands is calculated. The upper limit may be set.

以上本実施例によれば、HDDプロテクション機能が有効に設定されている場合にはHDD102のメモリ203にキューイングされるコマンド数の上限を減らすようHDDドライバ116が制御するため、自由落下を検出して磁気ヘッド205の退避コマンドをHDD102に出力する場合にその退避コマンドをHDD102側でより早く実行させることが可能となる。そのため、HDD102側で退避コマンドの実行が遅れることによって磁気ヘッド205の退避が遅れ、HDDプロテクション機能が有効に働かないという不都合を解消することができる。また、HDDプロテクション機能が働いていないとき(無効に設定されているとき)には、磁気ディスク204へのデータアクセス速度を優先し、メモリ203にキューイングされるコマンド数を、HDDプロテクション機能が働いている場合に比べて増やすようにしているので、ユーザの使用環境に合わせた使い勝手の良い利用方法を提供することができる。   As described above, according to the present embodiment, when the HDD protection function is enabled, the HDD driver 116 controls to reduce the upper limit of the number of commands queued in the memory 203 of the HDD 102. Thus, when the save command for the magnetic head 205 is output to the HDD 102, the save command can be executed earlier on the HDD 102 side. Therefore, it is possible to eliminate the inconvenience that the execution of the save command on the HDD 102 side is delayed, the save of the magnetic head 205 is delayed, and the HDD protection function does not work effectively. Further, when the HDD protection function is not working (when it is set to invalid), the data access speed to the magnetic disk 204 is given priority, and the number of commands queued in the memory 203 is set according to the HDD protection function working. Therefore, it is possible to provide an easy-to-use usage method that matches the user's usage environment.

また、センサドライバ117では、重力加速度Gが略ゼロとなる状態が所定時間継続した場合に自由落下状態であると判定するようにしているので、ユーザがPC10を移動させる場合、或いは小さい衝撃等で自由落下と判定して磁気ヘッド205を退避させるといった動作も極力減らすことができる。これによりヘッド退避によってデータアクセス時間が長くなりユーザの利便性を損ねたり、磁気ヘッド205やアクチュエータ206の耐久性を損ねることも防ぐことができる。   Further, since the sensor driver 117 determines that the gravitational acceleration G is substantially zero when the gravity acceleration G continues for a predetermined time, the sensor driver 117 determines that the user is moving the PC 10 or with a small impact or the like. The operation of determining that the magnetic head 205 is free fall and retracting the magnetic head 205 can be reduced as much as possible. As a result, it is possible to prevent the head from being retracted and the data access time to be long, thereby reducing the convenience for the user and the durability of the magnetic head 205 and the actuator 206 from being impaired.

尚本実施例では、HDDドライバ116がメモリ203に一時保存されるコマンド数の上限を制御しているが、SATAコントローラ115が同様の制御をしても良いし、HDD102のCPU202が、メモリ203に予め記憶されたファームウエア等を実行することにより制御するものであっても良い。このような場合には、HDDドライバ116は、SATAコントローラ115或いはHDD102に対してコマンド数の上限を指示し、それぞれSATAコントローラ115或いはHDD102のCPU202がその上限を超えないようにメモリ203内にキューイングされるコマンド数を制御する。   In this embodiment, the HDD driver 116 controls the upper limit of the number of commands temporarily stored in the memory 203, but the SATA controller 115 may perform the same control, or the CPU 202 of the HDD 102 may store the memory 203. Control may be performed by executing firmware or the like stored in advance. In such a case, the HDD driver 116 instructs the upper limit of the number of commands to the SATA controller 115 or HDD 102, and the CPU 202 of the SATA controller 115 or HDD 102 is queued in the memory 203 so that the upper limit is not exceeded. Controls the number of commands that are executed.

また、本実施例では加速度センサ114は基板101に設けられている例で説明しているが、PC10の筐体或いはHDD102に設けるようにしても良い。   In this embodiment, the acceleration sensor 114 is described as being provided on the substrate 101. However, the acceleration sensor 114 may be provided on the housing of the PC 10 or the HDD 102.

本発明の第1の実施例に係る情報処理装置のシステム構成を示すブロック図である。It is a block diagram which shows the system configuration | structure of the information processing apparatus which concerns on 1st Example of this invention. 本発明の第1の実施例に係る情報処理装置のディスク装置の概略構成を示す図である。It is a figure which shows schematic structure of the disc apparatus of the information processing apparatus which concerns on 1st Example of this invention. 本発明の第1の実施例に係る情報処理装置の落下検出動作を示す動作フローチャート図である。It is an operation | movement flowchart figure which shows fall detection operation | movement of the information processing apparatus which concerns on 1st Example of this invention. 本発明の第1の実施例に係る情報処理装置のHDDプロテクション機能を説明する動作フローチャート図である。It is an operation | movement flowchart figure explaining the HDD protection function of the information processing apparatus which concerns on 1st Example of this invention.

符号の説明Explanation of symbols

10・・・コンピュータ
102・・・HDD
110・・・CPU
111・・・メインメモリ
114・・・加速度センサ
115・・・SATAコントローラ
116・・・HDDドライバ
117・・・センサドライバ
202・・・CPU
203・・・メモリ
204・・・磁気ディスク
205・・・磁気ヘッド
10 ... Computer 102 ... HDD
110 ... CPU
111 ... Main memory 114 ... Acceleration sensor 115 ... SATA controller 116 ... HDD driver 117 ... Sensor driver 202 ... CPU
203 ... Memory 204 ... Magnetic disk 205 ... Magnetic head

Claims (6)

データの書込み或いは読込み等のコマンドをディスク装置へ出力するコマンド出力手段と、
前記ディスク装置に設けられた記憶領域にて一時保存されるコマンド数を可変制御するコマンド数制御手段と、
加速度センサにより検出される加速度信号に基づいて落下判定を行う落下判定手段と、
前記落下判定手段により落下と判定された場合に、前記ディスク装置のヘッドを退避させる退避コマンドをディスク装置へ出力する退避コマンド出力手段と、
を備え、前記コマンド数制御手段は、前記退避コマンド出力手段が機能し、退避コマンドが有効に出力されるモードでは、前記ディスク装置の記憶領域に一時保存されるコマンド数を前記退避コマンド出力手段が無効にされている場合に比較して減らすことを特徴とする情報処理装置。
Command output means for outputting commands such as data writing or reading to the disk device;
Command number control means for variably controlling the number of commands temporarily stored in a storage area provided in the disk device;
Drop determination means for performing drop determination based on an acceleration signal detected by the acceleration sensor;
A evacuation command output means for outputting a evacuation command for evacuating the head of the disk device to the disk device when the fall determining means determines that the head is dropped;
The command number control means is configured so that, in the mode in which the save command output means functions and the save command is output effectively, the save command output means sets the number of commands temporarily saved in the storage area of the disk device. An information processing apparatus characterized in that it is reduced as compared with a case where it is invalidated.
請求項1記載の情報処理装置において、前記退避コマンド出力手段は、前記ディスク装置の記憶領域にて一時保存されている全てのコマンドの実行後に前記退避コマンドをディスク装置に出力することを特徴とする情報処理装置。   2. The information processing apparatus according to claim 1, wherein the save command output means outputs the save command to the disk device after executing all commands temporarily stored in the storage area of the disk device. Information processing device. 請求項1記載の情報処理装置において、前記落下判定手段は、加速度センサにより検出された加速度信号が略ゼロとなる状態が所定時間以上継続した場合に落下と判定することを特徴とする情報処理装置。   2. The information processing apparatus according to claim 1, wherein the fall determination unit determines that the fall has occurred when a state in which the acceleration signal detected by the acceleration sensor is substantially zero continues for a predetermined time or more. . データの書込み或いは読込み等のコマンドをディスク装置へ出力するステップと、
前記ディスク装置に設けられた記憶領域にて一時保存されるコマンド数を可変制御するステップと、
加速度センサにより検出される加速度信号に基づいて落下判定を行う落下判定ステップと、
前記落下判定ステップにより落下と判定された場合に、前記ディスク装置のヘッドを退避させる退避コマンドをディスク装置へ出力する退避コマンド出力ステップと、
前記退避コマンド出力ステップの機能が有効にされている場合に、前記ディスク装置の記憶領域に一時保存されるコマンド数を前記退避コマンド出力ステップの機能が無効にされている場合に比較して減らすステップと、
を備えたことを特徴とする情報処理装置の制御方法。
Outputting a command for writing or reading data to the disk device;
Variably controlling the number of commands temporarily stored in a storage area provided in the disk device;
A fall determination step for performing fall determination based on an acceleration signal detected by the acceleration sensor;
A evacuation command output step of outputting a evacuation command to evacuate the head of the disk device to the disk device when it is determined to be dropped by the fall determination step;
A step of reducing the number of commands temporarily stored in the storage area of the disk device when the function of the save command output step is enabled as compared to when the function of the save command output step is disabled. When,
An information processing apparatus control method comprising:
請求項4記載の情報処理装置の制御方法において、前記退避コマンド出力ステップは、前記ディスク装置の記憶領域にて一時保存されている全てのコマンドの実行後に前記退避コマンドをディスク装置に出力することを特徴とする情報処理装置の制御方法。   5. The information processing apparatus control method according to claim 4, wherein the saving command output step outputs the saving command to the disk device after executing all commands temporarily stored in the storage area of the disk device. A control method for an information processing apparatus. 請求項4記載の情報処理装置の制御方法において、前記落下判定ステップは、加速度センサにより検出された加速度信号が略ゼロとなる状態が所定時間以上継続した場合に落下と判定することを特徴とする情報処理装置の制御方法。   5. The control method for an information processing apparatus according to claim 4, wherein the fall determination step determines that the vehicle has fallen when a state where the acceleration signal detected by the acceleration sensor is substantially zero continues for a predetermined time or more. A method for controlling an information processing apparatus.
JP2005327809A 2005-11-11 2005-11-11 Information processor and its control method Pending JP2007134000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005327809A JP2007134000A (en) 2005-11-11 2005-11-11 Information processor and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005327809A JP2007134000A (en) 2005-11-11 2005-11-11 Information processor and its control method

Publications (1)

Publication Number Publication Date
JP2007134000A true JP2007134000A (en) 2007-05-31

Family

ID=38155523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005327809A Pending JP2007134000A (en) 2005-11-11 2005-11-11 Information processor and its control method

Country Status (1)

Country Link
JP (1) JP2007134000A (en)

Similar Documents

Publication Publication Date Title
US7042663B2 (en) Magnetic disk protection mechanism, computer system comprising protection mechanism, protection method for magnetic disk, and program for protection method
JP3961480B2 (en) Protection mechanism for magnetic disk device, computer system including the same, magnetic disk device control method and program
JP3927532B2 (en) Information processing apparatus, control method for information processing apparatus, program, and recording medium
JP3994071B2 (en) Computer apparatus, system operating state switching control method, and program
EP1085399B1 (en) Software-based temperature controller circuit in an electronic apparatus
US20060136168A1 (en) Electronic apparatus and disk protection method
JP2004146036A (en) Protective mechanism for magnetic disk, computer system provided therewith, method for protecting magnetic disk and program
EP1927985A2 (en) Information processing apparatus
US8281171B2 (en) Adjustment of power-saving strategy depending on working state of CPU
US8516510B2 (en) Information processing apparatus and drive control method
US7620830B2 (en) Halt state for protection of hard disk drives in a mobile computing environment
WO2007065104A2 (en) Method to reduce risk of data loss
US20020194402A1 (en) Peripheral device of a portable computer with thermal control circuitry
JP4764454B2 (en) Pen input type information processing apparatus, warning method thereof, and computer-executable program
JP2007122816A (en) Storage device, control method, and program
JP2007134000A (en) Information processor and its control method
JP4511444B2 (en) Electronic device casing internal cooling system, cooling method, and electronic device
JP2011210355A (en) Eject button control system and control method of the same
JP4908183B2 (en) Information processing apparatus and temperature control method
JP5172793B2 (en) Function expansion device
JP5193018B2 (en) Information processing apparatus, head withdrawal method for information processing apparatus, and computer-executable program
JP2009163310A (en) Disk array device, physical disk restoration method, and physical disk restoration program
US9679596B2 (en) Protection of a magnetic disk unit on a portable computing device
JP2004355776A (en) Portable type information processor