Разногласия, приводящие к зависанию Ubuntu и падению интернета (как в промежутке)

Я установил Ubuntu 20.04 на новый SSD, который я только что купил (Samsung EVO 860 500 ГБ). Я люблю это много, НО !!! У меня действительно неприятная проблема! всякий раз, когда я использую Discord, Ubuntu начинает заикаться. Подобно тому, как окна движутся со скоростью 24 кадра в секунду и каждые 3 секунды вся система останавливается на 0,5-1,0 секунды.

Я пытался решить проблему с помощью Discord Canary (альфа-версия программного обеспечения), и она устраняла проблему только тогда, когда я ' я не в голосовом чате! но когда я, проблема остается. Сегодня я попытался поиграть в Minecraft с моими друзьями и использовал Discord для общения с ними. Как я уже говорил выше, проблема возникла именно так, как я уже говорил. Но на этот раз с более серьезной проблемой, каждый раз, когда происходит такое «зависание», я бы «отключался» от своей сети, но не совсем ... Я все еще подключен к WiFi, но сервер в самой игре зависает, и я могу не слышу моих друзей. (Опять же, в течение 0,5-1,0 сек ...)

У меня двойная загрузка с Windows 10. Когда возникла эта проблема, я решил загрузиться в Windows, чтобы проверить, не связана ли проблема с моим интернетом (просто для проверки если проблема с моим интернетом на самом деле является моим интернетом), но я обнаружил, что в Windows 10 нет никаких проблем вообще. Интернет работает отлично (500 мегабит вниз и 100 мегабит вверх).

ПОЖАЛУЙСТА! Это единственная проблема, с которой я столкнулся в Ubuntu, которая действительно расстраивала этот опыт!

Информация об оборудовании: Таким образом, журнал ЗДЕСЬ

0
задан 25 July 2020 в 21:45

1 ответ

From the comments...

Discord and Discord Canary

Discord Canary is alpha level software, which is bad enough, but as you note, it's bombing syslog. Alpha level software should only be run by developers who know how to deal with all of the expected errors. I'd remove Discord Canary and run the normal full release of Discord (if you have to run it at all).

In my opinion, Discord has a number of problems, and I consider it spyware. When you run it, it has code to determine what other applications that you're running... and who's business it that? Certainly not Discord or their developers. Also, if you're running the snap version, it requests permissions to do activity outside of its protective sandbox, which should never happen... and then it REALLY bombs /var/log/syslog and /var/log/auth.log.

I'd first immediately remove Discord Canary, then I'd install the normal "stable" Discord release... not the snap version, but a normal .deb release. See https://discord.com/new/download.

If the "stable" release still has a stuttering problem, try changing vm.swappiness back to 60 and see if that helps... sudo sysctl vm.swappiness=60 (for a temporary change only). If that improves things, to make it permanent...


Set vm.swappiness=60 (based on 16G RAM and 2G SWAP), this way...

sudo -H gedit /etc/sysctl.conf # edit this file

Search for an existing vm.swappiness= entry...

CTRL+f vm.swappiness

  • If found, edit it to say vm.swappiness=60

  • If not found, add vm.swappiness=60 at the end of the file

Save your edits and quit gedit

sudo sysctl -p


Update #1:

To update your /swapfile from 2G to 4G...

Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.

sudo swapoff -a           # turn off swap
sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 16G RAM and 4G swap
reboot                    # reboot and verify operation

Add this line to /etc/fstab...

/swapfile    none    swap    sw      0   0

Update #2:

Updated the Nvidia driver to NVIDIA-Linux-x86_64-450.57.run, and that seems to have fixed it.

0
ответ дан 30 July 2020 в 22:03

Другие вопросы по тегам:

Похожие вопросы: