Announcement

Collapse
No announcement yet.

Soooooo Slooooooooooooowwwwwwwww.........

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Soooooo Slooooooooooooowwwwwwwww.........

    Hello all,

    I am running 18.04 on a Thinkpad X230T with 8GB of memory. I have noticed in the last several months that my computer has slowed down considerably, when I click on things like opening a file, closing a window, etc. it sometimes takes 30 seconds or more for the system to respond, sometimes over a minute. It used to be so quick…

    How do I figure out what is causing this?

    Thanks for your help!

    Jason

    #2
    their are several things that could cause this like the file system filling up , RAM running out or a process running amuck and hogging CPU cycles .

    when the system is being slow run and post the output of these in a konsole .

    1- "findmnt" will show whats mounted where .

    2- "df -h" will show the usage of the mounted file systems .

    3- "free -h" will show how much RAM is in use .
    and
    4- "top" will show the top processes using CPU and how much.

    this should be a good start to finding the problem and since you hint that the system used to be fast I would suspect one of these

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Great, thanks! I'll give it a shot and post the results here.

      Comment


        #4
        So here is what I found when I ran those commands:

        findmnt
        Code:
        TARGET                                SOURCE      FSTYPE      OPTIONS
        /                                     /dev/sda5   ext4        rw,relatime,errors=remount-ro,data=ordered
        ├─/sys                                sysfs       sysfs       rw,nosuid,nodev,noexec,relatime
        │ ├─/sys/kernel/security              securityfs  securityfs  rw,nosuid,nodev,noexec,relatime
        │ ├─/sys/fs/cgroup                    tmpfs       tmpfs       ro,nosuid,nodev,noexec,mode=755
        │ │ ├─/sys/fs/cgroup/unified          cgroup      cgroup2     rw,nosuid,nodev,noexec,relatime,nsdelegate
        │ │ ├─/sys/fs/cgroup/systemd          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,xattr,name=systemd
        │ │ ├─/sys/fs/cgroup/freezer          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,freezer
        │ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,net_cls,net_prio
        │ │ ├─/sys/fs/cgroup/blkio            cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,blkio
        │ │ ├─/sys/fs/cgroup/cpuset           cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,cpuset
        │ │ ├─/sys/fs/cgroup/cpu,cpuacct      cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,cpu,cpuacct
        │ │ ├─/sys/fs/cgroup/devices          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,devices
        │ │ ├─/sys/fs/cgroup/hugetlb          cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,hugetlb
        │ │ ├─/sys/fs/cgroup/rdma             cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,rdma
        │ │ ├─/sys/fs/cgroup/pids             cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,pids
        │ │ ├─/sys/fs/cgroup/memory           cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,memory
        │ │ └─/sys/fs/cgroup/perf_event       cgroup      cgroup      rw,nosuid,nodev,noexec,relatime,perf_event
        │ ├─/sys/fs/pstore                    pstore      pstore      rw,nosuid,nodev,noexec,relatime
        │ ├─/sys/kernel/debug                 debugfs     debugfs     rw,relatime
        │ │ └─/sys/kernel/debug/tracing       tracefs     tracefs     rw,relatime
        │ ├─/sys/fs/fuse/connections          fusectl     fusectl     rw,relatime
        │ └─/sys/kernel/config                configfs    configfs    rw,relatime
        ├─/proc                               proc        proc        rw,nosuid,nodev,noexec,relatime
        │ └─/proc/sys/fs/binfmt_misc          systemd-1   autofs      rw,relatime,fd=25,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14057
        │   └─/proc/sys/fs/binfmt_misc        binfmt_misc binfmt_misc rw,relatime
        ├─/dev                                udev        devtmpfs    rw,nosuid,relatime,size=3910776k,nr_inodes=977694,mode=755
        │ ├─/dev/pts                          devpts      devpts      rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
        │ ├─/dev/shm                          tmpfs       tmpfs       rw,nosuid,nodev
        │ ├─/dev/hugepages                    hugetlbfs   hugetlbfs   rw,relatime,pagesize=2M
        │ └─/dev/mqueue                       mqueue      mqueue      rw,relatime
        ├─/run                                tmpfs       tmpfs       rw,nosuid,noexec,relatime,size=788568k,mode=755
        │ ├─/run/lock                         tmpfs       tmpfs       rw,nosuid,nodev,noexec,relatime,size=5120k
        │ └─/run/user/1000                    tmpfs       tmpfs       rw,nosuid,nodev,relatime,size=788564k,mode=700,uid=1000,gid=1000
        ├─/home                               /dev/sda6   ext4        rw,relatime,data=ordered
        └─/media/jason/My Passport            /dev/sdb1   fuseblk     rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
        free -h
        Code:
                      total        used        free      shared  buff/cache   available
        Mem:           7.5G        5.7G        892M        464M        980M        1.1G
        Swap:          2.3G        1.7G        691M
        df -h
        Code:
        Filesystem      Size  Used Avail Use% Mounted on
        udev            3.8G     0  3.8G   0% /dev
        tmpfs           771M  3.0M  768M   1% /run
        /dev/sda5        21G  9.0G   11G  46% /
        tmpfs           3.8G  108M  3.7G   3% /dev/shm
        tmpfs           5.0M  4.0K  5.0M   1% /run/lock
        tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
        /dev/sda6       186G  175G  2.3G  99% /home
        tmpfs           771M   28K  771M   1% /run/user/1000
        /dev/sdb1       932G  781G  152G  84% /media/jason/My Passport
        top
        Code:
        PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                                                                        
        1311 jason     20   0 4486536 142960  34884 R  23.6  1.8  24:55.30 plasmashell                                                                                                                                                                    
        976 root      20   0  557268 104324  88000 S  10.3  1.3  19:33.11 Xorg                                                                                                                                                                           
        1294 jason     20   0 3228176  39060  20672 S   5.0  0.5   7:28.41 kwin_x11                                                                                                                                                                       
        14654 jason     20   0 1432048 476924  35540 S   3.0  6.0  21:20.84 chrome                                                                                                                                                                         
        14912 jason     20   0 1283660 508640  26872 S   2.7  6.5  13:24.40 chrome                                                                                                                                                                         
        3328 jason     20   0 2080388 232708  78924 S   2.0  3.0  12:11.52 Web Content                                                                                                                                                                    
        4622 jason     20   0 2553852 489100  88432 S   1.3  6.2  28:46.70 Web Content                                                                                                                                                                    
        1378 jason     20   0  757532  35500  30704 S   1.0  0.5   0:13.94 yakuake                                                                                                                                                                        
        2531 jason     20   0  991452  35196  20808 S   1.0  0.4   2:10.16 keepassxc                                                                                                                                                                      
        3158 jason     20   0 2367504 285888  69664 S   1.0  3.6  20:37.29 Web Content                                                                                                                                                                    
        14224 jason     20   0 1643424 215548  48480 S   1.0  2.7  15:46.13 chrome                                                                                                                                                                         
        2989 jason     20   0 8395048 168148  37888 S   0.7  2.1   6:10.71 WebExtensions                                                                                                                                                                  
        14490 jason     20   0 11.989g 144480  26400 S   0.7  1.8   2:11.85 chrome                                                                                                                                                                         
        14882 jason     20   0 1458264 507008  48344 S   0.7  6.4  13:18.52 chrome                                                                                                                                                                         
        14905 jason     20   0 1368680 578168  58452 S   0.7  7.3  13:59.29 chrome                                                                                                                                                                         
        1487 jason     20   0 2177528  23776   3184 S   0.3  0.3   3:24.62 ruby                                                                                                                                                                           
        1729 jason     20   0   10836   2284   2032 S   0.3  0.0   0:57.60 ksysguardd                                                                                                                                                                     
        2682 jason     20   0 2987584 508120  93292 S   0.3  6.4  24:45.82 firefox                                                                                                                                                                        
        2876 jason     20   0 2572376 260844  81796 S   0.3  3.3  14:06.29 Web Content                                                                                                                                                                    
        14438 jason     20   0  746016  49140  24892 S   0.3  0.6   0:44.60 chrome                                                                                                                                                                         
        14455 jason     20   0  832652  87448  22940 S   0.3  1.1   0:44.75 chrome                                                                                                                                                                         
        14509 jason     20   0 2890084  72004  25228 S   0.3  0.9   0:59.68 chrome                                                                                                                                                                         
        14512 jason     20   0  724760  41480  23056 S   0.3  0.5   0:10.94 chrome                                                                                                                                                                         
        14914 jason     20   0  823628  58432  24736 S   0.3  0.7   1:34.66 chrome                                                                                                                                                                         
        18430 jason     20   0   44240   4164   3364 R   0.3  0.1   0:00.12 top                                                                                                                                                                            
          1 root      20   0  225412   5876   4144 S   0.0  0.1   0:01.91 systemd

        Comment


          #5
          what I see hear is ,,,,

          first all your RAM is in use (almost) and swap IS being used , is it a swap partition or swap file ?
          it looks like (from the "top"output) that it's a lot of chrome tabs/windows and firefox eating up the RAM + plasmashell and xorg are using a bit much CPU at the time of the top run .
          your /home partition is prity full as well , a full partition/hard drive will be slower to access than one with some free space , I would say you are about on the outside edge of that .

          try freeing up some space in /home , not having having as meney browser windows/tabs open and watching for what may be eating up so much RAM , browser windows will but 7G is a bit excessive .

          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #6
            OK great, thank you!

            Swap is a partition.

            I try to use Firefox, but I have two different work emails that are gmail and they take up even more memory if I run them in firefox than in chrome, so I have to have two browsers open.

            Didn't realize the home partition would have such an effect, I do need to clear out some junk…

            Comment


              #7
              Also, looking at your swap usage, you may be hitting it too early. You can adjust this 'swappiness' to reduce the tendency of using it too aggressively:
              https://help.ubuntu.com/community/Sw...I_change_it.3F

              It is pretty easy to change and test it for a spell before making it permanent. I would keep to the instructions above, and use the value of 10, which seems to work well.

              Comment


                #8
                How many tabs do you keep open? I use Chrome and if I have 20-30 tabs open, I'll reach 70% or more memory usage with 16GB RAM. Just sayin'

                Please Read Me

                Comment


                  #9
                  It may be system dependent. I have had some machines with gobs of ram hit swap well before I used anywhere near even 75% of it - my PC with 12Gb does this. My 8Gb laptop does not. My old laptop (16Gb) did, and so did my older low ram systems in the past But not my 2Gb Atom machines or 4Gb Chromebooks, oddly enough.

                  Comment


                    #10
                    Originally posted by jpc2769 View Post
                    OK great, thank you!

                    Swap is a partition.

                    I try to use Firefox, but I have two different work emails that are gmail and they take up even more memory if I run them in firefox than in chrome, so I have to have two browsers open.

                    Didn't realize the home partition would have such an effect, I do need to clear out some junk…
                    Why don't you use Thunderbird or a similar mail program, keeping all your mailboxes in one place and eliminating the need for a second browser?
                    If you think Education is expensive, try ignorance.

                    The difference between genius and stupidity is genius has limits.

                    Comment

                    Working...
                    X