Score:3

Startup of desktop environment is geting progresively slower over time

in flag

I have ubuntu 18.04 installed for >3 years with Xfce desktop environment. Over the last year the startup of desktop environment (i.e. time from log-in before disk finish crunching) became untolerably long (>5minutes?).

This is strange because

  1. I expect linux does not have the same issues as Windows which slow it down over time (Windows gets progressively slower over time, why doesn't Ubuntu?)
  2. Xfce environment should be most light-weight of all desktop environments.

My ideas what could be the cause:

  • I'm pretty sure the slow down has something to do with some disk operations, because the disk crunch terribly.

  • I also think it has something to do with some internet app, because I'm unable to load any web page before the disk finishes to crunch.

  • I was thinking the issue was due to dropbox sync. Really wen I switch of dropbox the startup is significantly faster. But it is not all, even without dropbox it takse lot of time.

  • I would like to investigate what exactly does this huge ammaunt of disk I/O operations in internet access at startup. But I don't know how to do it, especially when the system is a bit frozen and interaction is lagging.

I have read many general articles how to speed up linux startup, e.g. this. But it is to unspecific.

Question:

  • How to investigate what exact app takes most of disk I/O and internet access operations at startup of desktop environment?

  • Are there some processes (e.g. file indexing for search, pre-loading shard libraries ...) which can become more and more demanding a as system gets older (with more files and programs to manage) ? I would like to turn of all such processes.

us flag
This might happen if your HDD is dying. Install GNOME disk and check the disk health. https://help.ubuntu.com/stable/ubuntu-help/disk-check.html.en
Score:0
br flag
MWB

In my opinion, the most likely cause of this is an accumulation of snaps you might have installed over the years. Try

$ snap list

to see what they are.


In general, to see which processes are (currently) doing a lot of I/O, you can use iotop. To see what's using a lot of RAM, you can use htop and then F6 ("SortBy") PERCENT_MEM.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.