Linux的文件预读readahead,指Linux系统内核将指定文件的某区域预读进页缓存起来,便于接下来对该区域进行读取时,不会因缺页(page fault)而阻塞.因为从内存读取比从磁盘读取要快很多.预读可以有效的减少磁盘的寻道次数和应用程序的I/O等待时间,是改进磁盘读I/O性能的重要优化手段之一. 维基百科上关于readhead的介绍资料: readahead is a system call of the Linux kernel that loads a file's content
du -ah --max-depth=1 这个是我想要的结果 a显示目录占用的磁盘空间大小,还要显示其下目录和文件占用磁盘空间的大小但是由于用了--max-depth选项,表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度. du命令用来查看目录或文件所占用磁盘空间的大小.常用选项组合为:du -sh 一.du的功能:`du` reports the amount of disk space used by the specifi
一.du的功能:`du` reports the amount of disk space used by the specified files and for each subdirectory (of directory arguments). with no arguments,`du` reports the disk space for the current directory. 很明显,与df不同,它用来查看文件或目录所占用的磁盘空间的大小. 二.du常用的选项: -h:以人类可
Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A 由于数据库太大,即数据库中的表非常多,所以如果预读数据库信息,将非常慢,所以就卡住了.解决这种情况的的办法: 进入数据库是,加上参数-A ----->mysql -hHostName -uUserName -pPassord -PPort