JASONT

生活 + 工作 + 情感

Archive for the ‘系統管理’ Category

Boomerang 中的 Bandwidth & Latency 測試方式..

without comments

  • First download a 32 byte gif 10 times serially. This is used to measure latency

    We discard the first measurement because that pays the price for the TCP handshake (3 packets) and TCP slow-start (4 more packets). All other image requests take two TCP packets (one for the request and one for the response). This gives us a good idea of how much time it takes to make an HTTP request from the browser to our server.

    Once done, we calculate the arithmetic mean, standard deviation and standard error at 95% confidence for the 9 download times that we have. This is the latency number that we beacon back to our server.

  • Next download images of increasing size until one of the times out

    We choose image sizes so that we can narrow down on a bandwidth range as soon as possible. See the code comments in boomerang.js for full details.

    Image timeouts are set at between 1.2 and 1.5seconds. If an image times out, we stop downloading larger images, and retry the largest image 4 more times[3]. We then calculate the bandwidth for the largest 3 images that we downloaded. This should result in 7 readings unless the test timed out before that [4]. We calculate the median, standard deviation and standard error from these values and this is the bandwidth that we beacon back to our server.

Written by jasont

August 21st, 2010 at 2:45 pm

Ubuntu 64bits OS 執行 32bits 軟體…

without comments

公司前期規劃的備份機制是使用 Netvault – Backbone 這套軟體,代理商的工程師來安裝,在 Ubuntu Linux 64bits 上安裝會出現問題。

Creating symbolic links
postinstall.sh: 647: /usr/netvault/util/nvsetstanza: not found
Failed to set first configuration value
Post install script failed!
root@nms01:/media/cdrom/netvault/linux_x86_64/netvault# file /usr/netvault/util/nvsetstanza
/usr/netvault/util/nvsetstanza: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
root@nms01:/media/cdrom/netvault/linux_x86_64/netvault#

發現不管如何,檔案都是 32bit 的,工程師求助資深工程師,回應卻是 “這事不好辦…問原廠”,後來我了解一下,發現這東西根本是個偽 64bits 軟體,他的 require lib 需要一個 linux-gate.so.1,這是 32bits 才有的,而基本上 x86 的平台上,64bits 還是可以執行 32bits 的,在 ubuntu 上只需要安裝一個 ia32-libs package。

裝完以後就可以順利安裝並執行了,超無奈。

Written by jasont

June 23rd, 2010 at 2:57 pm

Posted in 系統管理

Hostmonitor Check Oracle 設定…

without comments

在 Hostmonitor 上要設定 Oracle 檢查,搞了幾天終於搞定了。

主要有幾點需要注意的,

1. Hostmonitor 是 32bits 的軟體,因此安裝的 Oracle Client 也需要是 32bits。因為我 OS 是 2008 64bits,在這一點上我卡關了一些時間,試了好幾個終於搞定,他不會用 64bits 的 oci。
2. Oracle Client 可以只裝 Instant Client 部份,因為只需要有 oci.dll 就好。
3. 需要設定 Oracle_Home Path 的環境變數於系統上.
4. Hostmonitor 使用 TNS Alias 當設定,因此需要於安裝路徑下的 network/admin 下建立 tnsname.ora 與 sqlnet.ora。

最重要的一點,當上面都弄好了,如果發現 Hostmonitor 要不是說還是找不到 oci.dll 或是 TNS resolve 錯誤,那就重啟動 Hostmonitor 就好了。

Written by jasont

June 13th, 2010 at 4:09 pm

Windows 2000 實體主機轉為 Vmware…

without comments

CRM 部門由於目前都轉到中華去了,原本有一台 E-Learning 主機要下線了,剛好又碰到 E-Learning 的公司要結束營業,瞬間變成沒人要的小孩,所以打算備份起來就可以了。只是從頭灌似乎有點麻煩,因此就想到轉成 Vmware 的方式,可以省去很多工,沒想到這一轉卻還是花了兩天。轉換過成有幾個問題,記錄一下也許以後還會有需要。

Read the rest of this entry »

Written by jasont

February 1st, 2010 at 12:22 am

Posted in 系統管理

Acer Veriton M460 裝 Mac OS X Snow Leopard..

without comments

自從打算買 iphone 後,就很努力的試著在公司的電腦裝 Mac OS,兩週前裝了 Retail 版,結果網卡、音效卡沒有,搞了很久音效搞定,網卡裝半天看起來明明是支援的,卻都無法使用。

上禮拜在家找了 iatkos v7 來試,沒想到更慘,開機都開不起來,直接 Panic,裝了幾個 kext 也無效,昨天在公司搞到九點多,最後放棄再灌回 Retail 版,想說好歹也只剩網卡要處理總比開不了的好,沒想到這一裝竟然網卡直接就抓到了,真是三字經不由自主的就出口了。我被玩了兩個禮拜…

整理一下資料以免以後有要用到。主要額外裝了幾個:

1. OpenHaltRestart – 修正無法關機/重開,psystar 上的,在 Snow Leopard 沒用,要去網路上找 64bits 的才行。
2. VoodooHDA – 音效卡萬用驅動。
3. PlatformUUID – 修正 UUID Error 35 的錯誤。

這樣大致上就都可以正常使用,目前還在很努力的習慣與 PC 的差異,以求盡快開始進行開發。

Written by jasont

January 6th, 2010 at 12:14 am