買相機

因為一些原因,要買一部價錢just below $5000的相機。在沒有任何消費雜誌在手的情況下,只好上網找。

1. 先從價格入手,到www.price.com.hk 找 $5000 以下的相機。由於想質素比較好,所以只在 “DSLR 數碼單鏡反光相機” 內找。
原來這個價位最熱門的頭五位,全部是可換鏡無反相機 (無反當單反??)。

2. 走去對比Review,Google 到一個很好的網站可以提供更多深入比對。
http://snapsort.com/compare/Olympus-E-PL3-vs-Sony-NEX-C3 

這個Website 有好多平時覺得重要但沒有在產品規格上清楚列名的資訊。

例如Shutter lag, battery life, image quality

而這個Website Image quality 分數以 DXOMark 為基楚。

DXOMark – http://www.dxomark.com/index.php/About/In-depth-measurements/Measurements

DXOMark 基於3個因素

  1. Portrait Score (color depth)
  2. Landscape Score (dynamic range)
  3. Sports Score (low-light ISO)

The Sensor Overall Score is an average of the Portrait Score based on color depth, the Landscape Score based on dynamic range, and the Sports Score based on low-light ISO

其中 Sports Score 是最高可用ISO值。定議最高能提供 30dB SNR的ISO。30dB SNR 足夠提供 9 EV Steps 及 18bit 的色深。

Thus low-light ISO is the highest ISO setting for a camera that allows it to achieve an SNR of 30dB while keeping a good dynamic range of 9 EVs and a color depth of 18bits.

以下是將 price.com.hk 找到$5000 以下最熱門 DSLR 中的頭3位在DxOMark.com中對比的結果。LINK

很明顯是APS-C片幅的SONY NEX-C3 在所有測試中表現最出衆,最後當然選擇了 SONY NEX-C3.

 

 

分類: 其他, 攝影 | 標籤: , , | 在〈買相機〉中留言功能已關閉

Free SFTP server for my goodreader

Finally, I found a free SFTP server for my file server.

http://www.k2sxs.com/silvershield/

Although it limited only one client and max 3 session on free version. However, it run as service nature and natively support file name encoding UTF8 which is enough for me.

GoodReader syncing through 3G
20111113-144942.jpg

SilverSHielD Management Console screen

Security Settings – anti hammer support

Expert Settings – just show off how many type of SFTP / encryption method supported

Add/Edit User screen. Support Windows/AD account, command shell login

分類: NAS, 其他, 軟件 | 標籤: , , | 在〈Free SFTP server for my goodreader〉中留言功能已關閉

Hackintosh life

因為ESXi 5可以裝MacOS (應該支援EFI BOOT )所以手多多走去試。

答案原來

  1. ESXi 5 所指可以安裝MacOS 是指MacOS X 10.5 Server. 無法對應10.6&10.7
  2. 是可以Boot EFI , 可不用Boot loader, 但ESXi 無法處理DMG。
  3. 新版Mac OS 不能從IDE CD-ROM 安裝,似取消了。由於ESXi 的Virtual CD-ROM 是IDE Mode的,所以無法使用。

要解決10.7支援,要找一套叫UNLOCKER

要安裝MacOS,最基本的方法就是用VMDirectPath 直接經Passthrough USB Flash或CD-ROM 來開機。但這個方法比較慢,大約只有4MB/S的傳輸速度。而且由Apple DMG來製作一定要用Mac機。
最快的方法是用PREBUILD USB 來安裝。

最後找到一隻已完成的VMDK,但因為來源是較舊的VMware版本,要經過vmkfsutil 修正後才能使用。

Post installation 相對實機安裝簡單,在虛擬環境只需(只能)安裝

  1. VMware tools。darwin500.iso
    這個vmwaretools其實只是power state helper及修改VGA resolution。雖然不是QE/CI,但顯示反應速度在ESXi 5環境下還可接受。
  2. LegacyAppleIntelPIIXATA.kext 令VM可使用IDE Virtual CD-Rom
  3. Upgrade 到 Lion 10.7.2,這個Step會比較困難,因為10.7.2內的AppleLSIFusionMPT.kext 會令Mac OS 不能順利進入。解決方法有
    • a. 用Offline  install pack MacOSXUpdCombo10.7.2.dmg, 在安裝完成並提示要Reboot時,把舊有的AppleLSIFusionMPT.kext 回復來。最好可以用Kext Utiltiy 來Rebuild security及Extension cache
    • b. 用 10.7.1的安裝USB/Custom built CD開機,並在Terminal 回復AppleLSIFusionMPT.kext

    如要避免Mac OS 會使用Cache Extension, 要在Boot flag 加入 -k
    進入Mac OS後,再用Kext Utility 來Rebuild cache

最後,啟用 OS X的Sharing內的Screen Sharing ( VNC )

Links

How to Install Retail OS X 10.6 “Snow” and OS X 10.7 “Lion” under VMware ESXi 5 – InsanelyMac Forum

 

分類: osx86, 其他, 軟件 | 標籤: , , , | 在〈Hackintosh life〉中留言功能已關閉

Mdaemon slow queue study

After few week of Mdaemon slow queue complain, 1 week of changing hardware test and 1 week of process tracing, mail queue is now stabilized.

Summarize these week study; there are few setting should help Mdaemon run faster

  1. Offload Remote Queue to other server by setting delivery options [Must]
  2. Use server 2008R2 with enough memory to cache more Metafile
    and calculation of enough memory = 4GB + (files count * 1KB)
    for example, total mail store with 4 million files should have 8GB or more
  3. Registry tweak  (based on Performance Tuning Guidelines for Windows Server 2008 R2)
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
    NtfsDisable8dot3NameCreation=1
    NtfsDisableLastAccessUpdate=1
  4. Disk defragment (no need often defragment)
  5. Application disk volume alignment, Mdaemon Application ( cfilter dir), Local Queue and User folder should be on same volume
  6. CPU – higher clock / better clock efficient instead of multi core
    a. we tested on 8 core 16 thread machine, it use only few thread
    b. even average load is below 50%, you will see 2.8GHz CPU perform better than 2.4GHz CPUI think Single CPU SandyBridge 2600K server will run faster than server with Dual Socket Xeon E5625

 

Offload Remote Queue to other server by setting delivery options

After offload Remote Queue to another Mdaemon server, you will see Incoming Queue run faster (less lockup)

Use server 2008R2 with enough memory to cache more Metafile

When huge amount of files and mail box are accessed frequently, server 2008 will cache Metafile to memory.

for example, Mdaemon folder have 4,385,755 Files, the usage of  Metafile can reach 4.7GB.

Also, more memory also can benefit windows read cache. Equallogic SAN HQ report show the read/write ratio change from 66/33 to 15/85 after system upgraded to 16GB memory. That mean 91% of read IO saved by system cache.

Application disk volume alignment

After tracing server with Sysinternals’ Process Monitor ( 3 minutes of event, data size 5.9GB!! ),

I found,

  1. Mdaemon access disk in 4KB per Read/Write, it would be fine for mail sized in KB sale. However, some user send mail in Megabyte scale.
  2. Mdaemon create Local Queues and Remote Queues by coping message from Inboundfor example, a email addressed to 5 local mailbox and 5 remote mail recipient with 3 different domain will do following
    5 times of ( make unique per recipient mail header + copy remaining message body in 4kB per block from Inbound to Local till EOF)
    3 times of ( copy message in 4KB per block to Remote Queue  + create *.rte to record target recipient)
  3. when process Local Queue and found user have mail forwarding setting, it will create related Local Queue and Remote Queue.
    And same as Inbound Queue, working in 4KB per block pattern.
  4. Local Queue will do Antivirus and SpamAssassin check, file will move to Cfilter\Temp during CFilter process
  5. The final local mail will move to user mailbox

You will found that, file will  move between CFilter, Local Queue, and User Folder.
When the folder not in same disk, Mdaemon still calling filesystem MoveFileA and move between volume handled by system.
On server 2008R2, read buffer is 512KB and write block size is 64KB.

CPU – higher clock / better clock efficient instead of multi core

You will found that, upgrade from single Quad Core CPU to dual Quad Core CPU only have slightly improvement.

It is because, queue processing seems single thread (one thread scan folder, one thread move file)
However,  CFEngine, Spamassassin and  Antivirus seems running in multi-thread, so, messages waiting inside Local Queue mostly are MDAV & SpamD processed.

 

分類: 軟件 | 標籤: , , , , , | 2 則留言

RDM on ESXi5

今次換機及使用ESXi 5 的其中一個原因是, ESXi 5 的VMFS更新及RDM (Raw Disk/Device Mapping) 可以支援到2TB以上.

今次個File Server使就用RDM, Mapping 了H700上運行的一個6TB Logical Disk. 同時為了效能, 用上了vmware 的 PVSCSI controller driver.

6TB 一個Volume 當然要用GPT header

Disk read test (1MB block)
以RAID5 5隻 7200rpm HDD來講,唔算好快。但由於同一RAID5上,還有一個Logical Disk 用來Store VM 有可能影響了。

 

File bench 唔知這個是ESXi Cache 還是H700的Cache 效能,大IO近700MB/s

分類: ESXi, NAS | 標籤: , | 在〈RDM on ESXi5〉中留言功能已關閉

Home server Oct 2011

終於等到 H700 所需的Sff-8087
寫住Home server 的上半Part先

Hardware

  • MB-  MSI Z68A-G45 B3
  • CPU – Intel i7-2600
  • Memory – 4GB DDR3 1333 x 4
  • HBA – Dell PERC H700 512MB with BBU
  • Disk – 2TB SATA HDD x5 (3 Brand 4 Models, RAID 5, 2 Logical Disk)
  • NIC – Broadcom NetXtreme II 5709 Dual Port GbE, onboard Realtek 8111D
  • Power – Antek 380W Power Supply

Software

  • Host – vmware ESXi 5
  • guest – pfSense 2.0
  • guest – Server 2008R2 as NAS

Side view, overcrowded

MSI Z680A-G45 (B3), HK$9xx have VT-d

Dell PERC H700

ESXi installed on 2GB USB Flash, in picture also have H700 battery backup unit.

Front view – the FAN controller lower the HDD Case fan noise

Installed LSI CIM Provider, can view card status

VT-d enabled in BIOS, can mark device for vmdirectpath I/O

 

 

 

分類: ESXi, i5/i7, 網絡 | 標籤: , , , , , | 2 則留言

Nested ESXi5 on Z68+i7-2600

今日終於有時間去試Nested ESXi5。即是在ESXi5 內安裝另一隻ESXi5。

同時也試了用PXE 安裝ESXi5

預備PXE Image 我唔多講,因為已經有好幾個BLOG有完整的教學。

基本上我是參考了這個POST
http://vcp5.wordpress.com/2011/10/01/performing-scripted-installation-of-esxi-by-pxe-booting-the-installer/

只是被pfSense個DHCP設定玩了一個小時。原來pfSense的DHCP Server 已完全支援PXE Boot,返而用Additional BOOTP/DHCP Options 會出現ERROR。

設定好Network booting後,就要設定現有的ESXi5 Host。

1. 設定 allow nested hypervisors

SSH 入ESXi 修改/etc/vmware/config

在結尾加一句

vhv.allow = “TRUE”

這樣就會令nested hypervisors生效。

2. 建立GuestOS

基本設定為

  • Virtual Machine Version: 8
  • Guest Operating System 為Other (64-bit)
  • 2GB 以上Memory
  • 2 – 4 CPUs
  • E1000E
  • LSI Logic SAS Adapter

3. 修改 Virtual Machine Properties

建立後再修改Guest Operating System 為 VMware ESXi 5.x

CPU /MMU Visualization 要設定為 Intel EPT /AMD RVI

EPT/RVI 應該是Memory Page Remap 一種 Wiki:Extended Page Table

4. Install from PXE

Loading ESXi installer 個速度不似由TFTP下載,應該經HTTP由IIS下載。

5. 完成及測試

ESXi5 新增的e1000e Network Adapter 可以開JumboFrame

64bit Guest under Nested ESXi

如果無設定錯誤,Server 2008R2 (64bit) 的Boot DVD 應該能進入Install Windows 畫面

Others, Bad Ending

1. 如果沒有設定Guest Operating System 為 VMware ESXi 5.x 就會出現這個問題,會令到Nested ESXi 不能執行64bit Guest

2. 1GB Memory 是不能安裝ESXi 5 的

分類: ESXi, 軟件 | 標籤: , , | 在〈Nested ESXi5 on Z68+i7-2600〉中留言功能已關閉

Perc H700 Arrived – waiting cable

由於PERC 5/i 在VT-d 環境下出現Data Loss Link 所以由Dell order 了張新RAID 卡。可惜淘宝 order 的兩條 SFF-8087 to SATA cable 還未到手,這個週末未能上機。

分類: ESXi, NAS | 標籤: , , | 在〈Perc H700 Arrived – waiting cable〉中留言功能已關閉

尋回失蹤的記憶 Windows MetaFile Cache

早幾日發現, 其中一部4GB RAM 的Server 2008R2 使用了95% ( Available = 200MB, Cached = 200MB )。相對其他不同服務的Server 『大食』。

由幾個方向不斷查找,找過Kernel Page、找過Application Page及Driver memory leak也找不出問題。

最後基於該Server 有2TB 好幾百萬個檔案,找了NTFS相關的資料。

答案是MFT

好似自Vista 開始就有

原來MFT會Cache 到Windows memory,而且只會有部份顯示在Cached 一項之內。


Cached = 6786MB, Used = 12,279MB -6929MB = 5350MB
如果用RamMap一看, Cached 的6786MB 大約等如 Standby 6,914,160/1024 = 6752MB
那Active 部分的Mapped File 和 Metafile應該會視為 Used, Task Manager 內 Physical Memory Usage 藍線的部份。

一個檔案在 NTFS 內大約會使用 1KB 的MFT空間,即是如果有4,000,000個檔案,全數MFT Area 應該會用4GB。

如果那些檔案及目錄被讀取過,Metafile就會load上Memory。

以下是一部讀多過寫、有4百萬個檔案的EMAIL SERVER。

Metafile Active 有3GB 會計算在Used Memory 的部份內

睇完RAMMap 才知, 自己對Task Manager 內的數字未了解得透。

Link
How NTFS Work
Sysinternals RAMMap

分類: 軟件 | 標籤: , , | 在〈尋回失蹤的記憶 Windows MetaFile Cache〉中留言功能已關閉

Steve Jobs 1955-2011

今日出現在Apple主頁的, 不是iphone 4S, 不是iCloud, 而是令人傷心的 Steve Jobs 逝世消息.

分類: 其他 | 標籤: , | 在〈Steve Jobs 1955-2011〉中留言功能已關閉