{"id":156,"date":"2013-12-03T18:54:31","date_gmt":"2013-12-03T10:54:31","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=156"},"modified":"2015-01-18T19:38:44","modified_gmt":"2015-01-18T11:38:44","slug":"%e5%9b%ba%e6%80%81%e7%a1%ac%e7%9b%98trim%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/156.html","title":{"rendered":"\u56fa\u6001\u786c\u76d8TRIM\u529f\u80fd"},"content":{"rendered":"<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 24px; color: #333333; font-family: arial; white-space: normal;\"><span style=\"font-family: SimSun;\">\u3000\u3000\u539f\u672c\u5728\u673a\u68b0\u786c\u76d8\u4e0a\uff0c\u5199\u5165\u6570\u636e\u65f6\uff0cWindows\u4f1a\u901a\u77e5\u786c\u76d8\u5148\u5c06\u4ee5\u524d\u7684\u64e6\u9664\uff0c\u518d\u5c06\u65b0\u7684\u6570\u636e\u5199\u5165\u5230\u78c1\u76d8\u4e2d\u3002\u800c\u5728\u5220\u9664\u6570\u636e\u65f6\uff0cWindows\u53ea\u4f1a\u5728\u6b64\u5904\u505a\u4e2a\u6807\u8bb0\uff0c\u8bf4\u660e\u8fd9\u91cc\u5e94\u8be5\u662f\u6ca1\u6709\u4e1c\u897f\u4e86\uff0c\u7b49\u5230\u771f\u6b63\u8981\u5199\u5165\u6570\u636e\u65f6\u518d\u6765\u771f\u6b63\u5220\u9664\uff0c\u5e76\u4e14\u505a\u6807\u8bb0\u8fd9\u4e2a\u52a8\u4f5c\u4f1a\u4fdd\u7559\u5728\u78c1\u76d8\u7f13\u5b58\u4e2d\uff0c\u7b49\u5230\u78c1\u76d8\u7a7a\u95f2\u65f6\u518d\u6267\u884c\u3002<br \/>\n\u8fd9\u6837\u4e00\u6765\uff0c\u78c1\u76d8\u9700\u8981\u66f4\u591a\u7684\u65f6\u95f4\u6765\u6267\u884c\u4ee5\u4e0a\u64cd\u4f5c\uff0c\u901f\u5ea6\u5f53\u7136\u4f1a\u6162\u4e0b\u6765\u3002<br \/>\n\u800c\u5f53Windows\u8bc6\u522b\u5230SSD\u5e76\u786e\u8ba4SSD\u652f\u6301Trim\u540e\uff0c\u5728\u5220\u9664\u6570\u636e\u65f6\uff0c\u4f1a\u4e0d\u5411\u786c\u76d8\u901a\u77e5\u5220\u9664\u6307\u4ee4\uff0c\u53ea\u4f7f\u7528Volume Bitmap\u6765\u8bb0\u4f4f\u8fd9\u91cc\u7684\u6570\u636e\u5df2\u7ecf\u5220\u9664\u3002Volume Bitmap\u53ea\u662f\u4e00\u4e2a\u78c1\u76d8\u5feb\u7167\uff0c\u5176\u5efa\u7acb\u901f\u5ea6\u6bd4\u76f4\u63a5\u8bfb\u5199\u786c\u76d8\u53bb\u6807\u8bb0\u5220\u9664\u533a\u57df\u8981\u5feb\u5f97\u591a\u3002\u8fd9\u4e00\u6b65\u5c31\u5df2\u7ecf\u7701\u4e0b\u4e00\u5927\u7b14\u65f6\u95f4\u4e86\u3002\u7136\u540e\u518d\u662f\u5199\u5165\u6570\u636e\u7684\u65f6\u5019\uff0c\u7531\u4e8eNAND\u95ea\u5b58\u4fdd\u5b58\u6570\u636e\u662f\u7eaf\u7cb9\u7684\u6570\u5b57\u5f62\u5f0f\uff0c\u56e0\u6b64\u53ef\u4ee5\u76f4\u63a5\u6839\u636eVolume Bitmap\u7684\u60c5\u51b5\uff0c\u5411\u5feb\u7167\u4e2d\u5df2\u5220\u9664\u7684\u533a\u5757\u5199\u5165\u65b0\u7684\u6570\u636e\uff0c\u800c\u4e0d\u7528\u82b1\u65f6\u95f4\u53bb\u64e6\u9664\u539f\u672c\u7684\u6570\u636e\u3002<br \/>\n\u4ee5\u4e0a\u5c31\u662fTrim\u7684\u539f\u7406\u4ee5\u53ca\u771f\u6b63\u4f5c\u7528\u3002<br \/>\n<span style=\"color: #ff0000;\">\u6ce8\u610f\uff1a\u5982\u679cSSD\u7ec4RAID0\u540e\uff0c\u5c06\u5931\u53bbTrim\u529f\u80fd<\/span><br \/>\n<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 24px; color: #333333; font-family: arial; white-space: normal;\"><span style=\"font-family: SimSun;\">================================================================<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 24px; color: #333333; font-family: arial; white-space: normal;\"><span style=\"font-family: SimSun;\"><span style=\"color: #ff0000;\"><strong>\u8fd9\u4e2a\u529f\u80fd\u4e00\u4e2a\u5927\u7684\u7279\u70b9\u5c31\u662f\uff1a<\/strong><\/span><strong>\u56de\u6536\u95f2\u7f6e\u7684SSD\u6570\u636e\u5757<\/strong><br \/>\nObjective Analysis\u7684SSD\u5206\u6790\u5e08Jim Handy\u8fd9\u6837\u5f62\u5bb9\u5230\uff08Objective Analysis\u662f\u4e00\u5bb6\u534a\u5bfc\u4f53\u5e02\u573a\u7814\u7a76\u516c\u53f8\uff09\uff1a<br \/>\nTRIM\u6307\u4ee4\u8ba9\u64cd\u4f5c\u7cfb\u7edf\u53ef\u4ee5\u544a\u8bc9\u56fa\u6001\u9a71\u52a8\u5668\u54ea\u4e9b\u6570\u636e\u5757\u662f\u4e0d\u4f1a\u518d\u4f7f\u7528\u7684\uff1b\u5426\u5219SSD\u63a7\u5236\u5668\u4e0d\u77e5\u9053\u53ef\u4ee5\u56de\u6536\u8fd9\u4e9b\u95f2\u7f6e\u6570\u636e\u5757\u3002<br \/>\nHandy\u8868\u793a\uff1a\"TRIM\u5bf9SSD\u662f\u4e2a\u798f\u97f3\u3002\"<br \/>\n<strong>\u4ed6\u8ba4\u4e3aTRIM\u7684\u7b80\u7ea6\u6027\u5c06\u6781\u5927\u51cf\u5c11\u5199\u5165\u8d1f\u62c5\uff0c\u540c\u65f6\u5141\u8bb8SSD\u66f4\u597d\u5730\u5728\u540e\u53f0\u9884\u5220\u9664\u95f2\u7f6e\u7684\u6570\u636e\u5757\uff0c\u4ee5\u4fbf\u8ba9\u8fd9\u4e9b\u6570\u636e\u5757\u53ef\u4ee5\u66f4\u5feb\u5730\u9884\u5907\u65b0\u7684\u5199\u5165\u3002<\/strong><br \/>\nSandForce\u9996\u5e2d\u6280\u672f\u5b98Radoslav Danilak\u8868\u793a\uff0c\u503c\u5f97\u6ce8\u610f\u7684\u662fOS\uff08\u64cd\u4f5c\u7cfb\u7edf\uff09\u7684\u89d2\u8272\u3002<br \/>\nDanilak\u8868\u793a\uff1a\"<strong>SSD\u77e5\u9053\u54ea\u4e9b\u8fc7\u671f\u6570\u636e\u53ef\u4ee5\u5220\u9664\u548c\u56de\u6536\uff0c\u4f46\u662f\u5b83\u4e0d\u77e5\u9053\u64cd\u4f5c\u7cfb\u7edf\u5df2\u7ecf\u51b3\u5b9a\u5220\u9664\u54ea\u4e9b\u6570\u636e\uff0c\u76f4\u5230\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u4e86\u65b0\u7684\u4fe1\u606f\u800c\u91cd\u65b0\u4f7f\u7528\u903b\u8f91\u5757\u5730\u5740\uff08LBA\uff09<\/strong>\u3002\"<br \/>\nDanilak\u8868\u793a\uff1a\"TRIM\u8fd9\u79cd\u6307\u4ee4\u7684\u4f18\u70b9\u4fbf\u662f\u5b83\u53ef\u4ee5\u540c\u65f6\u900f\u8fc7\u8fc7\u671f\u6570\u636e\u548cOS\u5220\u9664\u7684\u6570\u636e\u6765\u8bbf\u95eeLBA\uff0c\u4ece\u800c\u63a8\u52a8\u6027\u80fd\u7684\u6539\u5584\u3002TRIM\u552f\u4e00\u7684\u7f3a\u70b9\u4fbf\u662f\u5982\u679c\u5b83\u5728SSD\u56fa\u4ef6\u4e2d\u6ca1\u6709\u5f97\u5230\u5f88\u597d\u7684\u5b9e\u65bd\uff0c\u90a3\u4e48\u5b83\u7684\u64cd\u4f5c\u6709\u53ef\u80fd\u4f1a\u963b\u788d\u6b63\u5e38\u7684\u9a71\u52a8\u5668\u64cd\u4f5c\u3002\"<br \/>\nSTEC\u8d1f\u8d23SSD\u6280\u672f\u8425\u9500\u7684\u9ad8\u7ea7\u7ecf\u7406Scott Shadley\u8ba4\u4e3a\uff0c\u5982\u679cTRIM\u53ef\u4ee5\u8ba9SSD\u5b8c\u5168\u5ffd\u7565\u4e00\u4e2aLBA\u8303\u56f4\u7684\u6570\u636e\uff0c\u90a3\u4e48\u8fd9\u662f\u4e00\u4ef6\u597d\u4e8b\uff0c\u4f46\u662f\u8fd9\u79cd\u7ed3\u679c\u4e5f\u6709\u53ef\u80fd\u6ca1\u6709\u4ec0\u4e48\u7528\u5904\u3002<br \/>\n\u5bf9Shadley\u6765\u8bf4\uff0c\u771f\u6b63\u7684\u95ee\u9898\u662f\uff0c\u5982\u679c\u635f\u8017\u5e73\u8861\u6280\u672f\uff08wear leveling \uff09\u5728\u8fd0\u4f5c\uff0c\u90a3\u4e48LBA\u8303\u56f4\u5e76\u4e0d\u4e00\u5b9a\u53cd\u6620SSD\u95ea\u5b58\u7684\u7269\u7406\u5730\u5740\u5e8f\u5217\u3002<br \/>\nShadley\u8868\u793a\uff1a\"\u8fd9\u610f\u5473\u7740SSD\u8fd8\u662f\u8981\u9762\u4e34\u5982\u4f55\u5c06\u6570\u636e\u8fc1\u79fb\u5230\u8bbe\u5907\u5185\u90e8\u771f\u6b63\u7a7a\u4f59\u7a7a\u95f4\u7684\u95ee\u9898\u3002\"<br \/>\nShadley\u8868\u793a\uff1a\"\u5982\u679c\u90a3\u4e2aLBA\u8303\u56f4\u53cd\u6620\u7684\u662f\u6574\u4e2a\u4ecb\u8d28\u4e0a\u7684\u9875\u9762\uff0c\u90a3\u4e48\u5b9e\u9645\u4e0a\u5c31\u6ca1\u6709\u7a7a\u4f59\u7684\u5757\u6216\u6700\u5c0f\u7684\u53ef\u64e6\u5199\u7684\u5355\u4f4d\u3002\u8fd9\u4f1a\u5e26\u6765\u66f4\u52a0\u590d\u6742\u7684\u635f\u8017\u5e73\u8861\u8fc7\u7a0b\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u52a0\u91cd\u5199\u5165\u8d1f\u62c5\u3002TRIM\u53ea\u9002\u5408\u4e8e\u90a3\u4e9b\u635f\u8017\u5e73\u8861\u8fc7\u7a0b\u5b9e\u9645\u4e0a\u5e76\u672a\u6709\u6548\u8282\u7ea6\u6216\u5ef6\u957f\u9a71\u52a8\u5668\u6027\u80fd\u6216\u5bff\u547d\u7684SSD\u3002\"<br \/>\n===========================================================================<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 24px; color: #333333; font-family: arial; white-space: normal;\"><span style=\"font-family: SimSun;\"><span style=\"font-family: Arial, Helvetica, SimSun, san-serif; background-color: #f5f8fd;\">\u4e0b\u56fe\uff1a\u5f00\u5173Trim\u540e\u7684\u8bfb\u53d6\u901f\u5ea6\u6d4b\u8bc4<br \/>\n<img decoding=\"async\" style=\"border: 1px solid #000000; margin: 20px 0px; display: block; max-width: 500px;\" src=\"https:\/\/www.datarelab.com\/blog\/content\/uploadfile\/201312\/725912a1cb7f4bf6dc604492d43dc92020131203105807.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u5927\u56fe\" \/><br \/>\n\u5f00\u5173Trim\u540e\u7684\u8bfb\u53d6\u901f\u5ea6\u6d4b\u8bc4<br \/>\n\u4e0b\u56fe\uff1a\u5f00\u5173Trim\u540e\u7684\u5199\u5165\u901f\u5ea6\u5bf9\u6bd4<br \/>\n<img decoding=\"async\" style=\"border: 1px solid #000000; margin: 20px 0px; display: block; max-width: 500px;\" src=\"https:\/\/www.datarelab.com\/blog\/content\/uploadfile\/201312\/f44936df5444bfbb2097dd63cb5305cd20131203105807.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u5927\u56fe\" \/><br \/>\n<\/span><\/span><br \/>\n<img decoding=\"async\" style=\"border: 1px solid #000000; margin: 20px 0px; display: block; max-width: 500px;\" src=\"https:\/\/www.datarelab.com\/blog\/content\/uploadfile\/201312\/725912a1cb7f4bf6dc604492d43dc92020131203105807.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u5927\u56fe\" \/><\/p>\n<p><img decoding=\"async\" style=\"border: 1px solid #000000; margin: 20px 0px; display: block; max-width: 500px;\" src=\"https:\/\/www.datarelab.com\/blog\/content\/uploadfile\/201312\/f44936df5444bfbb2097dd63cb5305cd20131203105807.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u5927\u56fe\" \/><br \/>\n\u5f00\u5173Trim\u540e\u7684\u5199\u5165\u901f\u5ea6\u5bf9\u6bd4<br \/>\n\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5047\u5982\u4e00\u4e2a128KB\u5927\u5c0f\u7684\u533a\u5757\u5185\u5b58\u653e\u7740\u4e00\u4e2a128KB\u7684\u6587\u4ef6\uff0c\u5982\u679c\u6587\u4ef6\u88ab\u5220\u9664\u5e76\u6267\u884cTrim\u64cd\u4f5c\uff0c\u56fa\u6001\u786c\u76d8\u5c31\u53ef\u4ee5\u907f\u514d\u628a\u8fd9\u4e2a\u533a\u5757\u4e2d\u7684\u5b57\u8282\u4e0e\u5bf9\u6b64\u533a\u5757\u7684\u540e\u7eed\u5199\u5165\u6240\u9700\u7684\u5176\u5b83\u5b57\u8282\u76f8\u6df7\u5408\uff0c\u8fd9\u80fd\u5927\u5927\u51cf\u8f7b\u56fa\u6001\u786c\u76d8\u7684\u201c\u78e8\u635f\u201d\u3002<br \/>\n\u5728Windows 7\u91cc\uff0cTrim\u8bf7\u6c42\u4e0d\u4ec5\u9650\u4e8e\u5220\u9664\u64cd\u4f5c\uff0c\u4e5f\u4e8e\u5206\u533a\u548c\u5377\u7ea7\u522b\u547d\u4ee4\u3001\u6587\u4ef6\u7cfb\u7edf\u547d\u4ee4\u3001\u7cfb\u7edf\u8fd8\u539f\u529f\u80fd\u5b8c\u5168\u6574\u5408\u3002<br \/>\nwin7\u4e0bTrim\u542f\u7528\u7684\u9a8c\u8bc1\u65b9\u6cd5<br \/>\n\u5176\u5b9eWindows 7\u9ed8\u8ba4\u72b6\u6001\u4e0bTrim\u6307\u4ee4\u662f\u5f00\u542f\u7684\uff0c\u5982\u679c\u60f3\u67e5\u8be2\u76ee\u524d\u7684Trim\u6307\u4ee4\u72b6\u6001\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u7ba1\u7406\u5458\u6743\u9650\u4e0b\uff0c\u8fdb\u5165\u547d\u4ee4\u63d0\u793a\u7b26\u754c\u9762\uff0c\u8f93\u5165\u201cfsutil behavior QUERY DisableDeleteNotify\u201d\uff0c\u4e4b\u540e\u4f1a\u5f97\u5230\u76f8\u5173\u67e5\u8be2\u72b6\u6001\u7684\u53cd\u9988\u3002\u5728\u8fd9\u91cc\uff0c\u63d0\u793a\u4e3a\u201cDisableDeleteNotify = 0\u201d\u5373Trim\u6307\u4ee4\u5df2\u542f\u7528\uff1b\u63d0\u793a\u4e3a\u201cDisableDeleteNotify = 1\u201d\u5373\u4e3aTrim\u6307\u4ee4\u672a\u542f\u7528\u3002<br \/>\n\u5e76\u4e0d\u662f\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9bTrim\u6307\u4ee4\u652f\u6301\uff0c\u6240\u6709SSD\u90fd\u80fd\u4eab\u53d7\u5230Trim\u6280\u672f\u6240\u5e26\u6765\u7684\u597d\u5904\uff0c\u8fd9\u8fd8\u9700\u8981\u56fa\u6001\u786c\u76d8\u7684\u56fa\u4ef6\u652f\u6301\u624d\u80fd\u5b9e\u73b0\u3002\u4e00\u4e9b\u4e3b\u8981\u7684\u56fa\u6001\u786c\u76d8\u4e3b\u63a7\u82af\u7247\u5382\u5546\u5df2\u7ecf\u63d0\u4f9b\u4e86\u652f\u6301Trim\u7684\u56fa\u4ef6(\u4f8b\u5982\u82f1\u7279\u5c14\"X25-M G2\")\uff0c\u4e0d\u8fc7\u4e5f\u6709\u5382\u5546\u5f00\u53d1\u51fa\u4e0d\u4f9d\u8d56\u64cd\u4f5c\u7cfb\u7edf\u7684\u5783\u573e\u56de\u6536\u6280\u672f\uff0c\u901a\u8fc7\u56de\u6536\u4e0d\u518d\u4f7f\u7528\u7684\u95ea\u5b58\u533a\u5757\u52a0\u5165\u8d1f\u8f7d\u5e73\u8861\u7b97\u6cd5\uff0c\u9632\u6b62\u56fa\u6001\u786c\u76d8\u5728\u957f\u671f\u4f7f\u7528\u540e\u901f\u5ea6\u4e0b\u6ed1\uff0c\u5e76\u5ef6\u957f\u95ea\u5b58\u4f7f\u7528\u5bff\u547d\uff0c\u8fc7\u7a0b\u5b8c\u5168\u5728\u56fa\u6001\u786c\u76d8\u5185\u90e8\u5b8c\u6210\u3002<span style=\"font-family: SimSun;\"><span style=\"font-family: Arial, Helvetica, SimSun, san-serif; background-color: #f5f8fd;\"><br \/>\n<\/span><br \/>\n======================================================================<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; line-height: 24px; color: #333333; font-family: arial; white-space: normal;\"><span style=\"font-family: SimSun;\">\u00a0 \u00a0 \u6709\u5173\u56fa\u6001\u786c\u76d8\uff08SSD\uff09\u8fd8\u6709\u5f88\u591a\u5176\u4ed6\u7684\u76f8\u5173\u95ee\u9898\uff0c\u6bd5\u7adf\u76ee\u524d\u6765\u8bf4\u56fa\u6001\u786c\u76d8\u4e0d\u592a\u5bb9\u6613\u666e\u53ca\u5e94\u7528\uff0c\u53ea\u80fd\u9002\u5408\u7528\u6765\u505a\u4e00\u4e9b\u9ad8\u901f\u7cfb\u7edf\u542f\u52a8\u76d8\uff0c\u6216\u8005\u4e13\u95e8\u7684\u8f6f\u4ef6\u5b89\u88c5\u76d8\u6765\u8fbe\u5230\u9ad8\u901f\u7684\u6548\u679c\uff0c\u5e94\u7528\u4e0a\u4ecd\u7136\u5b58\u5728\u5f88\u591a\u7684\u7591\u95ee\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u539f\u672c\u5728\u673a\u68b0\u786c\u76d8\u4e0a\uff0c\u5199\u5165\u6570\u636e\u65f6\uff0cWindows\u4f1a\u901a\u77e5\u786c\u76d8\u5148\u5c06\u4ee5\u524d\u7684\u64e6\u9664\uff0c\u518d\u5c06\u65b0\u7684\u6570\u636e\u5199\u5165\u5230\u78c1\u76d8\u4e2d\u3002\u800c\u5728\u5220\u9664\u6570 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[53],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-Technical_literature","tag-53"],"views":1582,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}