ubuntu16.02占用内存,8G内存条只剩下几百兆,高手帮忙分析下

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
guoqiang5277
帖子: 20
注册时间: 2011-01-27 11:39

ubuntu16.02占用内存,8G内存条只剩下几百兆,高手帮忙分析下

#1

帖子 guoqiang5277 » 2016-09-06 23:08

ubuntu16.02占用内存,8G内存条只剩下几百兆,
使用free命令查看的结果。

代码: 全选

james@james-work-pc:~$ free
              total        used        free      shared  buff/cache   available
Mem:        8086840     7438956      128896      156172      518988      168120
Swap:       8299516     1281864     7017652
james@james-work-pc:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7897        7222         154         153         519         205
Swap:          8104        1246        6858
james@james-work-pc:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7897        7219         128         159         549         204
Swap:          8104        1247        6857

另外具体的进程见附件。
帮忙分析一下,安装了哪些没有用的程序。
刚开机的时候,速度还行,没有那么卡,开机过一会就开始卡了。
附件
meminfo.txt
这个是 cat /proc/meminfo 命令
(1.22 KiB) 已下载 49 次
bb.txt
这个是 ps -aux 命令
(27.03 KiB) 已下载 44 次
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.02占用内存,8G内存条只剩下几百兆,高手帮忙分析下

#2

帖子 poloshiao » 2016-09-07 7:14

free
total used free shared buff/cache available
Mem: 8086840 7438956 128896 156172 518988 168120
Swap: 8299516 1281864 7017652
bb.txt
james 3924 6.4 68.4 6366320 5533428 ? Dl 19:06 14:55 /usr/bin/python /usr/lib/python2.7/dist-packages/rabbitvcs/services/checkerservice.pyc
0. 佔用 RAM 將近 70%
%MEM 68.4%
COMMAND
/usr/bin/python
/usr/lib/python2.7/dist-packages/rabbitvcs/services/checkerservice.pyc
START 19:06
TIME 14:55 ?

把下面指令 複製 貼進終端機 執行
1. sudo cat /etc/fstab
2. sudo swapon -s
3. sudo fdisk -l /dev/ram*
把結果全部直接 選取/複製/貼上來
头像
九天星
帖子: 1441
注册时间: 2007-07-14 20:45

Re: ubuntu16.02占用内存,8G内存条只剩下几百兆,高手帮忙分析下

#3

帖子 九天星 » 2016-09-07 10:04

我想,free看的结果是不是不太准???
我在HTOP里看到的和FREE看到的内存使用情况差距很大。


还有,我的交换空间的使用率基本全部都是0
free -m
total used free shared buffers cached
Mem: 7887 2740 5146 185 62 1442
-/+ buffers/cache: 1235 6651
Swap: 1951 0 1951
guoqiang5277
帖子: 20
注册时间: 2011-01-27 11:39

Re: ubuntu16.02占用内存,8G内存条只剩下几百兆,高手帮忙分析下

#4

帖子 guoqiang5277 » 2016-09-07 14:10

poloshiao 写了:
free
total used free shared buff/cache available
Mem: 8086840 7438956 128896 156172 518988 168120
Swap: 8299516 1281864 7017652
bb.txt
james 3924 6.4 68.4 6366320 5533428 ? Dl 19:06 14:55 /usr/bin/python /usr/lib/python2.7/dist-packages/rabbitvcs/services/checkerservice.pyc
0. 佔用 RAM 將近 70%
%MEM 68.4%
COMMAND
/usr/bin/python
/usr/lib/python2.7/dist-packages/rabbitvcs/services/checkerservice.pyc
START 19:06
TIME 14:55 ?

把下面指令 複製 貼進終端機 執行
1. sudo cat /etc/fstab
2. sudo swapon -s
3. sudo fdisk -l /dev/ram*
把結果全部直接 選取/複製/貼上來
命令1执行结果

代码: 全选

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=ba2b538d-eb56-41dc-b8ec-8b707b51d1ad /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=9009-436C  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda8 during installation
UUID=6e8244b4-8c65-429e-8cd4-93cade15c5ca none            swap    sw              0       0
/dev/disk/by-uuid/4610F72210F7181F /mnt/4610F72210F7181F auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth 0 0
/dev/sda6 /media/james/data auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth 0 0
命令2执行结果

代码: 全选

Filename				Type		Size	Used	Priority
/dev/sda8                              	partition	8299516	1202956	-1
命令3执行结果

代码: 全选

Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.02占用内存,8G内存条只剩下几百兆,高手帮忙分析下

#5

帖子 poloshiao » 2016-09-07 18:00

/dev/disk/by-uuid/4610F72210F7181F /mnt/4610F72210F7181F auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth 0 0
/dev/sda6 /media/james/data auto nosuid,nodev,nofail,x-gvfs-show,x-udisks-auth 0 0
把下面指令 複製 貼進終端機 執行
1. sudo ls -al /dev/disk/by-uuid/* | grep sda6
把結果全部直接 選取/複製/貼上來
回复