Showing posts with label Chrome. Show all posts
Showing posts with label Chrome. Show all posts

Tuesday, December 11, 2018

Speed up Chrome

Google is also testing out new features for Chrome – some of which can speed up your browser.
You can access these by typing chrome://flags into the address bar. The ones which could prove beneficial are Enable fast tab/window close and Enable tab discarding. Find them both and click Enable.
Be warned, these are experimental so there are no guarantees they’ll work just yet. The good thing is, if you choose to enable them you can always switch them off later if you notice any problems.

Friday, April 13, 2012

Speed up ubuntu



sudo sublime-text /etc/fstab
UUID=3aff8e7d-245a-464e-8eba-3300c78887e5 / ext4 defaults,noatime,discard 0 1
UUID=1AAE-3E55  /boot/efi       vfat    umask=0077      0       1
UUID=bfd812ac-938f-488f-a01d-28a47b16a793 none            swap    sw              0       0

tmpfs   /var/cache                      tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/lock                       tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/log                        tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/tmp                        tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/mail                       tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /run                            tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/spool                      tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /tmp                            tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /home/pedro/.cache              tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/lib/docker/tmpfs           tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0
tmpfs   /var/lib/systemd/timers         tmpfs defaults,auto,noatime,nodiratime,nodev,nosuid,async 0 0




sudo sublime-text/etc/sysctl.conf

vm.swappiness=1
vm.vfs_cache_pressure=50
vm.dirty_background_ratio=10
vm.dirty_ratio=40
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216
After modifying the file should run
sudo sysctl -p --system


Firefox


Type about:config in firefox address bar and click I'll be careful,I promise!.Right click on blank area and create a new string value called ,set its value to






  • Type about:config into the address bar
  •  layers.acceleration.force-enabled -> true
  •  gfx.webrender.all -> all
  • Type browser.cache into the Filter field
  • Set browser.cache.memory.enable to true (double click it)



  • browser.sessionhistory.max_entries 50 -> 5
  • gfx.color_management.mode -> 1
  • gfx.color_management.rendering_intent -> -1 
  • browser.display.auto_quality_min_font_size -> 6 
  • browser.cache.disk.metadata_memory_limit -> 1024
  • browser.cache.disk.preload_chunk_count ->8
  • network.dnsCacheExpiration-> 86400

  • Get rid of application with high I/O usage
    To move the cache in Firefox, in the browser type ‘about:config’,
    right-click anywhere and select
    New –> String,
    browser.cache.disk.parent_directory
    /tmp/firefox
    for a super-fast memory cache

    Close all Firefox tabs and windows, and then restart the browser



    compact firefox DB's:



    for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done
    In firefox:
    extensions.pocket.enabled;false

    CROME


    For chrome edit the icon lanch command:
    default command: /opt/google/chrome/google-chrome %U

    /usr/bin/google-chrome-stable %U --disk-cache-dir='/tmp/chrome/' --disk-cache-size=2147483647



    pedro@pedro:~$ sudo dd if=/dev/zero of=/tmp/t.img bs=4G count=1 oflag=dsync
    0+1 records in
    0+1 records out
    2147479552 bytes (2.1 GB, 2.0 GiB) copied, 5.72344 s, 375 MB/s
    pedro@pedro:~$
    
    #/after tmp as tmpfs
    pedro@pedro:~$ sudo dd if=/dev/zero of=/tmp/t.img bs=4G count=1 oflag=dsync
    [sudo] password for pedro: 
    0+1 records in
    0+1 records out
    2147479552 bytes (2.1 GB, 2.0 GiB) copied, 1.02069 s, 2.1 GB/s
    pedro@pedro:~$ 
    
    
    

    systemd-timesyncd

    sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd