{"id":5,"date":"2009-11-10T00:02:27","date_gmt":"2009-11-09T16:02:27","guid":{"rendered":"http:\/\/my.no-ip.info\/carlos\/blog\/?p=5"},"modified":"2014-03-12T00:31:48","modified_gmt":"2014-03-11T16:31:48","slug":"atom-330","status":"publish","type":"post","link":"https:\/\/carlos.aboutmy.info\/blog\/?p=5","title":{"rendered":"Atom 330"},"content":{"rendered":"<p><a href=\"http:\/\/ark.intel.com\/Product.aspx?id=35641\" target=\"_blank\">Intel Atom 330<\/a> \u771f\u7684\u662f\u5049\u5927\u767c\u660e\uff01<\/p>\n<p>\u5148\u8b1b\u4f62\u7684 SPEC: Dual Core, 64 bits, 1M Cache, 1.60 GHz, 533 MHz FSB<\/p>\n<p>\u6700\u91cd\u8981\u662f\u7701\u96fb\uff01Max TDP 8W<\/p>\n<p>\u4e00\u5411\u90fd\u60f3\u8d77\u8fd4\u90e8\u79c1\u5bb6 server \u9577\u958b\uff0c\u4f46\u53c8\u6015\u7528\u96fb\u91cf\u9ad8\uff0cAtom 330 \u7684\u51fa\u73fe\u5c31\u5efa\u6c7a\u4e86\u554f\u984c<\/p>\n<p>\u7d30\u5c0f\u7684\u6a5f\u7bb1\uff0c\u914d\u4e0a notebook harddisk\uff0c\u53c8\u975c\u53c8\u7701\u96fb\uff0c\u914d\u4e0a 4GB RAM\uff0c\u88dd\u500b Linux\uff0c\u4e00\u500b App Server \u5c31\u6210\u4e86<\/p>\n<p>\u597d\u958b\u5fc3\uff0c\u81ea\u5df1\u6709\u4e00\u90e8\u9577\u958b\u5c6c\u65bc\u81ea\u5df1\u7684 server<\/p>\n<p>Linux \u6211\u9078 Fedora\uff0c\u672c\u4f86\u60f3\u7528 CentOS\uff0c\u4f46\u53c8\u8caa\u65b9\u4fbf\uff0cUbuntu Desktop \u5c31\u597d\uff0c\u4f46 Server \u5c31\u5514\u5c31\u624b\uff0c\u7fd2\u6163 d config \u6a94\u653e\u7684\u4f4d\u7f6e\u53c8\u5514\u540c\uff0cpackage \u540d\u53c8\u540c fedora \u7684\u5514\u540c<\/p>\n<p>Paritioning \u9996\u6b21\u7528 LVM\uff0c\u9664 \/boot \u5916\uff0c\/ \u548c \/home \u5c31\u5728 LVM \u4e0a\uff0c\/home \u62c6\u51fa\u4f86\u662f\u653e\u4fbf backup\uff0c\u6211\u6703\u628a data \u653e\u6652\u5728 \/home \u4e0a\uff0c\u5305\u62ec apache htdocs \/ conf\uff0c mysql database\uff0ccvs \u7b49\u3002<\/p>\n<p>\/boot (72MB) \u7528 ext2 \u53cd\u6b63 fedora \u7684 grub \u5514\u652f\u63f4 \/boot \u7528 ext4\uff0c\/boot \u7528 ext2 \u53c8\u7701\u4f4d\u53c8\u5feb\uff0c\u5e73\u6642\u7121\u4e5c\u8b80\u5beb\uff0c\u7121 transcation-safe \u90fd ok<\/p>\n<p>\u5176\u4ed6 parition \u5c31\u7528 ext4\uff0c\u56e0\u70ba ext4 \u771f\u7684\u5feb ext3 \u597d\u591a<\/p>\n<p>Application Software \u6211\u7528 source \u5b89\u88dd\uff0c\u5514\u7528 RPM \u7684\u539f\u56e0\u662f\u56e0\u70ba\u53ef\u4ee5\u81ea\u5df1\u9078\u88ab\u672c\uff0ccompile \u662f\u53c8\u53ef\u7528 -O3 and -march=native \u4f86\u505a\u512a\u5316\uff0c\u9700\u8981\u7684\u529f\u80fd\u53c8\u53ef compile \u57cb\u5165\u53bb\u6bd4 load module \u5feb<\/p>\n<p>\u7528 source \u5b89 apache \/ MySQL \/ php \u90fd\u5514\u96e3\uff0c\u5b98\u65b9\u7db2\u7ad9\u90fd\u53ef\u4ee5\u627e\u4e0d\u5c11\u5efa\u8b70<\/p>\n<p>\u5c24\u5176 MySQL <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/installing-source.html\" target=\"_blank\">\u597d\u8a73\u7d30<\/a>\uff0c\u7576\u4e2d\u63d0\u5230\u5927\u5bb6\u7528 source \u5b89\u88dd\uff0c \u8981\u5728 CXXFLAGS \u52a0  -felide-constructors -fno-exceptions -fno-rtti\uff0c\u5982\u679c\u5514\u4fc2\uff0ccompile \u51fa\u4f86\u7684 binary \u6703\u51fa exception randomly\uff01\u53e6\u5916 &#8211;with-mysqld-ldflags=-all-static\uff0c\u5c31\u6703\u628a MySQL Server compile \u6210 static\uff0c<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/compile-and-link-options.html\" target=\"_blank\">\u5feb 13% \u5de6\u53f3<\/a>\uff0cenable-assembler \u5c31\u6703\u7528\u4f4e\u968e\u8f03\u5feb\u7684 assemble \u4f86\u8655\u7406 String<\/p>\n<p>\u4ee5\u4e0b\u662f\u6211 compile MySQL \u6642\u7684\u53c3\u6578\uff1a<br \/>\n<code><br \/>\nCC=\"gcc\" CXX=\"gcc\" \\<br \/>\nCFLAGS=\"-O3 -march=native\"<br \/>\nCXXFLAGS=\"-O3 -march=native -felide-constructors -fno-exceptions -fno-rtti\" .\/configure \\<br \/>\n--prefix=\/usr\/local\/mysql \\<br \/>\n--with-charset=utf8 \\<br \/>\n--with-collation=utf8_general_ci \\<br \/>\n--enable-assembler \\<br \/>\n--with-mysqld-ldflags=-all-static<br \/>\n<\/code><br \/>\n\u6709\u6a5f\u6703\u518d\u540c\u5927\u5bb6\u5206\u4eab<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Intel Atom 330 \u771f\u7684\u662f\u5049\u5927\u767c\u660e\uff01 \u5148\u8b1b\u4f62\u7684 SPEC: Dual Core, 64 bits, 1M Cache, 1.60 GHz, 533 MHz FSB \u6700\u91cd\u8981\u662f\u7701\u96fb\uff01Max TDP 8W \u4e00\u5411\u90fd\u60f3\u8d77\u8fd4\u90e8\u79c1\u5bb6 server \u9577\u958b\uff0c\u4f46\u53c8\u6015\u7528\u96fb\u91cf\u9ad8\uff0cAtom 330 \u7684\u51fa\u73fe\u5c31\u5efa\u6c7a\u4e86\u554f\u984c \u7d30\u5c0f\u7684\u6a5f\u7bb1\uff0c\u914d\u4e0a notebook harddisk\uff0c\u53c8\u975c\u53c8\u7701\u96fb\uff0c\u914d\u4e0a 4GB RAM\uff0c\u88dd\u500b Linux\uff0c\u4e00\u500b App Server \u5c31\u6210\u4e86 \u597d\u958b\u5fc3\uff0c\u81ea\u5df1\u6709\u4e00\u90e8\u9577\u958b\u5c6c\u65bc\u81ea\u5df1\u7684 server Linux \u6211\u9078 Fedora\uff0c\u672c\u4f86\u60f3\u7528 CentOS\uff0c\u4f46\u53c8\u8caa\u65b9\u4fbf\uff0cUbuntu Desktop \u5c31\u597d\uff0c\u4f46 Server \u5c31\u5514\u5c31\u624b\uff0c\u7fd2\u6163 d config \u6a94\u653e\u7684\u4f4d\u7f6e\u53c8\u5514\u540c\uff0cpackage \u540d\u53c8\u540c fedora \u7684\u5514\u540c Paritioning \u9996\u6b21\u7528 LVM\uff0c\u9664 \/boot \u5916\uff0c\/\u2026 <span class=\"read-more\"><a href=\"https:\/\/carlos.aboutmy.info\/blog\/?p=5\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":0,"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"wp:attachment":[{"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carlos.aboutmy.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}