Perl 的 Object::Destroyer
使用 HTML::Tree 時因為有 circular reference,會要求你要使用 ->delete() 告知 object 打斷 reference 以避免 memory leak。於是就得很小心寫,要注意每個步驟以免某些狀況下忘記 ->delete() 而造成 leak: my $html =...
View ArticleFirefox 省記憶體的套件:AFOM
Firefox 上回收記憶體的套件,目前只有 Windows 平台有支援:「AFOM – Memory Recovery & Retention For Firefox Only」,用了幾個禮拜後發現效果還蠻不錯,也還算穩定… 桌機只有 2GB RAM,還沒打算要升級,先頂著用… 效果的部份可以參考「AFOM 有效解決 Firefox 記憶體咬住不放的擴充套件」這篇裡的資料。...
View ArticleAWS 歷史上第一台 RAM 比儲存空間多的 instance…
看到 AWS 推出新的 EC2 instance:「EC2 for In-Memory Computing – The High Memory Cluster Eight Extra Large Instance」,看完這個 instance 的規格笑了出來 XDDD 120GB SSD 兩顆 (所以是 240GB),加上 244GB RAM,結果記憶體比 SSD 空間大,應用程式一定得分層利用…...
View ArticlePercona Server 5.5.30-30.2 (based on MySQL 5.5.30) 的改善
Percona 在前幾天推出基於 MySQL 5.5.30 的 Percona Server 5.5.30-30.2:「Percona Server for MySQL 5.5.30-30.2 now available」。 5.5.30-30.2 這個版本引入了 jemalloc: Percona Server for MySQL will now be shipped with the...
View ArticleHDFS 上的 Memory Storage
Apache Spark 以記憶體操作為賣點的想法,有人提出來直接讓 HDFS 支援 Memory Storage 了:「Discardable Distributed Memory: Supporting Memory Storage in HDFS」,文章的副標題「HDFS's storage subsystem gets a boost with discardable...
View ArticleValgrind 的其他用途
這篇文章的標題就說明了作者對 Valgrind 只被拿來抓 leak 很不滿:「Valgrind is *NOT* a leak checker」。 依照文章裡的說法: Valgrind is an undefined behavior checking tool first, a function and memory profiler second, a data-race detection...
View Article單台 12TB RAM 的 server
翻資料的時候翻到「Scalability Techniques for Practical Synchronization Primitives」這篇文章,裡面剛好提到 HP 的高階伺服器: HP 的 CS900 (HP ConvergedSystem) 看起來是搭著 SAP HANA 而出的硬體......
View ArticleRuby 2.2.0:放假前的新版本
Ruby 2.2.0 在假期前釋出:「Ruby 2.2.0 Released」。 在「Notable Changes since 2.1」的部份有提到新的 GC algorithm (Incremental GC) 以及讓 Symbol 可以被 GC (Symbol GC),而且提到了 Rails 5.0 會受益於此: Recent developments mentioned on the...
View ArticleRowhammer Bug:攻擊記憶體的值...
Google 的 Project Zero 實做 Rowhammer Bug:「Exploiting the DRAM rowhammer bug to gain kernel privileges」。 開頭就很科幻: “Rowhammer” is a problem with some recent DRAM devices in which repeatedly accessing a row...
View ArticleMozilla Developer Network (MDN) 上的 JavaScript 教學
Mozilla Developer Network (MDN) 寫了一篇關於 JavaScript 的介紹文章,算是以現在的角度來教 JavaScript:「A re-introduction to JavaScript (JS tutorial)」。 不是給完全不懂的人入門看的,而是對程式語言有了解的人看的。 文章裡面不單純只是教學,還引用了許多重要的文獻,尤其是 ECMAScript...
View ArticleFacebook 推出靜態分析工具:Facebook Infer
Facebook 推出了靜態分析工具 Facebook Infer,可以事先找出 Android 與 iOS 上的 bug:Open-sourcing Facebook Infer: Identify bugs before you ship。 從官方給的操作動畫中就可以看出來怎麼跑了。目前看起來支援三種程式語言,C、Objective-C、Java: Facebook Infer is a...
View ArticlePHP 5.5 的 Generators
在「Save memory by switching to generators」這邊提到了 PHP 5.5 開始提供的 Generators... 由於其他的程式語言有 Generators 的觀念,其實不會太難了解... 不過比較大的問題是,資料庫的查詢操作用 Generators 會把效能壓力壓回資料庫:因為資料庫需要把結果 buffering...
View ArticlePuTTY 安全性問題 (CVE-2015-5309)
雖然很久沒用 PuTTY 了 (因為用 Ubuntu 很久了),不過很難得看到 PuTTY 有安全性問題。 PuTTY 官方發佈了安全性通報 CVE-2015-5309:「PuTTY vulnerability vuln-ech-overflow」: Versions of PuTTY and pterm between 0.54 and 0.65 inclusive have a...
View ArticleOpenSSH client 的重大安全性更新
CVE-2016-0777 與 CVE-2016-0778 安全性漏洞是關於 OpenSSH client 的部分:(USN-2869-1: OpenSSH vulnerabilities) It was discovered that the OpenSSH client experimental support for resuming connections contained...
View ArticleGoogle Compute Engine 推出 Custom Machine Type
Google Compute Engine 推出了可以自己設定 CPU 與 RAM 的機器種類:「Custom Machine Types - Compute Engine — Google Cloud Platform」。 可以從 1 個 vCPU 到 32 個 vCPU,而記憶體最多是 6.5GB * vCPU 數,所以理論上最高是 208GB? Create a machine type...
View Article調整 MySQL 的記憶體用量
Percona 的「Best Practices for Configuring Optimal MySQL Memory Usage」這篇給了個蠻不錯的建議: Don’t allow the mysqld process VSZ exceed 90% of the system memory 用 ps ax -O vsz | grep mysqld 可以看到 mysqld 吃了多少...
View ArticleAWS 最新的 x1.32xlarge...
Amazon EC2 推出了 x1.32xlarge:「X1 Instances for EC2 – Ready for Your Memory-Intensive Workloads」。 看這精美的規格: Processor: 4 x Intel™ Xeon E7 8880 v3 (Haswell) running at 2.3 GHz – 64 cores / 128 vCPUs....
View ArticleLinode 記憶體升級,以及新的日本機房計畫
Linode 的 13 歲禮物:「Linode’s 13th Birthday – Gifts for All!」。包括了記憶體的升級計畫: Old Plan New Plan Price Linode 1 GB Linode 2 GB $10/mo ($0.015/hr) Linode 2 GB Linode 4 GB $20/mo ($0.03/hr) Linode 4 GB Linode 8...
View ArticlePython 3.6 對 Dict 的改善
Python 3 的 Dict 將會有重大的改變:「[Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered」。 在 3.5 時: Python 3.5.1 (default, Jun 20 2016, 14:48:22) >>> def...
View ArticleMark Callaghan 講最近的 MySQL 的行銷活動...
Mark Callaghan 這篇倒是沒提到什麼技術的東西,主要是講最近 MySQL 的兩大 conference,一個是 Oracle 的 Oracle Open World,另外一個是 Percona 的 Percona Live Amsterdam 2016,然後用了 benchmarketing 這個酸酸的詞 XDDD:「Peak benchmarketing season for...
View Article