Friday, June 04, 2010

Samsung SSD Maintenance Explained (in Thai)

ผมได้รับเมล์สอบถามเรื่อง SSD จากคุณ Bomb เห็นว่าจะเป็นประโยชน์กับชาว IT โดยทั่วไป จึงอยากเอามาโพสไว้ใน blog ครับ

From: ...
Sent: Friday, June 04, 2010 5:09 AM
To: thitiv[at]gmail.com
Subject: เรียนถามเกี่ยวกับ SSD

เรียน K.thitiv

พอดี Notebook ผมของ Dell ADAMO มันใช้ SSD รุ่นเก่ารหัส SAMSUNG PB22-JS3 TM 128GB ซึ่งใช้ CrystalDiskinfo ดูแล้ว

Supported แค่ S.M.R.T, 48bits LBA, AAM,NCQ Firmware VBM19D1Q ซึ่งไม่ไม่มี TRIM แต่ไม่รู้ support GC ไหม

หลังจากอ่าน
http://sn140w.snt140.mail.live.com/default.aspx?wa=wsignin1.0

เลยอยากจะสอบถามดังนี้ครับ

1. ผมเข้าใจว่า SSD ของ SAMSUNG update FW เองไม่ได้ใช่ไหมครับ
2. มีวิธล้าง SSD ไหมครับให้ปลอดภัย ใน Bios ของ Dell ไม่สามารถทำได้ จึงอยากทราบว่ามีวิธีไหนทำได้บ้าง Search ใน KM ของ Dell ไม่เจอเลยครับ eng ผมก็ไม่เก่งมาก พอถูๆไถๆ

เห็นฝรั่งบอกให้ใช้ Diskkeeper เอา แต่เพื่อนทำแล้วมันไปเกิดเลย คือ SSD หยุดทำงานไปเลยต้องส่งแคลม

ขอบคุณที่สละเวลาอ่านครับ

คำตอบเป็นดังนี้ครับ

สวัสดีครับ คุณ ...

SSD ทุกอันมีระบบ GC อยู่แล้วครับ แต่ว่ามันจะทำงานต่อเมื่อมันอยู่ในสถานะ idle ครับ (เช่นเราเปิดคอมทิ้งไว้นานๆ โดยไม่ให้มีการเขียนหรืออ่านข้อมูลจาก SSD เลย)

สำหรับคำถามขอตอบดังนี้นะครับ

1. SSD ของ Samsung แท้ๆ จริงๆ update firmware ได้ครับ.

Samsung ผลิต SSD ขายเอง และเป็น OEM ให้กับผู้ผลิต notebook หลายๆ ค่ายเช่น Lenovo ThinkPad และ Dell โดยที่ SSD สำหรับแต่ละค่ายจะมีรหัสที่ฝังอยู่ข้างใน hardware ไม่เหมือนกัน. Samsung มีการแจกจ่ายตัว update firmware ที่มี TRIM ออกมาให้ end-user update ได้เอง (ดูตัวอย่างที่ http://bit.ly/bcoKqA ครับ) โดยผู้ผลิต notebook แต่ละรายจะไป customize firmware เหล่านั้นเพื่อแจกจ่ายให้กับลูกค้าของตัวเอง และ firmware พวกนี้ไม่สามารถใช้ข้ามยี่ห้อกันได้ เช่น firmware สำหรับ SSD ที่ผลิตโดย Samsung สำหรับขายปลีกเอง ไม่สามารถเอาไปใช้กับ SSD ที่ Samsung ผลิตให้ Lenovo หรือ Dell ได้. ตัวอย่างของ firmware สำหรับ Samsung SSD ที่เป็น part ของ Lenovo คืออันนี้ครับ http://bit.ly/cpQWRy

ปัญหาก็คือว่า Dell ไม่ยอมเอา firmware ใหม่ๆ ของ Samsung มาแจกจ่ายให้ end-user ครับ. ทำให้ SSD ของ Samsung ที่เป็น part ของ Dell ที่มีอยู่เกลื่อนตลาด ไม่สามารถ update firmware ได้. วิธีการที่ฝรั่งเขาทำคือ แกล้งหาเรื่องแจ้งกับ Call Center ของ Dell ว่า SSD เสีย แล้วให้ Dell ส่งตัวใหม่ซึ่งเป็น firmware ใหม่กว่าและมี TRIM มาให้ครับ. แต่วิธีการนี้น่าจะใช้กับเมืองไทยไม่ได้ครับ.

2. การล้าง SSD มีสองแบบนะครับ

แบบแรกคือไปล้างข้อมูลใน controller ทิ้ง ด้วยการใช้คำสั่งใน BIOS เช่นของ ThinkPad ตามกระทู้นี้ http://bit.ly/bQpdaj หรือด้วยโปรแกรมพิเศษของผู้ผลิต controller เอง เช่นโปรแกรม sanitary erase ของ controller ยี่ห้อ Indilinx

แบบที่สองคือใช้ software ทำโดยมี software ที่นิยมใช้กันอยู่สามค่ายคือ HDDErase (http://bit.ly/970tZA), Diskeeper และ PerfectDisk.

โปรแกรม HDDErase เป็นการล้างแบบ destructive คือข้อมูลจะหายหมด ส่วนสองอันหลังข้อมูลจะไม่หายครับ.

ส่วนตัวผมใช้ Diskeeper อยู่ โดย Diskeeper รุ่นใหม่ๆ จะมี function ชื่อ HyperFast (http://bit.ly/c4RgCr) ซึ่ง "เชื่อกันว่า" ทำให้ SSD รุ่นเก่าๆ ทำงานได้เร็วขึ้น. Function นี้ยังเป็นข้อถกเถียงกันอยู่ ว่าใช้งานได้ผลจริงหรือไม่ นะครับ (http://bit.ly/9Jy1AF).

สำหรับอีกค่ายคือ PerfectDisk นิยมใช้ประกอบกับโปรแกรม FreeSpaceCleaner (http://bit.ly/bsHIRR) ซึ่งบางคนเรียกว่า AS-Cleaner และการใช้งานส PerfectDisk ผสมกับ AS-Cleaner รวมกันเรียกว่า "Tony-TRIM" (http://bit.ly/bHJrJN) โดยมีหลักการทำงานคือ การบีบให้พื้นที่ free space ของ SSD มากองรวมกัน ด้วย feature ชื่อ Free Space Consolidation ของ PerfectDisk. จากนั้น เขียนพื้นที่ว่างทั้งหมดใน SSD ให้เป็น รหัส "FF" (ย้ำว่า "FF" ไม่ใช่ "00") ด้วยโปรแกรม AS-Cleaner. แล้ว shutdown เครื่องสักพัก แล้วเปิดใหม่. ฝรั่งว่ากันว่ารหัส "FF" เป็นรหัสพิเศษสำหรับ SSD ซึ่งจะ mark ว่าพื้นที่ว่างใน SSD นั้นว่างจริงๆ และบังคับให้ระบบ GC มาเก็บกวาดพื้นที่ต่างๆ เหล่านั้นครับ.

ผมได้เคยทดลองทำ Tony-TRIM แล้วสองครั้ง ปรากฏว่าไม่ทำให้ SSD Samsung อันเก่าของผมที่ไม่มี TRIM มีความเร็วสูงขึ้นอย่างมีสาระสำคัญเท่าไรเลยครับ คุณ Bomb จะลองทำเล่นดูก็ได้ครับ เผื่ออยากทดลอง

คำแนะนำและข้อสรุป

จากรูปที่คุณ Bomb ส่งมา ความเร็วที่ test ได้ คือ อ่านได้ 207.9 MB/s และเขียนได้ 146.6 MB/s โดยมีข้อมูลอยู่ประมาณ 49% คือ 48GB จาก 98GB ถือว่า "ปกติ" นะครับ. ความเร็วการเขียนสูงสุดที่เขาโฆษณาขายกัน ประเภทใกล้ๆ 200 MB/s นั้นเป็นเฉพาะเวลา SSD มันว่างๆ ไม่มีข้อมูลอยู่ในนั้นเลยครับ เช่นหลังการลง Windows ใหม่ๆ ยังไม่ลงโปรแกรมเพิ่มเติมใดๆ ทั้งสิ้น. แต่ว่าหาก SSD มีข้อมูลอยู่ในนั้นมากๆ จากประสบการณ์ผม ตัว Samsung จะได้ความเร็วในการอ่านอยู่ราวๆ 140 MB/s ครับ (สำหรับยี่ห้ออื่น เช่น OCZ Vertex จะเขียนได้เร็วกว่านี้อีกนิดหน่อยประมาณ 10%)

ดังนั้น อย่าตกใจครับ ใช้งานมันไปเรื่อยๆ ไม่ต้องทำ benchmark มากครับ. ยิ่ง benchmark มากๆ ยิ่ง "พยายาม" ล้างมากๆ ก็จะทำให้ SSD ของเราเสื่อมเร็วมากขึ้นครับ.

วิธีการที่ดีที่สุดคือ พยายามหาทางเปลี่ยน SSD ให้เป็น firmware ที่มี TRIM ให้ได้ครับ (เช่นขายทิ้ง ไปซื้อตัวใหม่ที่มี TRIM หรือว่าติดต่อ Dell เพื่อขอเปลี่ยนเป็นตัว TRIM ครับ)

อย่างไรก็ตาม หากมี TRIM แล้วก็ไม่ได้ทำให้ความเร็วเพิ่มขึ้นนะครับ. ตอนนี้ผมใช้ SSD ของ Samsung แบบมี TRIM แล้ว แต่ก็ยังได้ความเร็วในการอ่าน/เขียน ใกล้เคียงกับตัวเก่าที่ไม่มี TRIM มากๆ ครับ. เพียงแต่การมี TRIM ช่วยให้เรามี "ความสุขทางใจ" ได้ระดับหนึ่งเท่านั้นเองครับ


หวังว่าข้อมูลเหล่านี้จะเป็นประโยชน์ครับ

ดร.ธิติ วัชรสินธพชัย
thitiv

http://twitter.com/thitiv
thitiv[at]gmail.com

Wednesday, May 06, 2009

Configuring Apache2 HTTPd Virtual Host to Work with Windows Server Internet Information Server (IIS) ASP.NET Hosting

Here's the tip I just discovered, compiled and tested on configuring an Apache2 virtual host to interoperate with Microsoft Internet Information Server ASP.NET hosting. My requirements and configuration are as follows:

  1. Operating System : Windows Server 2003
  2. Primary Web server : Apache2 on TCP port 80
  3. Web application server : Windows Server 2003 built-in Internet Information Server on TCP port 8090
The pictures below outline what need to be done.

1. Configure the virtual host name in the 'hosts' file or the DNS



2. Configure the IIS Web site to listen to TCP port 8090















3. Enable the necessary Apache2 modules in the 'httpd.conf' file: mod_rewrite, mod_proxy, and mod_proxy_http (for HTTP interoperability).













4. Configure the Apache2 virtual host settings in the 'httpd-vhosts.conf' file so that (i) name-based virtual hosting is enabled and (ii) all HTTP requests are 'proxied' to the IIS Web site on the same host (127.0.0.1) at the specified TCP port 8090. Note the "P" option for "proxy" and the "L" option which specifies 'no more' rewriting rules.



5. This is what it looks like on Firefox.

Tuesday, April 14, 2009

Lenovo IdeaPad S10: Fan Blade Interference with Housing and Thermal Issues Solved

Originally posted at http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&thread.id=2846

The fan on my IdeaPad S10 netbook has been unusually / annoyingly loud with grinding noises. It's much louder than the typically loud fan on laptops.

Thanks, Mark_Lenovo at the posts

http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&message.id=2148#M2148

http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&message.id=2482#M2482

http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&message.id=2490#M2490

and berenpx at http://www.s10lenovo.com/viewtopic.php?f=11&t=1397#p10964, for insisting that Fan Blade Interference with the Housing can really be an issue.


Too bad receiving in-warranty services from the contracted / outsourced local Lenovo service center is too complicated, ineffective, and consumes too much of my time. So I finally chose the DIY approach instead. I just cannot tolerate the annoyance from the fan anymore. Local service center said they don't have a replacement fan in stock. I would have to wait for a "few weeks" for them to order from abroad (perhaps, Singapore) and would need to call back and check if they have ones in stock or have used up already. I can also queue up by leaving my only computer (yes, this S10) with them during this wait period.

I opened the S10 last night with the help of the Hardware Maintenance Manual and did the following:

Fan Upgrade

- Disassembled the fan,
- Cleaned it with WD40-like oil,
- Fully filled it with white lithium grease,
- Fixed the blade interference issue by "heightening" the housing with 3 pieces of 0.5-mm thick plastic sheets (I used the "leftover" part of a cellphone SIM card), and
- Sealed the space introduced by the plastice sheet with UHU Plastic Repair Adhesive.I really saw traces of the fan interference: there are a lot of scratches at the inner surface of the fan housing.

Thermal Grease Upgrade

Replaced the cheap "insulation" pads between the (1) Intel 945 northbridge chipset + (2) ATOM CPU and the heat sink with Arctic MX2 thermal grease.

Soft and Quiet Mouse Click Mod

By adding a layer of electrical tape onto the micro swtiches for the two mouse buttons, which are located under the palmrest, as suggested in http://www.s10lenovo.com/viewtopic.php?f=11&t=577&start=10#p11188

P.S. The technician at the local service center did the fan and thermal grease things for me once last time, as posted earlier; but when I looked at what he did this time, it was not thorough, effective, and neat. I don't think he understood what he was doing.

Thanks much everyone who provided me with all the required information!

Sunday, March 01, 2009

Lenovo IdeaPad S10: Annoying Fan Noise Fix and Heat Conduction Upgrade

Here's a repost of my message on the Lenovo.com board:

I would like to thank Slash (on Lenovo.com board) so much for his messages on this thread: http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&message.id=1183#M1183

I decide today (February 28, 2009) to walk into a Lenovo Service Center inside a computer mall in downtown Bangkok because I cannot tolerate the constant grinding noise from my S10 anymore. I bought my S10 in late November 2008 and I started to hear some grinding noise in late December 2008.

I have been using the S10 as my primary computer both for work and for home. At work, this noise has embarrassed me many, many times. At home, I left the S10 with Vista in High Performance mode on overnight so that it can complete the maintenance tasks, e.g., HDD Defrag and Indexing, but the fan noise from high CPU temperature woke me up at 4:45 in the morning!

I learned from Slash's picture http://i41.tinypic.com/25alq3d.jpg that Lenovo chose to use cheap, thick silicone "heat conductor" between the CPU & Chipset to the aluminum (not copper) heat sink. As also suggested by Slash in #108, thick silicone material does more harm than good. It functions as an "insulator" or "heat collector" rather than a "heat conductor."

I also learned from many discussion threads online that many other netbooks, e.g., ASUS EeePC & MSI Wind, also suffer from the "Fan Grinding" noise as well; and that the most promising solution is to disassemble the fan and apply some sewing machine oil at its core, c.f. http://delicious.com/thitiv/ideapad_s10%20fan%20annoyance

I was fortunate enough that the Service Center wasn't crowded when I arrived and that I had a chance to talk to the technician. He seemed to know about the "sewing machine oil" trick so I was happy. I also bought the Arctic MX-2 high performance thermal grease at the computer mall (for approx US$11) and asked the technician to use it to replace the cheap silicone at the heat sink. The reason was that he had to remove the heat sink to access the fan anyway and some heat conductor must be applied back.

After two hours waiting for him to work on my S10, I had a chance to test. The grinding noise was 99% eliminated. I still hear very, very minor grinding noise at times when the fan worked at full speed but it was a lot better. The Arctic MX-2 does the trick! When there is a significant increase in CPU activity and the CPU temperature increase--from say 44C to 47C--the fan runs for only less than 15 seconds to bring the CPU temperature back from 47C to 44C. Heat transfer inside my S10 is significantly better and the fan runs less often now.

My S10 is super silent now and I am very, very happy!

In summary, here are what had been done to my S10:

1. Heat Sink and Fan Removed
2. Sewing Machine Oil applied to the core of the Fan (to fix the grinding noise and improve fan efficiency)
3. Cheap & Thick Silicone "Thermal Conductor" replaced by High Performance Thermal Grease (to improve efficiency of heat conduction)

FYI, I am also using the BIOS Version 56 posted the other day.

Technorati Tags: , , ,

Friday, February 27, 2009

Quote: Science, Equations and Experiment

I got this thought provoking quote from my iGoogle page today:

Today's scientists have substituted mathematics for experiments, and they wander off through equation after equation, and eventually build a structure which has no relation to reality.

  - Nikola Tesla




Tuesday, October 21, 2008

Microsoft Office Outlook Connector 12.1 Beta 2 Crashes Thai Language Input in Outlook 2007

It's been more than a year since I last blogged. I've been busy with work and also don't know what to blog. Here comes my new findings:

Microsoft Office Outlook Connector 12.1 Beta 2 + Outlook 2007 + Thai Language Input = CRASH

This has also been proven here.

I downloaded the Outlook Connector the other night for improved supports to Windows Live Hotmail -- only to find that whenever I start typing e-mails in Thai, i.e., hit the "language switch" key Outlook simply crashes!

I googled for "outlook 2007 crash language switch" this morning and find someone having the same Outlook Connector insta.led and the same problem as mine. So, Outlook Connector is most likely the cause of trouble.

I uninstalled Outlook Connector this morning and, yes, typing in Thai doesn't crash Outlook 2007 anymore!

Keywords: , ,

Saturday, September 15, 2007

Windows Vista: Preventing the "Windows has blocked some startup programs" Message

If you are annoyed by Windows Vista's new security feature that blocks startup programs that run in elevated administrator mode and want to authorize some programs to run, take a look at this workaround by Jimmy Brush.

It works perfectly fine for me!

Keywords: , ,