-
about the online large number of rsync delete 100w small files solution. Two virtual machines, Each directory has 100w small files, the following are RM and rsync two ways to delete
-
RM Environment: CentOS release 5.8, memory 1G, processor single core, HDD 30G
650) this.width= 650; "Src=" Http://s1.51cto.com/wyfs02/M01/77/53/wKioL1ZmqS2zwSUIAAAro4qXc-E136.png "title=" rm Delete "alt=" Wkiol1zmqs2zwsuiaaaro4qxc-e136.png "/>
-
Using rsync removal, Environment: CentOS release 6.5, memory 500M, processor single core, HDD 30G
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/77/53/wKioL1ZmqCOT-3A_AAiz7A_NIe0156.jpg "title= "Rsync memory 500M" alt= "wkiol1zmqcot-3a_aaiz7a_nie0156.jpg"/>
-
Have you ever wondered if anyone who read the article online has tried it? and then look at the configuration of the two machines, Increased the memory of the rsync machine to 1G, Environment: CentOS release 6.5, memory 1G, processor single core, HDD 30G
650) this.width=650; "Src=" http://s5.51cto.com/ Wyfs02/m01/77/55/wkiom1zmqgattpqvaaaqy92xjku612.png "title=" 1G memory rsync attempt "alt=" wkiom1zmqgattpqvaaaqy92xjku612.png "/>
-
With the same configuration rsync is indeed much faster than RM, with a memory of 512 with rsync also no use.
This article is from the "Smoke Free Hand" blog, please be sure to keep this source http://lidefu.blog.51cto.com/3429777/1720841
Questions about rsync Deleting a large number of small files?