dnf提示磁盘碎片需要整理

Do modern computers still need the kind of routine defragmentation procedures that older computers called for? Read on to learn about fragmentation and what modern operating systems and file systems do to minimize performance impacts.

现代计算机是否仍需要旧计算机要求的那种常规的碎片整理程序? 继续阅读以了解碎片以及现代操作系统和文件系统如何最大程度地降低性能影响。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-drive grouping of Q&A web sites.

今天的问答环节由SuperUser提供,它是Stack Exchange的一个分支,它是Q&A网站的社区推动组织。

问题 (The Question)

SuperUser reader Simon Sheehan is curious about the state of defragmentation in modern drives:

超级用户读者Simon Sheehan对现代驱动器中的碎片整理状态感到好奇:

As a part of regular Windows maintenance, I defragment my hard drive. But why does the hard drive fragment on NTFS and FAT* systems? Apparently EXT* does not, why is this? Should I also be defragmenting my USB drives?

作为Windows常规维护的一部分,我对硬盘驱动器进行了碎片整理。 但是,为什么硬盘驱动器会在NTFS和FAT *系统上碎片化? 显然EXT *不是,这是为什么? 我还应该对USB驱动器进行碎片整理吗?

Let’s turn to some of the contributor answers to investigate Simon’s question.

让我们转向一些贡献者的答案来调查西蒙的问题。

答案 (The Answer)

SuperUser contributor Daniel R. Hicks fields the question:

超级用户贡献者Daniel R. Hicks提出了以下问题:

Fragmentation is not the issue it was 30 years ago. Back then you had hard drives that were scarcely faster than floppies, and processor memory sizes that were minuscule. Now you have very fast drives and large processor memories, and sometimes substantial buffering on the hard drive or in the controller. Plus sector sizes have gotten larger (or files are allocated in larger blocks) so that more data is inherently contiguous.

碎片化不是30年前的问题。 那时,您的硬盘几乎比软盘快,而处理器的内存却很小。 现在,您拥有非常快的驱动器和较大的处理器内存,有时在硬盘驱动器或控制器中还有大量缓冲。 加上扇区的大小已变大(或文件分配在更大的块中),因此更多的数据本来就是连续的。

Operating systems have gotten smarter as well. Whereas DOS 1.x would have fetched each sector from disk as it was referenced, a modern OS is able to see that you have a file open for sequential access and can reasonably predict that you’ll be fetching additional sectors once you’ve consumed those you have now. Thus it can “pre-fetch” the next several (dozen) sectors.

操作系统也变得更加智能。 尽管DOS 1.x会按引用从磁盘中获取每个扇区,但是现代的OS可以看到您已打开文件以进行顺序访问,并且可以合理地预测一旦使用完文件,您将获取其他扇区。那些你现在拥有的。 因此,它可以“预取”接下来的几个(六个)扇区。

And any more it’s often better to not have a file contiguous. On a (large) system where the file system is spread across multiple drives a file can actually be accessed faster if it is “spread” as well, since multiple disks can be seeking the file simultaneously.

而且,最好不要有连续的文件。 在文件系统分散在多个驱动器上的(大型)系统上,如果“分散”文件,则实际上可以更快地访问该文件,因为可以同时搜索多个磁盘。

I defragment every 2-3 years, whether my box needs it or not.

无论我的盒子是否需要整理,我都会每2-3年进行一次碎片整理。

[I’ll add that the important thing is not so much whether the data on the disk gets defragmented as whether the free space does. FAT was terrible at this — unless you defragged things kept getting worse and worse until there were no two contiguous blocks of free space. Most other schemes can coalesce free space and allocate pieces in a somewhat “smart” fashion so the fragmentation reaches a certain threshold and then stabilizes, rather than getting worse and worse.]

[我将补充一点,重要的不是磁盘数据是否进行碎片整理,而是可用空间是否进行碎片整理。 FAT在这方面很糟糕-除非您进行了碎片整理,否则事情会越来越糟,直到没有两个连续的可用空间块为止。 大多数其他方案可以合并自由空间并以某种“智能”方式分配碎片,以便碎片达到一定的阈值然后稳定下来,而不是越来越糟。

Journeyman Geek adds in the following information about Linux file systems:

Journeyman Geek添加了有关Linux文件系统的以下信息:

ALL file systems fragment. ext and other Linux file systems fragment less due to the way they’re designed – to quote Wikipedia regarding the Linux Network Administrators’ Guide:

所有文件系统片段。 由于ext和其他Linux文件系统的设计方式,它们的碎片较少-引用Wikipedia的《 Linux网络管理员指南》 :

Modern Linux filesystem(s) keep fragmentation at a minimum by keeping all blocks in a file close together, even if they can’t be stored in consecutive sectors. Some filesystems, like ext3, effectively allocate the free block that is nearest to other blocks in a file. Therefore it is not necessary to worry about fragmentation in a Linux system.

现代Linux文件系统通过将 文件中的 所有块保持 在一起而 将碎片最小化 ,即使它们不能存储在连续的扇区中也是如此。 某些文件系统(例如ext3)可以有效分配最接近文件中其他块的空闲块。 因此,不必担心Linux系统中的碎片。

I’d note though that ext4 has online defragmentation so eventually fragmentation IS an issue, even with Linux file systems.

我要指出的是,尽管ext4具有联机碎片整理功能,所以即使Linux文件系统也最终会出现碎片问题。

Windows file systems have their clusters placed wherever there’s space to put them, and defrag runs around and replaces them. With Linux, files are preferentially placed where there’s enough space.

Windows文件系统将它们的群集放置在有空间放置它们的位置,然后进行碎片整理并替换它们。 使用Linux,文件优先放置在有足够空间的地方。

I’d note though, Windows 7 has scheduled defragmentation runs, so it isn’t really necessary to run defrag manually.

不过,我要指出的是,Windows 7已安排了碎片整理运行,因此实际上没有必要手动运行碎片整理。

One element of the original question that wasn’t addressed is whether or not you should defragment your flash drive. Defragmentation is a very reader/write intensive process and should be avoided on solid-state storage devices like flash drives and Solid State Disks (SSDs). For more information on defragmentation, file systems, and SSDs, check out the following HTG articles:

原始问题中未解决的一个要素是是否应该对闪存驱动器进行碎片整理。 碎片整理是一个非常耗费读/写操作的过程,应避免在闪存驱动器和固态磁盘(SSD)等固态存储设备上进行碎片整理。 有关碎片整理,文件系统和SSD的更多信息,请查看以下HTG文章:

  • HTG Explains: Do You Really Need to Defrag Your PC?

    HTG解释:您真的需要整理PC碎片吗?

  • HTG Explains: What’s a Solid State Drive and What Do I Need to Know?

    HTG解释:什么是固态硬盘,我需要知道什么?

  • HTG Explains: Why Linux Doesn’t Need Defragmenting

    HTG解释:为什么Linux不需要进行碎片整理



Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不对。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

翻译自: https://www.howtogeek.com/130794/what-is-disk-fragmentation-and-do-i-still-need-to-defragment/

dnf提示磁盘碎片需要整理

dnf提示磁盘碎片需要整理_什么是磁盘碎片?我还需要进行碎片整理吗?相关推荐

  1. MySQL磁盘io瓶颈原因_为什么当磁盘IO成瓶颈之后数据库的性能急剧下降

    展开全部 为什么当磁盘IO成瓶颈之后, 数据库的性能不是达到饱和e68a84e8a2ad3231313335323631343130323136353331333433643733的平衡状态,而是急剧 ...

  2. win7磁盘清理_为什么要清理磁盘碎片,win7电脑怎么清理磁盘碎片

    小强一键重装系统 学习电脑技能,提升能力,优秀人士的聚集地. 一:为什么要清理磁盘碎片 一般来说,电脑用久了,就会产生很多磁盘碎片,大量的磁盘碎片对系统是有影响的.最常见的就是,是不是感觉变慢了,变卡 ...

  3. linux 磁盘碎片整理,Linux上没有磁盘碎片清理功能如何整理磁盘碎片

    我们都知道,Windows系统都有磁盘碎片清理功能,但是在Linux上却没有,那么Linux要如何清理磁盘碎片呢?下面小编就给大家介绍下Linux整理磁盘碎片的方法. windows系统的文件系统在保 ...

  4. 固态硬盘的计算机需要进行磁盘碎片整理吗,SSD固态硬盘需要碎片整理吗 固态盘切忌磁盘碎片整理...

    SSD固态硬盘需要碎片整理吗 固态盘切忌磁盘碎片整理.对于电脑的用户来说,磁盘碎片整理可以减少硬盘冗杂文件的堆积,加速了磁盘运转速度,从而提升了电脑整体的运行速度.但是SSD千万不能碎片整理,快来看看 ...

  5. 磁盘碎片整理在哪?Win7磁盘碎片整理图解

    在现今电脑系统上磁盘碎片整理功能已经随处可见了,磁盘碎片整理就是通过对磁盘的垃圾文件进行清理,对磁盘碎片文件进行搬运整理,以达到释放更多的磁盘空间和更快的磁盘相应速度.如果大家使用的是Win7系统,大 ...

  6. 【德国磁盘清理●V4.1.0 中文版】磁盘碎片整理工具

    德国磁盘清理 V4.1.0 中文版 [磁盘碎片整理工具] 授权方式:免费软件 界面语言:多国语言 软件大小:5.02MB 所属专题:系统工具 运行环境:WinAll,WinXP,Win7 推荐星级: ...

  7. mysql文件碎片整理_对数据库磁盘驱动器进行碎片整理 | Microsoft Docs

    对 SQL Server 数据库磁盘驱动器进行碎片整理 12/02/2020 本文内容 本文提供了有关 SQL Server 数据库驱动器的碎片整理的一些指南. 原始产品版本:   SQL Serve ...

  8. 想要专升本你不得不看的全干货_吐血整理_专升本_计算机文化基础(十 一)

    大家好,我是阿Ken.很快就已经整理到了第三章~ 对于专升本_计算机文化基础我已经在博客里整理了已经一半多了,希望能够在我整理后能够帮助其他的小伙伴,这月底整理完所有的专升本_计算机文化基础的笔记,感 ...

  9. 计算机三级网络技术打印,全国计算机等级考试三级网络技术历年真题(整理_打印版)...

    全国计算机等级考试三级网络技术历年真题(整理_打印版) 2010年3月计算机等级考试三级网络笔试试题 一.选择题(每小题1分,共60分) 下列各题A).B).C).D)四个选项中,只有一个选项是正确的 ...

最新文章

  1. getIntExtra() 获取传递过来的int 值总是默认值
  2. es6常用语法和特性
  3. Linux文件系统2---VFS的四个主要对象
  4. java和python的比较-Python和Java就业前景对比
  5. ComboBox.TextChanged等事件的注意问题
  6. 手机上可以学python吗_Python爬虫也能用手机进行抓包?没错!这个技巧我只告诉你...
  7. flask第二十四篇——模板【6】自定义过滤器
  8. 【JUC】JDK1.8源码分析之ArrayBlockingQueue(三)
  9. BIOS和Bootloader的区别
  10. delphi控件切图界面闪烁_小程序设计,不得不说的7个坑 (附资源:新版小程序 UI 控件,Sketch 版)...
  11. linux装机量,在没有盗版的世界Linux桌面装机量占比40_-泡泡网
  12. nodejs: mkdirs 递归创建目录
  13. 东北大学计算机分数线2017,东北大学2017年艺术类专业录取分数线
  14. 腾讯离职领导的建议:如果可以,去做大数据,不要做报表
  15. scrapy报错:ModuleNotFoundError
  16. 黑客工具软件大全100套
  17. java rfc接口_java调用sap的RFC接口
  18. python 全角字符和半角字符切换
  19. 佩尔方程(超详细推导+例题讲解) 每日一遍,算法再见!
  20. Python项目--批量下载小姐姐壁纸

热门文章

  1. python tkinter如何隐藏控件
  2. JavaScript 判断浏览器类型及32位64位
  3. 知云翻译不能翻译或者只能翻译半句解决方案
  4. 基于FPGA的图像处理之幂律(伽马校正)变化
  5. 笔记—集成学习—Boosting
  6. javascript组合模式创建对象
  7. glibc 知:手册84:附录E:平台特定设施
  8. 手把手教你设计短信验证码
  9. c++ 快排优化(三数取中法)
  10. STM32驱动BH1750模块