Board logo

標題: ubuntu 讀寫大file時,操作lag lag 地 [打印本頁]

作者: bongbong3481    時間: 2021-10-31 14:57     標題: ubuntu 讀寫大file時,操作lag lag 地

本帖最後由 bongbong3481 於 2021-10-31 17:48 編輯

當讀寫大型file ,成個系統反應就lag。

直接係PCManFM COPY HARD DISK(EXT4) 入邊 大約5-6個FILE 20G , 然後PASTE到 SDD (EXT4)

[attach]2290501[/attach]
作者: fakeman    時間: 2021-10-31 15:34

當讀寫大型file ,成個系統反應就lag
bongbong3481 發表於 2021-10-31 14:57



    冇 details 你想其他人點估?咩hardware,咩 process 做 read/write.....乜都唔知
作者: bongbong3481    時間: 2021-10-31 17:48

回覆 2# fakeman


補番資料, 直接係PCManFM COPY HARD DISK(EXT4) 入邊 大約5-6個FILE 20G , 然後PASTE 到 SDD (EXT4)
作者: fakeman    時間: 2021-10-31 18:57

OS 裝係 HDD or SSD?
如果 HDD 嘅話,你 copy 時同 system 其他嘢搶 resources (OS 都有 swap or other disk IO),我覺得正常有 d lag 唔奇
作者: bongbong3481    時間: 2021-10-31 19:05

回覆 4# fakeman


OS 裝係SSD, lag lag 地陣,有睇過RAM USAGE(未用滿), 我估計SWAP應該沒咩點用
作者: super_hkg    時間: 2021-10-31 20:47

用command line cp -rf 會快過PCManFM

原因不明
作者: bongbong3481    時間: 2021-11-1 07:55

回覆 6# super_hkg


  用command cp 都是lag lag地。
作者: KinChungE    時間: 2021-11-1 09:07

用top睇下cpu usage
作者: dukelec    時間: 2021-11-1 16:32

copy 完畢手動敲命令: sync
作者: theluxman    時間: 2021-11-1 16:38

try to use rsync to copy the file over to ssd.  ( rsync -avz source/ target /)

**google for detail
作者: bongbong3481    時間: 2021-11-1 19:29

try to use rsync to copy the file over to ssd.  ( rsync -avz source/ target /)

**google for detail ...
theluxman 發表於 2021-11-1 16:38



    你意思指用rsnyc 控制佢既速度?  咁都好煩
作者: chue    時間: 2021-11-2 01:28

同你計一計.5,6個 file 20g,唔係 ubuntu 問題,唔信,你用 win10 試下
作者: bongbong3481    時間: 2021-11-2 07:43

公司win10 沒呢個問題,我覺得是ubuntu 問題了
作者: Okt04175    時間: 2021-11-2 09:59

Ubuntu版本同Linux核心版本係幾多?
作者: bongbong3481    時間: 2021-11-2 21:20

回覆 14# Okt04175


    ubuntu 18.04.6  /   kernel:  5.3.0-53-generic
作者: ghostkcleung    時間: 2021-11-3 00:08

本帖最後由 ghostkcleung 於 2021-11-3 00:11 編輯

即係話個 Linux 有其他嘢一直讀緊隻 Hard-disk,
當你 Read 緊 file 嗰陣,佢咪等緊囉。

又或者會唔會係 RAM 唔夠,
個系統用緊 Swap
作者: bongbong3481    時間: 2021-11-3 07:40

回覆 16# ghostkcleung

我記得當時用緊firefox, vmhorizon view client, 另外睇過ram 都有好多
作者: chancho    時間: 2021-11-3 08:38

you can use "iotop" to see what program is accessing the hard disk
作者: javacomhk    時間: 2021-11-3 12:14

Enable TRIM
作者: bongbong3481    時間: 2021-11-3 19:13

回覆 19# javacomhk


    都有可能,得閑試下先
作者: bongbong3481    時間: 2021-11-3 20:24

本帖最後由 bongbong3481 於 2021-11-3 21:23 編輯

回覆 19# javacomhk


    請問, 以下是否TRIM左?  另外, 再試COPY & PASTE, 都是LAG

● fstrim.timer - Discard unused blocks once a week
   Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: ena
   Active: active (waiting) since Wed 2021-11-03 20:06:15 CST; 16min ago
  Trigger: Mon 2021-11-08 00:00:00 CST; 4 days left
     Docs: man:fstrim

11月 03 20:06:15 leefamily-H310M-H-2-0 systemd[1]: Started Discard unused blocks
作者: little_keung    時間: 2021-11-3 20:25

回覆 1# bongbong3481


    5-6 個 20GB files , 正常 file utility 抄一定 LAG 啦 !!


PS. 叫人開 coreutil 中 cp 個 src code 睇會唔會太串 ??? But this is open source.

PPS. 不過估唔到用 rsync 可能無咁LAG .





歡迎光臨 電腦領域 HKEPC Hardware (https://www.hkepc.com/forum/) Powered by Discuz! 7.2