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

全国网路连线品质监控..

without comments

现在机房除了做 smokeping 侦对外面几个主要的程式做监控,希望能够更进一步有其他资讯可以参考。在网路上看到了大陆有个叫监控X的网站,里面有一个用户体验(访问速度)跟踪,只是因为是公司使用,不便把资料放在别人的主机或依附他人的服务,所以就参考了他的网页,配合 Y! 的 Boomerang 自己弄了一个。

除了在统计上 Boomerang 的测试会准一点外,借用了监控X的 UI,并稍做修改。在时段选择上加上了最近一小时,跟踪历史部份也改以 Ajax 方式做即时的更新,另外也把一些 js lib 都换新版的用。虽然还有三个是已知的缺陷,不过暂时不想去改动了,等之后再说吧。

这东西算是最近玩比较好玩的东西了….

Read the rest of this entry »

Written by jasont

August 20th, 2010 at 2:38 pm

Y! Boomerang 只測 latency 不測 bandwidth…

without comments

最近用了 Y! 的 Boomerang 要來做全國連線品質監測,不過他有個問題是 latency 和 bandwidth 是同一個模組的功能,並沒有參數直接可以設定只跑 latency 不做 bandwidth 測試,但即使設 1 次測試,以現在的來訪數,流量大概會上升 5~10M。在現在是固定頻寬的狀況下,並不是很好。

所以只好在 js 中直接把他處理掉,抓沒壓過的來,把其中 1063 行這段改掉,就會在做完 latency 後直接回傳給統計主機了。

1
2
3
if (!this.runs_left) {
    this.finish();
}

改成

1
2
3
if (!this.latency_runs) {
    this.finish();
}

Written by jasont

August 20th, 2010 at 2:18 pm

Installous 下載的 ipa 檔案路徑…

without comments

Installous 雖然我已經選了要和 itune 同步,不過好像還是會有問題。

所以最快的方法就是抓回 PC 用 itune 安裝管理,之前版本的 installous 下載的路徑會是

/private/var/mobile/Library/Downloads

可是最近的版本已經不是在這了,找了半天終於找到,新的路徑是

/User/Documents/Installous/Downloads

Written by jasont

June 28th, 2010 at 4:21 pm

Posted in 資訊不歸路

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 系統管理