Friday, 28 April 2017

Solid State Drives (SSD) di Linux

Status : Draft


Beberapa tips optimalisasi penggunaan SSD :

Pilih SLC (Single Level Cell) untuk Performa dan daya tahan terbaik 

SLC (Single Level Cell) saat ini merupakan yang terbaik, selanjutnya eMLC (Enterprise Multi Level Cell), lalu MLC (Multi Level Cell) lalu yang paling rendah TLC (Triple Level Cell) [4]

/tmp di mount ke ram

Tambahkan entri berikut di fstab, kemudian reboot : 

none /tmp tmpfs defaults 0 0

Untuk  tips yang lain silahkan baca pada bagian referensi.

Referensi

  1. 5 crucial optimizations for SSD usage in Ubuntu Linux, https://www.leaseweb.com/labs/2013/07/5-crucial-optimizations-for-ssd-usage-in-ubuntu-linux/
  2. How can I monitor the TBW on my Samsung SSD?, https://askubuntu.com/questions/865792/how-can-i-monitor-the-tbw-on-my-samsung-ssd
  3. Solid state drives in Linux: Enabling TRIM for SSDs, https://opensource.com/article/17/1/solid-state-drives-linux-enabling-trim-ssds
  4. Everything You Need to Know About SLC, MLC, & TLC NAND Flash, https://www.mydigitaldiscount.com/everything-you-need-to-know-about-slc-mlc-and-tlc-nand-flash.html

Cron : time-based job schedule

Status : Draft

Referensi

  1. Cron, https://en.wikipedia.org/wiki/Cron
  2. Reasons why crontab does not work, https://www.blogger.com/blogger.g?blogID=597281796874554104#editor/target=post;postID=6937010560866578259

Saturday, 11 March 2017

Text Processing

Status : Draft


rpl


Salah satu tool yang bermanfaat adalah rpl [1].
rpl : intelligent recursive search/replace utility.   
rpl is a text replacement utility. It will replace strings with new strings  in multiple text files. It can work recursively over directories and supports  limiting the search to specific file suffixes.



Referensi


  1. How can I replace a string in a file(s)?, http://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files
  2. rpl, http://rpl.sourceforge.net/

Friday, 3 March 2017

Linux Performance Anaylisis

Status : Draft

Beberapa tool yang bisa kita manfaatkan untuk analisis performa di Linux, terutama yang dijalankan di comand line : atop, vmstat, iostat, top, htop, mpstat, iptraf, glances,  saidar

Saturday, 7 January 2017

USB Tethering

Status : Draft

Kasus 1
 
Server terkoneksi dengan LAN yang tidak terkoneksi ke internet ..., kita ingin tethering via HP yang terkoneksi via Wifi.

Lihat ethernet device yg tersedia

$ifconfig
....
enp0s20u10 Link encap:Ethernet  HWaddr 02:5f:6f:30:61:34 
          inet addr:192.168.42.86  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::f3cc:8911:dd0c:5588/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:732 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:662531 (662.5 KB)  TX bytes:112711 (112.7 KB)
....

update dhcp :

$sudo dhclient enp0s20u10


tambahkan routing default :


sudo route del default gw 192.168.42.86