SSD: how to optimize your Solid State Drive for Linux Mint 17.3, Ubuntu 16.04 and Debian

TVM:深度学习框架编译器的安装踩坑集 目录一、引言二、流程 一、引言 4月底的时候,花了一天时间安装TVM这个东西。那时,上来就弄TVM 0.8的版本,但因为具体安装的流程不是很懂,所以出现了一些莫名其妙的问题。后来,直接改用TVM0.6版本,一路顺风。 但,今天(5月7日)时,打算仔细看下教程,发现0.6版本的,已经没了,只剩下0.8的教程,行吧!还是得回头安装0.8的,但之前怎么安装的,又给忘了,于是乎,一顿操作后,直接弄好了,打算写篇文章讲讲这个东西的安装。 二、流程 安装的流程很简单,网上也有许多教程了,这里先详细地讲下。 1°代码 阅读详情

原文地址: https://sites.google.com/site/easylinuxtipsproject/ssd

Below you'll find a complete how-to for optimizing your SSD for Ubuntu 16.04, Linux Mint 17.3 and Debian. So that you'll be able to enjoy your SSD for many years!


Note: this how-to is only for Ubuntu, Linux Mint and Debian; the how-to for openSUSE is on another page.


Avoid exaggerated measures

1. First a word of caution: don't exaggerate! There's a lot of exaggeration to be found on the web on this issue.

On the one hand you have people who don't take any special measures for SSD's at all, and on the other hand you see people who take all kinds of extreme and complicated precautions. Neither side is behaving sensibly.

This how-to is meant to be a "best practice". It'll show you how to achieve a very good result by applying just a few rather simple measures. With those, you'll be able to enjoy your SSD carefree, for years and years to come!

Taking into account the long warranty periods that the manufacturers are giving, probably for more than five years (10 years should be a reasonable expectation). Considerably longer than an ordinary platter hard disk, anyway...

Alignment is not necessary anymore

1.1. A common misunderstanding is, that the partitions on the SSD should be properly aligned first. That used to be true years ago, but no longer.

In the current versions of Ubuntu and Linux Mint, and in Debian since Wheezy, all tools automatically align filesystems and partitions to the optimal 4096 byte page size. So there's no need to do anything for alignment on an SSD.

BIOS and UEFI: set it to AHCI

2. A Solid State Disk, or rather Drive (SSD), is sometimes only recognized properly by the BIOS or UEFI, when in the BIOS/UEFI the feature AHCI has been activated for SATA (instead of IDE).

This feature may be hard to find in the BIOS/UEFI, because there's absolutely no standardization at all in menu structures for BIOS and UEFI (sigh....).

That's why I've made two screen shots of the BIOS of my computer, in which you can see this particular feature. Hopefully it'll help you to find it in your own BIOS/UEFI.... The motherboard of my computer is, by the way, an MSI H61MA-E35 (B3).

Note: doesn't the BIOS or UEFI of your computer offer the option to switch to AHCI? Then the BIOS/UEFI might possibly detect the SSD automatically and automatically choose the right BIOS settings for it.

First of all, in the BIOS of my computer I go to the tab Advanced, and there I expand the section Integrated Peripherals (click on the image below to enlarge it):

https://sites.google.com/site/easylinuxtipsproject/ssd/SSD-BIOS-1.JPG?attredirects=0

Then, under the header "SATA Configuration", I change IDE into AHCI Mode. Namely for SATA Mode.

Then, under the header "External SATA 6GB/s Configuration", I also change IDE into AHCI. Namely for External SATA 6gb/s Controller Mode.

See the image below (click on it to enlarge it):

https://sites.google.com/site/easylinuxtipsproject/ssd/BIOS-SSD-3.JPG?attredirects=0

Check for updated firmware

3. Check the website of the SSD manufacturer, whether there's an updated version available of the firmware for your SSD. If so, apply it.

For most SSD's it doesn't matter that you're running Linux, because many manufacturers offer such firmware updates by means of an iso file with which you can create a bootable CD, much like Ubuntu and Linux Mint do.

In the first year after purchase, repeat this check every month or so.

Avoid quick wear: reduce write actions

4. A Solid State Drive is worn down relatively quickly by write actions. Especially the oldest generations of SSD's were vulnerable in that aspect, but to a lesser degree that's still the case for the newer generations.

Below you'll find some tips on keeping wear down to a reasonable minimum, by limiting the write actions. Within reason, because a modern SSD is already pretty wear-resistant by default.

When you apply my tips, a lifespan of more than 10 years should be a normal expectation for your SSD. Which is considerably longer than the average lifespan of an old-fashioned platter disk.

Note: these directions are only meant for a Solid State Drive (SSD), not for an ordinary conventional spinning hard disk!

Optional: reserve some space for overprovisioning

5. Over-provisioning (with or without a dash) is a technique that's being used to improve the performance and life span of an SSD. I won't explain it here, but it boils down to not formatting a part of the SSD, which then remains unallocated space (unused capacity).

General opinion used to be, that it's wise to reserve as much as 28 percent of the storage capacity of an SSD for such unallocated space. That's of course a huge slice out of the total storage capacity, which makes nobody happy....

However, in the newer generations of SSD's the technology and firmware have improved so much, that such huge losses of storage capacity aren't needed anymore. Modern SSD's usually have some built-in unallocated space for overprovisioning anyway, which isn't accessible to the user. 

But to be on the safe side, I still advise to reserve about seven percent for unallocated space. With a maximum of 10 GB, because more would be unnecessary in almost any case. Reason: commercial pressure might induce SSD manufacturers to be too stingy with built-in "useless" overprovisioning space....

Seven percent with a maximum of 10 GB, is not a big loss of storage capacity. And it's beneficial for wear reduction on the very long term. What's more, on the short term it can be useful when your partitions are very full, because then your SSD won't slow down so much.

See the screenshot below of my own SSD, in which the seven percent unallocated space has been highlighted (click on the image to enlarge it):

https://sites.google.com/site/easylinuxtipsproject/ssd/Screenshot-SSD-overprovisioning-5.jpg?attredirects=0

I classify overprovisioning as optional, because it's not as important as the other measures that I advise and because it costs you storage space. Yet on my own SSD's I always apply this.

During installation: select EXT4

6. The best file system (formatting) for an SSD, is the usual default EXT4. So you don't have to choose anything different in this respect.

The journaling that comes with EXT4 causes some write activity, but not very much. Plus journaling is a very important feature for system crash recovery, so you don't want to disable it.

Note: don't select the BTRFS file system! Because under certain circumstances, BTRFS causes a huge amount of write actions.

After the installation: noatime

7. With "noatime" in /etc/fstab, you disable the write action "access time stamp", that the operating system puts on a file whenever it's being read by the operating system. For an SSD "noatime" is much better.

You can do that as follows:

a. First make sure that you have installed the applications gksu and leafpad:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Type (or copy/paste):
sudo apt-get install gksu leafpad

Press Enter and submit your password. Please note that the password will remain invisible, not even asterisks will show, which is normal.

b. Then type in the terminal (use copy/paste):
gksudo leafpad /etc/fstab

Press Enter.

c. Now add " noatime" to the line for your root partition and your other Linux partitions. Not to the line for the swap partition!

An adapted line may look like this:
UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d   /   ext4 noatime,errors=remount-ro   0   1

Note: this is one line, not two! It might appear to be two lines (dependent on your screen size), because of the length of the line.

d. Save the modified text file and close it.

e. Now proceed to the next item.

Still relevant for Ubuntu 16.04 and Linux Mint 17.3: automatic TRIM by rc.local, by cron or by discard

8. The cleaning action TRIM is necessary for the good performance of your SSD in the long run. Otherwise it'll become very slow after some time.

All modern SSD's support TRIM, but older SSD's from before 2010 usually don't. So for an older SSD you'll want to check this on the website of the manufacturer.

It's easiest to let the system perform an automatic TRIM. That can be done in several ways.

Note: in Ubuntu 16.04 and in Linux Mint 17.3 TRIM is enabled automatically, when you install Ubuntu 16.04 or Linux Mint 17.3 on an SSD. Namely by a "cron job".

But this doesn't happen automatically for all SSD's. Furthermore, in most cases "cron" is not the optimal method for TRIM anyway, so I advise you to read on.


Preferred method: by rc.local

8.1. You can add the TRIM command to /etc/rc.local. Then this command will be executed automatically on system boot. This hardly slows the boot process down.

This is the method that I prefer, because in most cases recoverable disk space then becomes fully usable again rather quickly.

You can do that as follows:

a. First make sure that you have installed the applications gksu and leafpad.

b. Then type in the terminal (use copy/paste):
gksudo leafpad /etc/rc.local

Press Enter.

c. Above the line exit 0 in that file, you now add the TRIM command
fstrim for every automatically mounted EXT4 partition.

Note: only for partitions that are mounted by default! But not for the swap partition, as that's already being trimmed automatically by the system by default, during the boot process.

An example is most clarifying. When your Ubuntu or Linux Mint is on one single partition, so you have only the root partition / , then your rc.local should look like this:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
fstrim /
exit 0


If you have a separate home partition (although that's not very useful), then you add the following line as well, above exit 0:
fstrim /home

Note: if you have a separate partition for /boot/efi, don't add a trim command line for that in rc.local. It's useless, as that partition is seldom being written to. And it may even cause malfunctions.

d. Save the modified file and close it.

e. Reboot your computer.

Disable the superfluous weekly cron job for TRIM
8.1.1. In Ubuntu 16.04 and Linux Mint 17.3, disable the now superfluous weekly cron job for TRIM:

Copy/paste the following command line into the terminal:
sudo mv -v /etc/cron.weekly/fstrim /fstrim

Press Enter.

With that command you've transferred the script file fstrim to the root directory, thus disabling it.

Now proceed to item 9 in the column on the right.

Only for computers that are always on: daily by cron

8.2. For computers that are always on (24 hours a day, seven days a week), a TRIM action that's being executed when booting, is of course not useful.

In such a case you're better off with a "timer", i.e. with cron. Trimming daily is better than weekly, because then you don't have to wait so long before recoverable disk space becomes fully usable again.

You can schedule a daily trimming as follows:

a. First make sure that you have installed the applications gksu and leafpad.

b. Then type in the terminal (use copy/paste):
gksudo leafpad /etc/cron.daily/trim

Press Enter.

c. Copy/paste the following blue text into that empty text file:

#!/bin/sh
# call fstrim-all to trim all mounted file systems which support it
set -e
#
# This only runs on Intel and Samsung SSDs by default, as some SSDs with
# faulty firmware may encounter data loss when running fstrim under high I/O
# load (e. g.  https://launchpad.net/bugs/1259829). You can append the
# --no-model-check option here to disable the vendor check and run fstrim on
# all SSD drives Like this (remove the hash):
#exec fstrim-all --no-model-check
exec fstrim-all


Save the text file.

d. Now copy/paste the following command into the terminal, in order to make the file executable:
sudo chmod +x /etc/cron.daily/trim

Press Enter. Type your password when prompted; this remains entirely invisible, not even dots will show, this is normal. Press Enter again.

e. Reboot your computer.

Ubuntu or Linux Mint will now perform the daily cron job automatically, at 06:25, or (when the computer isn't on at that time), automatically at a later time on the same day.

Disable the superfluous weekly cron job for TRIM
8.2.1. In Ubuntu 16.04 and Linux Mint 17.3, disable the now superfluous weekly cron job for TRIM:

Copy/paste the following command line into the terminal:
sudo mv -v /etc/cron.weekly/fstrim /fstrim

Press Enter.

With that command you've transferred the script file fstrim to the root directory, thus disabling it.

Now proceed to item 9 in the column on the right.

(continued in the column on the right)


This website is being sponsored by Google Ads.

Are you using an ad blocker? Then you're also blocking my earnings from advertisements....

If you wish to support my website, you can configure your ad blocker to make an exception for this website.

Thanks in advance....


Not advised: by discard

8.3. Another widely used method for automatic TRIM is to add the option discard to /etc/fstab, for the line for your root partition and for possible other Linux partitions that are being mentioned there.

Note:
do not add it to the line for the swap partition, as that's already being trimmed automatically by the system by default, during the boot process!

The disadvantage of this method is, that it may cause the system to slow down. Because it forces the system to apply TRIM instantly on every file deletion. That's why this method is not my favourite.

Note: as already mentioned, old SSD's made before 2010 usually don't support TRIM. In that case it's of course not useful to apply the option  discard in fstab.

If you want to do it anyway, then this is how:

a. First make sure that you have installed the applications gksu and leafpad.

b. Then type in the terminal (use copy/paste):

gksudo leafpad /etc/fstab

Press Enter.

c. Now add "discard" to the line for your root partition and your other Linux partitions that are being mentioned in this file. Not to the line for the swap partition!

An adapted line may look like this:
UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d   /   ext4 discard,errors=remount-ro   0   1

Note: if you have a separate partition for /boot/efi, don't add a trim command for that partition in fstab. It's useless, as that partition is seldom being written to. And it may even cause malfunctions.

d. Save the modified text file and close it.

e. Reboot your computer.

f. Now proceed to item 9.

How to execute TRIM manually

9. You can execute TRIM manually as well, namely as follows:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Type (use copy/paste):

sudo fstrim -v /

Press Enter. Type your password when prompted; this remains entirely invisible, not even dots will show, this is normal. Press Enter again.

This operation may last for minutes; it then looks as if the terminal has frozen. That's not true, however; simply wait patiently....

Note: on a few SSD models (specifically two models from Crucial), executing this command when there's high disk activity (I/O activity), might cause problems. So only apply it when there's not much activity going on. Preferably with all other applications closed.

The above terminal command is enough when you have only one Ubuntu or Mint partition and a swap partition (because for the swap it's unnecessary; the system takes care of that automatically).

When you have more mounted EXT4 partitions, you'll have to adapt the command line accordingly. For example, if you have a separate home partition (although that's  not very useful), then the command is:
fstrim -v /home

Now proceed to the next item.

Limit swap wear

10. With the action described below, you limit the use of the swap partition (the virtual memory on the SSD). Without disabling it entirely, because that would go too far: in case of extreme RAM load, your Linux has to be able to "swap".

Linux's inclination to use the swap, is determined by a setting. The lower the setting number, the more system load is required before your Linux starts using the swap.

On a scale of 0-100, the default setting is 60. Which is much too high for normal desktop use, and only fit for servers. For SSD's, it's just crazy.

A detailed explanation can be found here (link dead? Then download this pdf file with the same content).

Now the how-to:

a. First make sure that you have installed the applications gksu and leafpad.

b. Now check your current swappiness setting. Type in the terminal (use copy/paste):

cat /proc/sys/vm/swappiness

Press Enter.

The result will probably be 60.

c. Now type in the terminal (use copy/paste):

gksudo leafpad /etc/sysctl.conf

Press Enter.

d. Add the following blue lines, at the very end of the existing text in that file (use copy/paste to avoid errors):

# Sharply reduce swap inclination
vm.swappiness=1

e. Save the file and close it.

f. Now proceed to the next item.

Almost ready after reboot

11. Reboot your computer.

Your SSD is almost ready now, but not quite. So after the reboot, proceed to the next item.

Limit the write actions of Firefox

12. You can limit the write actions of Firefox as follows.

a. Set the cache to 0:
Firefox menu button (with the three dashes on it) - Preferences - Advanced
Tab Network
section "Cached Web Content": tick Override automatic cache management and set the cache to 0 MB.

b. If you have installed Oracle Java, limit the write actions of the Java plugin:
launch the Java Control Panel - Tab General:
Temporary Internet Files - Settings...
Remove the tick for: Keep temporary files on my computer.

Limit the write actions of Chrome and Chromium

13. The write actions of Google Chrome and Chromium can be limited as follows.

- Launch Chrome / Chromium.

- Now tap the F12 key, in order to open the developers' console. Then tap the F1 key, in order to open the settings.

In the settings window you tick: Disable cache (while DevTools is open).

Unfortunately, this only works when the developers' console is open.... A workaround might be, to always open one extra tab in which you keep the developers' console opened. This should also have effect on the other, "normal" tabs.

Another possibility is, to launch Chrome from the terminal with the following command:

google-chrome-stable --disk-cache-size=1 --media-cache-size=1

For Chromium the command is:

chromium-browser --disk-cache-size=1 --media-cache-size=1

Note: a value of 0 has no effect! But 1 byte should be satisfactory as well....

Now proceed to the next item.

Check whether the scheduler is set to deadline

14. By default, Ubuntu and Linux Mint use the I/O scheduler Deadline, which is good for both SSD's and conventional platter hard disks. So for the scheduler, you don't have to change anything.

But because it's so important for the performance of your SSD, it's wise to check whether this setting is indeed as it should be.

You can check your current scheduler as follows: use copy/paste to transfer the following blue command line to the terminal:

cat /sys/block/sda/queue/scheduler

(if your drive isn't sda, change the line accordingly)

Press Enter.

The output should be:
noop [deadline] cfq

Which means: deadline is active, but noop and cfq are also supported. Is the outcome different? Then change it as follows:

a. First make sure that you have installed the applications gksu and leafpad.

b. Then type (use copy/paste):

gksudo leafpad /etc/default/grub

Press Enter.

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

And replace it by this line:

GRUB_CMDLINE_LINUX_DEFAULT="elevator=deadline quiet splash"

c. Save the modified file and close it.

d. Now update Grub for this change. In the terminal (use copy/paste):

sudo update-grub

Press Enter. Type your password when prompted; this remains entirely invisible, not even dots will show, this is normal. Press Enter again.

e. Reboot your computer.

f. Proceed to the next item.

Note: when you have only an SSD in your computer and no platter disk as well, some how-to's suggest that you may experience a slight performance benefit by choosing noop for scheduler, instead of deadline. This is not true, however. Deadline is always the best choice.

Do NOT enable hibernation

15. Hibernation causes a huge amount of write actions, which is very bad for an SSD. Make sure it's disabled! (item 8, left column)

This is especially relevant for Linux Mint, because in Linux Mint hibernation is unfortunately enabled by default...

Also for an SSD: prevent fragmentation, and DO NOT defrag

16. For an SSD, fragmentation of the file system is a smaller problem than for ordinary rotating hard disks. But it's nevertheless still a problem, so it's useful to prevent fragmentation as much as possible on an SSD, too. You can achieve that by preserving a minimum of 20 % free space on each partition (item 4, left column).

Prevention is all the more important, as defragmenting is out of the question anyway: your SSD would wear rapidly, because of the many write actions it causes.

The reason that fragmentation is also a problem for an SSD, is this:

The mechanical seek time of an SSD is always 0, regardless of the fragmentation. That's a big difference with rotating hard disks, on which the seek time increases as fragmentation grows. This is a significant improvement.

But mechanical seek time only makes up a part of total access time, or I/O time, of any single input/output request made to the disk.

I/O time is the time a computer system takes to complete a request cycle. All the way from application, operating system and driver down to disk hardware, memory cells, and then back again.

Zero mechanical seek time certainly does not mean zero I/O time. No matter how fast an SSD is, its I/O time can never be zero. File system fragmentation increases I/O time in an SSD, even when the mechanical seek time is zero.

To put it another way: the performance degradation as a result of fragmentation is not caused by the storage device alone (whether there's a mechanical moving part or not), but it's also a problem concerning the system as a whole.

The task for the system becomes heavier, when there are more files to be chopped up and more pieces of files to be glued together. The heavier the task, the longer the processing time.

A good and elaborate explanation of this fact can be found here. Website down? Here's a pdf file.

Dual boot? Don't let Windows kill your SSD

17. Do you have a dual boot with Windows? Then don't let Windows kill your SSD by defragmenting it.

Defragmentation will kill your SSD in a very short time, because of the multitude of write actions that it causes.

Within Linux you don't have this problem, because Linux filesystems hardly fragment in the first place and so don't need to be defragmented anyway.

Enjoy your SSD carefree for years and years

18. Now you'll be able to enjoy your SSD carefree!

As already said in the start of this how-to: taking into account the long warranty periods that the manufacturers are giving, your SSD will probably last for more than five years (10 years should be a reasonable expectation).

Considerably longer than an ordinary platter hard disk generally lasts, anyway...
gephi生成网络关系图_路网拓扑重建专题 (3) 网络图生成 城市道路网建模在获得基础路网之后,需要考虑道路交通网络的描述与表达问题。网络是将现实世界中的事物及其关系进行适当的抽象,构造成由节点和边按照一定规则组成的形式。一个实体网络可以由有限个“节点”集合与“边”集合构成的图表示,即网络表示为。对于一个由个节点组成的无权复杂网络,该图有邻接矩阵,这里。根据研究对象不同,建模方法主要包括原始法[1]和对偶法[2]两种,见图1,字母a-j为交叉口编号... 阅读详情

相关推荐

C++总结笔记

/ ++操作 这是因为定义的数组,申请的是连续的内存空间,当ptr++(ptr是int类型的指针变量),地址空间向后偏移是以int类型的大小为单位进行偏移的,相当于int类型数组元素的向后偏移。使用场景:它是最通用的转换形式,用于将一种类型转换为另一种类型,例如基本数据类型的转换(如 float 转 int),指向基类的指针或引用转为指向派生类的指针或引用等。在派生类被调用时会调用派生类中的函数,不会调用基类中的被重写的函数(基类中的函数需要加上virtual才可以,即基类中的函数是虚函数)。

weixin_50890461的博客 5233

win10+SSD随机出现屏幕凝固现象,只能强行关机(errorID:129)

官方解释: Task Manager might show 100% disk utilization on Windows 10 devices with Message Signaled Interrupt (MSI) mode enabled Task Manager shows the disk to be at 100% utilization despite a light or

todo 1万+

【紫光同创PG2L200H开发板】盘古200Pro+开发板(MES2L676-200HP)

开发板 SMA接口符合标准 SMA 接口规范,可使用”内螺旋+插针“的 SMA 线连接板卡”外螺旋+插孔”的 SMA 接口进行通信,板卡 SMA 接口与 FPGA 的 HSST 收发器的一路 RX/TX 相连,TX信号和 RX 信号都是以差分信号方式通过隔直电容连接 FPGA 和 SMA 接口, TX 发送和 RX 接收数据速率高达 6.6Gb/s。为了减轻带电插拔造成对 FPGA 芯片的损坏,在设计上在 JTAG 信号位置添加了保护二极管来保证信号的电压在 FPGA 接受的范围,避免 FPGA 的损坏。

MYMINIEYE的博客 2878

硬盘 SMART 检测参数详解[转]

一、SMART概述     硬盘的故障一般分为两种:可预测的(predictable)和不可预测的(unpredictable)。后者偶而会发生,也没有办法去预防它,例如芯片突然失效,机械撞击等。但像电机轴承磨损、盘片磁介质性能下降等都属于可预测的情况,可以在在几天甚至几星期前就发现这种不正常的现象。如果发生这种问题,SMART功能会在开机时响起警报,至少让使用者有足够的时间把重要资料转移到其...

weixin_34363171的博客 3712

西门子AI面试问答(STAR法则回答实例)

通过建立良好的沟通渠道、倡导透明和积极的沟通,并建立信任和共享目标的文化,我成功地改善了团队合作的氛围和效果。对于一些存在分歧和冲突的情况,我采用了积极的解决问题的态度,促进双方的沟通和理解,寻找共同的利益点和解决方案。我的成果得到了评委和观众的认可,并为我的学术发展和进一步的科学研究奠定了基础。首先,我主动与团队成员进行一对一的沟通,倾听他们的观点和意见,了解他们在合作中遇到的问题和需求。我还参加了学校组织的科学俱乐部和研究小组,与其他热衷科学的同学一起进行讨论和实验,加深我的理解和实践技能。

kashine的博客 7249

从零构建XVC协议栈:FPGA+W5300的跨界调试架构实战

本文详细介绍了如何从零构建XVC协议栈,通过FPGA与W5300以太网控制器的创新组合实现跨界调试架构。重点解析了JTAG时序逆向、TCP/IP协议栈集成与XVC协议实现,提供了硬件设计优化和性能加速技术,为嵌入式开发者和FPGA工程师提供实用的远程调试解决方案。

raspberrypi5的博客 247

硬盘SMART检测参数详解[转]

   一、SMART概述        要说Linux用户最不愿意看到的事情,莫过于在毫无警告的情况下发现硬盘崩溃了。诸如RAID的备份和存储技术可以在任何时候帮用户恢复数据,但为预防硬件崩溃造成数据丢失所花费的代价却是相当可观的,特别是在用户从来没有提前考虑过在这些情况下的应对措施时。 硬盘的故障一般分为两种:可预测的(predictable)和不可预测的(unpredict

henweimei的博客 1万+

【AI智能体】图像处理-生成营销 Banner 图

生成营销 Banner 图是一款用于制作营销图片的智能体,它可以根据指定的营销活动内容,快速生成活动 Banner 图片,降低活动运营成本、提高制图效率。

AI创变工坊,和1000万新个体创业者一起成长!愿大家都能跟上时代的洪流,不被社会淘汰,愿大家的生活工作收入都能具备竞争力! 1174

Solid State Disk(SSD)结构细分+高级指令+并行优化

1、结构 如图2所示,SSD主要由主机接口、SSD控制器和闪存芯片阵列三部分组成。主机接口支持主机系统和SSD控制器之间的通信,并维护设备级I/O队列,HIL以循环方式从主机队列中获取I/O请求,插入设备队列中。SSD控制器,通常包含一个嵌入式处理器和DRAM,负责处理I/O请求和管理SSD资源,通过执行一组flash翻译层(FTL)功能。、地址转换、垃圾收集和损耗均衡。SSD控制器还通过闪存芯片控制器与闪存芯片阵列通信。由多个闪存芯片组成的闪存芯片阵列通过通道连接到闪存控制器,提供物理存储容量。闪存芯片

wenj12的博客 5214

Swin Transformer 与 CNN 结合实现图像分类

Swin Transformer 与 CNN 结合实现图像分类。(含swin transformer 结构讲解,cnn网络搭建,代码)

这里是Mae。 5025

YOLO26改进策略【YOLO和Mamba】| 替换骨干 Mamba-YOLO26-T !!! 最新的发文热点

模块是模型中的一个重要组成部分,其主要作用是在模型的初始阶段对输入图像进行处理,方便后续的特征提取和目标检测。以下是对。

Limiiiing的博客 900

ubuntu开启SSD的Trim

什么是Trim? 详细的解释大家可以Google Wiki,用自己的理解的话说,SSD开启Trim指令以后,就是当你发出删除一个文件的指令的时候,固态硬盘会讲该文件块记录为删除状态,那么新文件写入的时候直接覆盖写入就好,那么就少了一个真正删除的过程,减少对固态硬盘的读写操作。因为删除文件是比较常用的指令,所以开启Trim后能大大延长固态硬盘的寿命。 ubuntu是否开启Trim? 就linu

Hackingwu's coding house 5050

⭐️VMwareWorkstation17.0虚拟机安装搭建Windows 7虚拟机(完整图文详细步骤含配置VMware Tools教程)

本教程为大家提供了从安装VMware Workstation 17.0开始,到在虚拟机上成功搭建Windows 7专业版系统的完整步骤。我们详细介绍了准备阶段所需的软件和硬件要求,以及在VMware中配置和安装Windows 7系统的每一步操作。此外,我们还特别提到了如何在虚拟机上配置VMware Tools,以便更好地与宿主机进行交互。 通过本教程的学习,读者不仅能够掌握在VMware Workstation 17.0上安装Windows 7虚拟机的技能,还能了解到如何配置虚拟机的硬件以及安装VMwar

Python老吕的博客 2万+

centos ubuntu debian 不同系统资料

centos是基于redhat的二次开发,redhat会封装不同版本的内核,有时候,我们需要指定内核版本的centos,下面两个网站或许对你有帮助: https://access.redhat.com/articles/3078 https://wiki.centos.org/Download 查看内核版本 红帽官网(即时更新) https://access.r...

远行的蜗牛 188

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

debian,ubuntu,redhat,centos区别及联系&&yum,apt-get区别及联系

debian:图形化界面,体积小,稳定性最高,安装包丰富,文档相对较少,但是适用于低配置的vps,128M内存就可以流畅运行debian,使用apt-get命令安装软件。 ubuntu(乌帮图):与debian有千丝万缕的关系,图形化界面系统,虽然是linux的系统,但是个人觉得更适合用作客户端操作系统而非服务器操作系统,使用apt-get命令安装软件。 redhat:命令行界面,有 redh...

yilikun的博客 8961

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

centos、Fedora/Red Hat Enterprise Linux 和 Ubuntu/Debian

与由 Canonical 维护的 Ubuntu 的 Snap 通用软件包系统不同,Flatpak 与发行版无关。centos Fedora是由 Red Hat 赞助的开源操作系统,其中包含根据各种许可证分发的软件。Fedora 是 Red Hat Enterprise Linux 的上游来源,这意味着它被认为是 Red Hat 旗舰产品的一种试验场。Ubuntu 的初始版本是 2004 年 10 月的 4.10(Warty Warthog)。桌面和服务器版本 是的 是的。桌面 - 桌面版本。

qq_15821487的博客 1256

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

Linux Smartphone Operating Systems You Can Install Today

https://www.makeuseof.com/tag/linux-smartphone-operating-systems/Sick of Android? Don’t want to be part of a proprietary ecosystem? Security and privacy are becoming increasingly important for smartph...

张同光 (Tongguang Zhang):Hello everyone ! 3474

CentOS、Ubuntu、Debian三个linux比较异同

Linux有非常多的发行版本,从性质上划分,大体分为由商业公司维护的商业版本与由开源社区维护的免费发行版本。 商业版本以Redhat为代表,开源社区版本则以debian为代表。这些版本各有不同的特点,在不同的应用领域发挥着不同的作用,不能一概而论。而绝大多数VPS上只提供开源社区维护的发行版本。下面就这些不同的Linux发行版进行简单的分析。 Ubuntu Ubuntu近

鲵之风采的专栏 3万+

linux_磁盘管理

Linux系统配置及服务管理_第06章_存储管理 1.基本分区 磁盘简介 名词 磁盘/硬盘/disk是同一个东东,不同于内存的是容量比较大。 类型 从工作原理区分 机械 机械硬盘即是传统普通硬盘,主要由:盘片,磁头,盘片转轴及控制电机,磁头控制器,数据转换器,接口,缓存等几个部分组成。 固态 固态驱动器(Solid State Disk或Solid State Drive,简称SSD),俗称固态硬...

estarhao的博客 1565

安装llvmlite报错解决:RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for

晚上在安装llvmlite时报错: zhang@debian:~$ pip3 install llvmlite==0.16.0 Collecting llvmlite==0.16.0 Using cached https://files.pythonhosted.org/packages/23/c7/56d7c18564783f33206b3cb6ce861a8d681e8be1a124c56...

个人博客 2万+

【从零开始学深度学习编译器】番外二,在Jetson Nano上玩TVM

0x00. Jetson Nano 安装和环境配置 这里就不详细介绍Jetson Nano了,我们只需要知道NVIDIA Jetson是NVIDIA的一系列嵌入式计算板,可以让我们在嵌入式端跑一些机器学习应用就够了。手上刚好有一块朋友之前寄过来的Jetson Nano,过了一年今天准备拿出来玩玩。 Jetson Nano大概长这个样子: 我们需要为Jetson Nano烧录一个系统,Jetson Nano的系统会被烧录在一个SD Card中,然后插入到板子上。我这里选取了一块内存为128GB的SD Car

I good vegetable a! 854

How to get the dmesg output in initramfs (debian)

I tried to install 2.6.18 kernel in my Debian 5.10, but it could not boot normally. It ended up in initramfs. There was something wrong with my SATA controller driver.  /root device cannot be detected

Kevin的专栏 1114

linux trim file path,如何在Linux服务器的SSD存储配置周期性TRIM

介绍由于SSD或固态驱动器的架构,如果不考虑和减轻连续使用,则导致性能下降。 TRIM的命令是允许操作系统传播信息向下到SSD哪些数据块已不再使用的操作。 这允许SSD的内部系统更好地管理耗损均衡并为将来的写入准备设备。 TRIM可以对设备的性能随时间和其整体寿命具有重大影响。虽然可以在Linux中启用连续TRIM,但这可能会对性能产生负面影响,因为正常文件操作会产生额外的开销。 温和的替代方法是...

weixin_39530269的博客 513

linux查看存储周期,在Linux服务器上,如何配置SSD存储的周期性TRIM

介绍由于SSD的结构是固态驱动器,如果连续使用会导致降低性能,TRIM命令允许操作系统将哪些数据块不再使用的信息传播到SSD,TRIM对设备的性能和整个寿命都有重要影响。一个更温和的选择是配置周期性TRIM,在几乎所有情况下,它都提供了相同的持续TRIM好处,而不影响性能。禁用连续TRIM你可能已经在设备安装时启用了连续TRIM,在启用定期TRIM之前,先看看我们当前的挂载选项是有意义的。通过使用...

weixin_39873456的博客 749

关于对新装Linux的固态硬盘(SSD)做优化配置

关于对新装Linux的固态硬盘(SSD)做优化配置 原文来自http://forum.suse.org.cn/viewtopic.php?f=2&t=100 由 比利海灵顿 » 周日 3月 31日, 2013年 9:39 pm初来乍到,写一篇小文交流一下日常应用心得,如有错漏疏忽之处,敬请指正! 去年可以说是SSD的普及年,目前128GB的SSD价格已经降到600到800的价位,

王继敏专栏 5311
上一篇: Android fragment源码全解析
下一篇: Android compiler source code and common errors and Solutions
Omni-Space
博客等级 码龄11年 2158粉丝 23原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值