Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ GNU / Linux enable Intel Rapid Start     - Linux system last command usage (Linux)

- Oracle to use full-text indexing (Database)

- HBase in MVCC implementation mechanism and its application (Database)

- Shilpa Nair interview experience sharing RedHat Linux package management (Linux)

- Linux common commands ll namely ls -l --color = auto (Linux)

- CentOS6.3 build a Python 3.3 environment to access Oracle 11gR2 (Database)

- osprofiler use OpenStack Cinder Lane (Server)

- Android application security of data transmission security (Programming)

- Linux System Getting Started Learning: Join cron job in Linux (Linux)

- A detailed introduction to the Hadoop ecosystem (Server)

- Use PXE with kickstart to install Linux automatically (Linux)

- CentOS7 install MySQL5.6.22 (Linux)

- Linux host system monitoring implement the cgi (Server)

- Perl loop (Programming)

- Java precision four operations (Programming)

- ARM Linux system call (Linux)

- RedHat Performance Tuning (Server)

- Type Linux commands (Linux)

- BusyBox making the file system (Linux)

- Docker Basic and Advanced (Linux)

  GNU / Linux enable Intel Rapid Start
  Add Date : 2018-11-21      
  Intel Rapid Start is an Intel research and development with the help of a laptop to save power and fast recovery technology with the traditional sleep (Sleep) and Sleep (Hibernate) have some differences, comparison, and hybrid sleep (Hybrid Sleep) It does have some similarity. Intel said that this technology must first motherboard supports, and secondly to have SSD, finally have Windows. But in fact the SSD and Windows are not necessary. I was in the HDD + Linux combination was used successfully Intel Rapid Start.

A, Intel Rapid Start Principle

In fact, the principle of Intel Rapid Start is very simple, is to let the computer in a traditional sleep (Sleep) on the basis of the opportunity to enter the deeper sleep (Deep Sleep), the user can a timeout by BIOS settings, such as one minute, ten minutes, half hours, etc. (you can also set up "immediately"), when the computer goes to sleep, start time, if you arrive before the timer to wake up the computer, it had nothing to happen, if the predetermined time is reached, the computer will be shallow wake (wake up briefly), data is written to the hard disk memory (official documentation refers SSD) in a particular district, then powered down completely. After this, the user can press the power button the way through boot partition specific motherboard firmware will read back the contents of memory, then you can continue to use the computer.

To summarize, Intel Rapid Start Technology (IRST) in the first half of ordinary sleep is the same, then the second half is similar to Sleep (Hibernate), but sleep is by the operating system, and the IRST is by the motherboard firmware (BIOS or UEFI) to complete this operation, that is, after the power on Self Test (POST), the content is directly read from the hard disk of the process, there is no guide (boot loader) and OS loading process, Therefore a lot faster than the operating system level of sleep, coupled with the SSD application, even accelerate, and this is Intel claimed "six seconds recovery." According to my understanding, it is as fast as the speed of recovery and sleep, but as low power consumption and Sleep (zero power).

Intel's official document that said the technique requires SSD + Windows, but I did not see the need for them: SSD to accelerate, if the HDD instead of words have nothing except slow down the problem, but Windows does? Exciting is that, in June 2013, when, Linux developer Matthew Garrett submitted a kernel patch, Linux kernel to achieve this support. The patch has been applied in Linux 3.11, and as of this writing, the latest version of the Linux kernel is already 3.12.6, and obviously can be used.

Second, adjust the partition

My computer is a ThinkPad X240s, the model has an internal SATA and two NGFF interface, which is a new interface Intel push can be used to access Bluetooth, 3G modules can also be used to access NGFF interface SSD. Ideally configuration should be used to access the HDD SATA interface used to access and NGFF SSD, this version is already configured, the Intel Rapid Start. My take on this version of the SATA interface with a 500GB 7200 RPM mechanical hard drive, a NGFF pick up WiFi + Bluetooth, another NGFF is empty. In other words, there is no SSD, naturally did not have to use the default Intel Rapid Start. But apart from a small Taobao expensive NGFF SSD is no other way to it? of course not. Intel Rapid Start reading carefully the user manual you will find it mentioned motherboard firmware is to find IRST partition by partition identifier for GPT, is D3BFE2DE-3DAF-11DF-BA-40-E3A556D89593, the MBR is 0x84.

Before I adjust partition structure is as follows:

sda 8: 0 0 465,8G 0 disk
sda1 8: 1 0 2M 0 part
sda2 8: 2 0 200M 0 part / boot
sda3 8: 3 0 50G 0 part
crypt-sda3 254: 0 0 50G 0 crypt /
sda4 8: 4 0 415,6G 0 part
crypt-sda4 254: 1 0 415,6G 0 crypt / home
465 GiB entire hard drive using GPT divided into four areas, beginning 2 MiB is used to store GRUB, after 200 MiB is / boot, and then 50 GiB /, the last remaining 415.6 GiB used for / home. Wherein sda3 and sda4 are LUKS container. My aim is to sda4 adjusted to 400 GiB, then the remaining 15.6 GiB classified as sda5, as IRST partition.

Since sda4 is GPT + LUKS + ext4 three nested structure, layer by layer, it is necessary to refine them, and then layer by layer, to stretch them to the appropriate location.

# The / home Uninstall
umount / home
Check the file system must first adjust the file system before #
e2fsck -f / dev / mapper / crypt-sda4
# Shrink the file system to 398 GiB
resize2fs -p / dev / mapper / crypt-sda4 398G
# Refine LUKS container to 399 GiB
# 512 KiB converted into blocks of 399 * 1024 * 1024 * 2 = 836763648
cryptsetup resize crypt-sda4 836763648
# Sda4 partition will be adjusted to 400 GiB
# And establish sda5 with the remaining space
When # 8400 established the partition identifier input
gdisk / dev / sda
# Restart your computer so that the kernel uses the new partition table
# Again unloading / home
umount / home
# Amplification LUKS container stays full sda4
cryptsetup resize crypt-sda4
# Check the file system
e2fsck -f / dev / mapper / crypt-sda4
# Enlarge the file system to support full LUKS container
resize2fs -p / dev / mapper / crypt-sda4
# Mount test
mount / dev / mapper / crypt-sda4 / home
After adjustment, the effect is this:

sda 8: 0 0 465,8G 0 disk
sda1 8: 1 0 2M 0 part
sda2 8: 2 0 200M 0 part / boot
sda3 8: 3 0 50G 0 part
crypt-sda3 254: 0 0 50G 0 crypt /
sda4 8: 4 0 400G 0 part
crypt-sda4 254: 1 0 400G 0 crypt / home
sda5 8: 5 0 15,6G 0 part

Number Start (sector) End (sector) Size Code Name
   1 2048 6143 2.0 MiB EF02 BIOS boot partition
   2 6144 415743 200.0 MiB 8300 Linux filesystem
   3 415744 105273343 50.0 GiB 8300 LUKS partition
   4 105273344 944134143 400.0 GiB 8300 LUKS partition
   5 944134144 976773134 15.6 GiB 8400 Intel Rapid Start
Third, set the motherboard firmware (BIOS / UEFI)

This step depending on the manufacturer's own different, but the gist is to find the BIOS / UEFI settings for the Intel Rapid Start, and it will open. Before completing the steps above, this option can not be turned on, you will be prompted not find a suitable storage device, but after completing the above steps, the firmware will find IRST partitions based GUID, allowing to open this feature. As long enabled, is personal preference, I chose the "now", which is equivalent to using IRST instead of sleep (Sleep) function.

Fourth, the test

To test the effect is obvious, you can use the sda5 dd_rescue emptied at: dd_rescue / dev / zero / dev / sda5. You can use the command as head -c 1G / dev / sda5 like examine.

When you are ready to begin testing completed: echo -n mem > / sys / power / state to suspend the system memory (S3, Sleep) -> system -> system is short sleep well and wake up the contents of memory written IRST partition, this time If you listen carefully you can hear the sound of the mechanical hard disk write -> write completion, the system power down.

After a power outage shut down, the user can only press the power button to wake the computer. After pressing the power button can be observed on the display BIOS / UEFI Resuming from deep sleep ... words similar, indicating that the recovery process is done by the firmware, regardless of operating system. After the restoration is complete, simply reply to what it was before entering sleep. This time using the head / dev / sda5 observed a lot of output, indicating sda5 indeed been written.

Thus IRST successful deployment.
- Inject script commands manually annotated summary (Linux)
- Scala REPL Shell call (Programming)
- Java memory model subclasses (Programming)
- Python Multithreaded Programming (Programming)
- The principle Httpclient4.4 (execution request) (Programming)
- Denyhosts prevent hackers using SSH scanning (Linux)
- Getting Started with Linux system to learn: how to check in a package is installed on Ubuntu (Linux)
- Linux - use chroot command (Linux)
- Ubuntu 14.04 users how to install VLC 2.2.0 (Linux)
- Build the first ASP.NET 5 Web project in Mac OS X Yosemite 10.10.3 (Server)
- The first IOS Objective-C program (Programming)
- To use iostat display I / O status under Linux (Linux)
- Linux based exercises, interview questions (Linux)
- Ubuntu 14.04 install AMD graphics driver is fully dual monitor solution (Linux)
- Python in os.path Magical (Programming)
- C / C ++ various data types Conversion Summary (Programming)
- C ++ Object Model Comments (Programming)
- Debian SSD ext4 4K aligned (Linux)
- 22 Port weak passwords and SSH connection program of the Linux server (Linux)
- Java 8 Lambda principle analysis (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.