Patent ID: 8516168

Claim:
A buffer overflow prevention method for Hard Disk Drive (HDD) protection in a computer system, the method, operable in a controller, comprising: measuring acceleration information of the system; determining if the system is in a stable status or an unstable status using the measured acceleration information; and if determined that the system has become unstable, moving a magnetic head to a safe zone to prevent I/O access to the HDD, and preventing overflow of a buffer queuing data to be stored on the HDD by restricting the generation of a disk Input/Output (I/O) request to be inputted to the buffer, in a manner preventing loss of user data; wherein the system restricts the generation of the disk I/O request using a technique of controlling platform HardWare (H/W) performance comprising at least one of a technique of changing Performance State (P-State) for changing a performance capability of at least one system processor, a technique of changing, on-demand clock modulation duty-cycle, and a technique of performing platform chipset thermal throttling; wherein the system determines the number of techniques to be used for restricting the generation of the disk I/O request according to relation of a usage of a queue with a threshold value.