linux keeps hanging [closed]
Clash Royale CLAN TAG#URR8PPP
my pc keeps hanging at random moments
it mostly happens when i open a new browser tab or start mpv or something like that
but it doesn't completely lockup
mpd sometimes keeps playing
and i can still control mpd from my phone
sometimes a program stops responding and i can switch to a different tty before it completely freezes
if i run top from there i can see that the program that hangs has state D
google told me D is for using disk
from there i can do normal terminal things unless i goto /home/vista
than that tty also freezes
and if i shutdown it gets stuck on a stop job is running for getty on tty1
and when that timeouts it it has 2 big red FAILED unmounting /home and /tmp
after that it says starting power-off but it never does power off and i have to hold the power button
i dont know whats wrong with /tmp
when its frozen i can still access /tmp and read/write files
running free -m
when its frozen gives me. total used free shared buff/cache available
Mem: 15989 2368 9155 1678 4465 11790
Swap: 0 0 0
my setup is
os: archlinux
cpu: i3
gpu: GeForce GTX 660
ssd for /
3 10 TB in raid5 for /home
and 16GB ram
the drives for the raid and ram are less than 1 year old
the rest is from end 2015 (maybe older but im not sure)
linux mdadm
closed as too broad by Rui F Ribeiro, JigglyNaga, dhag, GAD3R, Jeff Schaller Dec 22 '18 at 1:06
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
|
show 6 more comments
my pc keeps hanging at random moments
it mostly happens when i open a new browser tab or start mpv or something like that
but it doesn't completely lockup
mpd sometimes keeps playing
and i can still control mpd from my phone
sometimes a program stops responding and i can switch to a different tty before it completely freezes
if i run top from there i can see that the program that hangs has state D
google told me D is for using disk
from there i can do normal terminal things unless i goto /home/vista
than that tty also freezes
and if i shutdown it gets stuck on a stop job is running for getty on tty1
and when that timeouts it it has 2 big red FAILED unmounting /home and /tmp
after that it says starting power-off but it never does power off and i have to hold the power button
i dont know whats wrong with /tmp
when its frozen i can still access /tmp and read/write files
running free -m
when its frozen gives me. total used free shared buff/cache available
Mem: 15989 2368 9155 1678 4465 11790
Swap: 0 0 0
my setup is
os: archlinux
cpu: i3
gpu: GeForce GTX 660
ssd for /
3 10 TB in raid5 for /home
and 16GB ram
the drives for the raid and ram are less than 1 year old
the rest is from end 2015 (maybe older but im not sure)
linux mdadm
closed as too broad by Rui F Ribeiro, JigglyNaga, dhag, GAD3R, Jeff Schaller Dec 22 '18 at 1:06
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2
First guess would be swapping; next time it happens look at the output offree -m
. When processes are swapping they cause lots of disk I/O
– Stephen Harris
Dec 21 '18 at 3:12
1
If you think you've a failing disk then scrubbing is one of the sillier things to do. Also remember that RAID is not a replacement for backups.
– roaima
Dec 21 '18 at 20:38
1
"I found a tool for seeing the health of all disks but that's saying all disks are ok". What tool? What lead you to the conclusion that all the disks are fine?
– roaima
Dec 21 '18 at 20:40
1
"I tried a ram tester [...]" Which one? You're too vague in your descriptions.
– roaima
Dec 21 '18 at 20:41
1
@vista_narvas Disabling swap is not going to help. It's going to make the problem worse! Data which was stored on swap has to go somewhere, and disabling swap does not magically remove that need. So when you disable swap, all of the data which was on swap has to be loaded into RAM. That means the kernel has to purge other data from RAM. So your disk cache will shrink and ultimately there may be insufficient RAM for even memory mapped executables and libraries. When that happens the system will constantly be accessing disk to load pages of code every time that code is executed.
– kasperd
Dec 22 '18 at 19:22
|
show 6 more comments
my pc keeps hanging at random moments
it mostly happens when i open a new browser tab or start mpv or something like that
but it doesn't completely lockup
mpd sometimes keeps playing
and i can still control mpd from my phone
sometimes a program stops responding and i can switch to a different tty before it completely freezes
if i run top from there i can see that the program that hangs has state D
google told me D is for using disk
from there i can do normal terminal things unless i goto /home/vista
than that tty also freezes
and if i shutdown it gets stuck on a stop job is running for getty on tty1
and when that timeouts it it has 2 big red FAILED unmounting /home and /tmp
after that it says starting power-off but it never does power off and i have to hold the power button
i dont know whats wrong with /tmp
when its frozen i can still access /tmp and read/write files
running free -m
when its frozen gives me. total used free shared buff/cache available
Mem: 15989 2368 9155 1678 4465 11790
Swap: 0 0 0
my setup is
os: archlinux
cpu: i3
gpu: GeForce GTX 660
ssd for /
3 10 TB in raid5 for /home
and 16GB ram
the drives for the raid and ram are less than 1 year old
the rest is from end 2015 (maybe older but im not sure)
linux mdadm
my pc keeps hanging at random moments
it mostly happens when i open a new browser tab or start mpv or something like that
but it doesn't completely lockup
mpd sometimes keeps playing
and i can still control mpd from my phone
sometimes a program stops responding and i can switch to a different tty before it completely freezes
if i run top from there i can see that the program that hangs has state D
google told me D is for using disk
from there i can do normal terminal things unless i goto /home/vista
than that tty also freezes
and if i shutdown it gets stuck on a stop job is running for getty on tty1
and when that timeouts it it has 2 big red FAILED unmounting /home and /tmp
after that it says starting power-off but it never does power off and i have to hold the power button
i dont know whats wrong with /tmp
when its frozen i can still access /tmp and read/write files
running free -m
when its frozen gives me. total used free shared buff/cache available
Mem: 15989 2368 9155 1678 4465 11790
Swap: 0 0 0
my setup is
os: archlinux
cpu: i3
gpu: GeForce GTX 660
ssd for /
3 10 TB in raid5 for /home
and 16GB ram
the drives for the raid and ram are less than 1 year old
the rest is from end 2015 (maybe older but im not sure)
linux mdadm
linux mdadm
edited Dec 25 '18 at 17:49
asked Dec 21 '18 at 0:36
vista_narvas
11
11
closed as too broad by Rui F Ribeiro, JigglyNaga, dhag, GAD3R, Jeff Schaller Dec 22 '18 at 1:06
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as too broad by Rui F Ribeiro, JigglyNaga, dhag, GAD3R, Jeff Schaller Dec 22 '18 at 1:06
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
2
First guess would be swapping; next time it happens look at the output offree -m
. When processes are swapping they cause lots of disk I/O
– Stephen Harris
Dec 21 '18 at 3:12
1
If you think you've a failing disk then scrubbing is one of the sillier things to do. Also remember that RAID is not a replacement for backups.
– roaima
Dec 21 '18 at 20:38
1
"I found a tool for seeing the health of all disks but that's saying all disks are ok". What tool? What lead you to the conclusion that all the disks are fine?
– roaima
Dec 21 '18 at 20:40
1
"I tried a ram tester [...]" Which one? You're too vague in your descriptions.
– roaima
Dec 21 '18 at 20:41
1
@vista_narvas Disabling swap is not going to help. It's going to make the problem worse! Data which was stored on swap has to go somewhere, and disabling swap does not magically remove that need. So when you disable swap, all of the data which was on swap has to be loaded into RAM. That means the kernel has to purge other data from RAM. So your disk cache will shrink and ultimately there may be insufficient RAM for even memory mapped executables and libraries. When that happens the system will constantly be accessing disk to load pages of code every time that code is executed.
– kasperd
Dec 22 '18 at 19:22
|
show 6 more comments
2
First guess would be swapping; next time it happens look at the output offree -m
. When processes are swapping they cause lots of disk I/O
– Stephen Harris
Dec 21 '18 at 3:12
1
If you think you've a failing disk then scrubbing is one of the sillier things to do. Also remember that RAID is not a replacement for backups.
– roaima
Dec 21 '18 at 20:38
1
"I found a tool for seeing the health of all disks but that's saying all disks are ok". What tool? What lead you to the conclusion that all the disks are fine?
– roaima
Dec 21 '18 at 20:40
1
"I tried a ram tester [...]" Which one? You're too vague in your descriptions.
– roaima
Dec 21 '18 at 20:41
1
@vista_narvas Disabling swap is not going to help. It's going to make the problem worse! Data which was stored on swap has to go somewhere, and disabling swap does not magically remove that need. So when you disable swap, all of the data which was on swap has to be loaded into RAM. That means the kernel has to purge other data from RAM. So your disk cache will shrink and ultimately there may be insufficient RAM for even memory mapped executables and libraries. When that happens the system will constantly be accessing disk to load pages of code every time that code is executed.
– kasperd
Dec 22 '18 at 19:22
2
2
First guess would be swapping; next time it happens look at the output of
free -m
. When processes are swapping they cause lots of disk I/O– Stephen Harris
Dec 21 '18 at 3:12
First guess would be swapping; next time it happens look at the output of
free -m
. When processes are swapping they cause lots of disk I/O– Stephen Harris
Dec 21 '18 at 3:12
1
1
If you think you've a failing disk then scrubbing is one of the sillier things to do. Also remember that RAID is not a replacement for backups.
– roaima
Dec 21 '18 at 20:38
If you think you've a failing disk then scrubbing is one of the sillier things to do. Also remember that RAID is not a replacement for backups.
– roaima
Dec 21 '18 at 20:38
1
1
"I found a tool for seeing the health of all disks but that's saying all disks are ok". What tool? What lead you to the conclusion that all the disks are fine?
– roaima
Dec 21 '18 at 20:40
"I found a tool for seeing the health of all disks but that's saying all disks are ok". What tool? What lead you to the conclusion that all the disks are fine?
– roaima
Dec 21 '18 at 20:40
1
1
"I tried a ram tester [...]" Which one? You're too vague in your descriptions.
– roaima
Dec 21 '18 at 20:41
"I tried a ram tester [...]" Which one? You're too vague in your descriptions.
– roaima
Dec 21 '18 at 20:41
1
1
@vista_narvas Disabling swap is not going to help. It's going to make the problem worse! Data which was stored on swap has to go somewhere, and disabling swap does not magically remove that need. So when you disable swap, all of the data which was on swap has to be loaded into RAM. That means the kernel has to purge other data from RAM. So your disk cache will shrink and ultimately there may be insufficient RAM for even memory mapped executables and libraries. When that happens the system will constantly be accessing disk to load pages of code every time that code is executed.
– kasperd
Dec 22 '18 at 19:22
@vista_narvas Disabling swap is not going to help. It's going to make the problem worse! Data which was stored on swap has to go somewhere, and disabling swap does not magically remove that need. So when you disable swap, all of the data which was on swap has to be loaded into RAM. That means the kernel has to purge other data from RAM. So your disk cache will shrink and ultimately there may be insufficient RAM for even memory mapped executables and libraries. When that happens the system will constantly be accessing disk to load pages of code every time that code is executed.
– kasperd
Dec 22 '18 at 19:22
|
show 6 more comments
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
2
First guess would be swapping; next time it happens look at the output of
free -m
. When processes are swapping they cause lots of disk I/O– Stephen Harris
Dec 21 '18 at 3:12
1
If you think you've a failing disk then scrubbing is one of the sillier things to do. Also remember that RAID is not a replacement for backups.
– roaima
Dec 21 '18 at 20:38
1
"I found a tool for seeing the health of all disks but that's saying all disks are ok". What tool? What lead you to the conclusion that all the disks are fine?
– roaima
Dec 21 '18 at 20:40
1
"I tried a ram tester [...]" Which one? You're too vague in your descriptions.
– roaima
Dec 21 '18 at 20:41
1
@vista_narvas Disabling swap is not going to help. It's going to make the problem worse! Data which was stored on swap has to go somewhere, and disabling swap does not magically remove that need. So when you disable swap, all of the data which was on swap has to be loaded into RAM. That means the kernel has to purge other data from RAM. So your disk cache will shrink and ultimately there may be insufficient RAM for even memory mapped executables and libraries. When that happens the system will constantly be accessing disk to load pages of code every time that code is executed.
– kasperd
Dec 22 '18 at 19:22