SSD Continuously Running?

Snort McDork

Active Member
Joined
Apr 4, 2020
Messages
159
Reaction score
62
Credits
1,504
On the front panel of this machine, is the indicator light that tells me the HD is performing something. Normally, it is not that active. But all day today, I've noticed it running non-stop. I've done a re-start twice now, and it it is still going. It kinda worries me. I first thought I was getting updates installed, but there is nothing indicating what task it is doing. Does any one have any idea what this might be? This is the first time this has happened.
 

Attachments

  • 0.00 0.0-0 nice hat-02-19-49.jpg
    0.00 0.0-0 nice hat-02-19-49.jpg
    37.8 KB · Views: 22


On the front panel of this machine, is the indicator light that tells me the HD is performing something. Normally, it is not that active. But all day today, I've noticed it running non-stop. I've done a re-start twice now, and it it is still going. It kinda worries me. I first thought I was getting updates installed, but there is nothing indicating what task it is doing. Does any one have any idea what this might be? This is the first time this has happened.
There are numerous programs to enable the user to see what is happening on the machine. A common one is htop in a terminal. One can open a terminal, preferably one which occupies a large part of the screen so all the output fits and can be viewed, and run: htop.

The display will show, by default at the top of the screen, the activity of each cpu core, memory usage and total, and swap usage. In the columns under the titlebar, are shown the processes that are using the machine. It updates every few seconds so as processes come and go, they show up for the user who is viewing the output.

In particular, what may be of interest are the processes that are consuming memory and the cpu. With a mouse click on "CPU%" or "MEM%", the columns of either of those features will list what's using them, shown from greatest users down. The "Command" column shows the processes. For help with manipulating the output, press F1 to see the commands that alter htop itself.

Another program that provides similar information is top. And a further one is glances which has a different presentation of similar but also other information.

If the issue is networking, one can watch what's happening on the network with the programs: vnstat, or as root, iftop or nethogs. There's some learning involved for using each of these programs to get the best out of them and understand the outputs. There are many other network monitors too. Linux has an abundance of such tools all with slightly difference nuances and with more or less information in the outputs.

To view what the machine is listening for, one can run: ss -tulpen which shows the ports on the systems used for listening, for example if ssh service is listening for inputs. If the ssh daemon is running, one can check it in the htop output by clicking on the search function in htop at the bottom of the page, entering "ssh" and htop will show the stats for it by highlighting the relevant line. If nothing is currently connecting by ssh, then usually there is no cpu or memory usage.
 
Last edited:
Thanks for the feedback and responding.About 2 hours ago it stopped running, and is now performing normally. It kinda freaked me out because I thought maybe there was a program running I was not aware of. Then I thought, or asked myself if it was doing some defrag operation. And this is a 1tb drive. That's honestly what I thought it was doing. I will make note of these for future reference. I'm hoping I can get my neighbors brother to stop by-as she claims he may know this OS. So fingers crossed for that one.
 
Thanks for the feedback and responding.About 2 hours ago it stopped running, and is now performing normally. It kinda freaked me out because I thought maybe there was a program running I was not aware of. Then I thought, or asked myself if it was doing some defrag operation. And this is a 1tb drive. That's honestly what I thought it was doing. I will make note of these for future reference. I'm hoping I can get my neighbors brother to stop by-as she claims he may know this OS. So fingers crossed for that one.
Why you have not run htop program as instructed?
 
Excuse me. But if you cannot ask a question in a more diplomatic manner, it's best to not ask it at all.
I'm highly offended by your tone.
He was referring to @osprey's reply, nothing more. We don't do tone policing and not everyone's first language is English. Thanks for understanding.

On most distributions sshd is only running if you either installed it or enabled it.
Code:
systemctl status sshd
Not sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
Code:
systemctl disable sshd --now
 
Last edited:
He was referring to @osprey's reply, nothing more. We don't do tone policing and not everyone's first language is English. Thanks for understanding.

On most distributions sshd is only running if you either installed it or enabled it.
Code:
systemctl status sshd
Not sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
Code:
systemctl disable sshd --now
I didn't mean to say it was spinning like a regular HD. What I was concerned about was it was clearly performing some thing for over several hours. Indicator light on panel indicated that. I was concerned because I've never seen it do this before. It was just unusual to me. And while I'm here, let me just say I responded the way I did because I was (I believe) given some instructions/feedback on how to investigate this situation through "Terminal". I am not good with terminal. There are things I don't understand which kinda requires I hope a friend (who is 2 hours from me) is in my area so I can catch him for a few to explain what something means. And unfortunately, his wife just had another baby, so I'm not likely going to see him for the foreseeable future-at least this Summer. I try to understand terminal, but I get frustrated very easily. So I give up.
 
Last edited:
I didn't mean to say it was spinning like a regular HD. What I was concerned about was it was clearly performing some thing for over several hours. Indicator light on panel indicated that. I was concerned because I've never seen it do this before. It was just unusual to me.
Are you still seeing the light indicator going on and off of your HD?

Have you tried what I mentioned since you were talking about sshd?
On most distributions sshd is only running if you either installed it or enabled it.
systemctl status sshdNot sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
systemctl disable sshd --now
And while I'm here, let me just say I responded the way I did because I was (I believe) given some instructions/feedback on how to investigate this situation through "Terminal". I am not good with terminal.
@osprey did take the time to write you a very detailed response to help you investigate this, it sounds kind of ungrateful if you brush it off by not using that with "because I'm not good with the terminal". You are never too old to learn and no one is expected to know everything, and you could have started by trying what he said and then sharing your output/findings here. So that then others could help you figure this out further.
 
Excuse me. But if you cannot ask a question in a more diplomatic manner, it's best to not ask it at all.
I'm highly offended by your tone.
Hahaha. You don't need to answer my question, it's ok.

Let me rephrase my thoughts: You went here to get assistance with a problem, you received it, but you refuse to implement suggested troubleshooting steps. That is concerning.
Does it mean you don't want your problems to be resolved? I highly suspect so.
 
Last edited:
Maarten, the OP was referring to his SSD (Solid State Drive) mistakenly as SSHD.

@Snort McDork in future please call it SSD.

I am renaming the Thread title to remedy confusion.

Cheers

Wizard
 
When I turn off my Tower or Laptop...everything stops working...I wish I had a computer that worked without power.
1781841640959.gif
 
Maarten, the OP was referring to his SSD (Solid State Drive) mistakenly as SSHD.
Why did I not think of that lol. Thanks Chris!

@Snort McDork You can ignore this then.
Code:
systemctl status sshd
Not sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
Code:
systemctl disable sshd --now
 
Last edited:
For someone whose first language is not English, you do brilliantly, my friend. ;)
 
^^^^^...what he said x 2 ^^^^^
 
I didn't mean to say it was spinning like a regular HD. What I was concerned about was it was clearly performing some thing for over several hours. Indicator light on panel indicated that. I was concerned because I've never seen it do this before. It was just unusual to me. And while I'm here, let me just say I responded the way I did because I was (I believe) given some instructions/feedback on how to investigate this situation through "Terminal". I am not good with terminal. There are things I don't understand which kinda requires I hope a friend (who is 2 hours from me) is in my area so I can catch him for a few to explain what something means. And unfortunately, his wife just had another baby, so I'm not likely going to see him for the foreseeable future-at least this Summer. I try to understand terminal, but I get frustrated very easily. So I give up.
Good to hear that the "problem" has disappeared.

The following thoughts arose in relation to the issue.

It should be clear that a user doesn't need to be knowledgeable about the terminal in the first instance to have it be useful in the case of a problem.

The issue in post #1 was about a process that appeared to be running which raised the question of "what might this be?"

The suggestion was to run htop because that application shows what's running on a machine. One doesn't need to know everything about the output of htop in order for the output to be useful to them. If a user runs it, and presents the output to the forum, then readers who can understand the output well, could help the original poster to interpret the details. Then, hopefully expose what the issue is. Once the issue is known, then some form of managing it can be formulated.

Below is an example of the output of htop. The information it provides can be made clear to any interested viewer without inducing "terminal phobia".

The following are some explanations of the output with reference to the image of htop output below.

The top of the output shows 20 cpu cores which this machine runs, and the activity in each. Looking at the output shows that only cores 2, 6 and 10 are in use at the moment this htop output was made.

Directly below the cpu cores is a visual representation of the memory being used shown by "Mem" together with the numerical values. It shows that 2.07 gigabytes of memory are being used on a machine with 15.3 gigabytes of memory.

The "Swp" is the amount of "swap memory" that is being used. None is being used in a swap partition which 14.9 gigabytes in size. When the machine was first installed with a distro, a partition was created for swap memory which is used by the kernel if it decides there's a shortage of RAM to do what needs to be done. Not all machines have such swap partitions.

The "Uptime" value is the amount of time the machine has been running, which in this case is 13 hours, 17 minutes and 35 seconds.

Looking at the "Main" output, the display shows which processes are running on the machine. The values that are convenient to view for this particular issue are the CPU% and the MEM% because these values rise and fall as processes ebb and flow. If a process is running wild, it'll likely be using cpu and RAM in quantity.

The output on this htop instance shows that the listing of processes is ordered according to the MEM% value, which is clear from the highlighted color of "MEM%" on the titlebar. If one clicks on another variable, the ordering will usually change to show highest to lowest of that variable. Note that the values for memory in the VIRT, RES and SHR columns are in kilobytes unless with an M indicating megabytes or G indicating gigabytes.

The output shows 3.1% of memory is used by the waterfox browser, with extra memory used by its sub-processes.

Very little was happening on this machine when the htop output was screenshot. If, however, the machine was writing logs, much more memory would be being used, and the drive would be being accessed from RAM, and therefore the drive indicator light on the computer would have been flashing as the logs were being written. If htop was being run at that time, it would have shown that systemd was writing logs, and therefore, the flashing of the drive indicator light would not have been suspicious. The upshot is that the viewing of htop output at the time the drive indicator light was flashing could have been instructive about this particular issue.

The list of options at the bottom of the htop output show functions that htop can perform, one of which is "Kill". If a process is shown to be running wild in htop output, it can be killed by highlighting it and clicking on the "Kill" button. All being said, I think htop is very useful for issues such as those described in post #1 and is not particularly difficult to come to grips with. Hopefully these few observations can help dispel some reluctance to use linux's array of useful terminal apps. There's nothing to lose but one's ignorance :-) . Of course, one needs to feel ready for the adventure.

htop2.png
 
Last edited:


Follow Linux.org

Members online


Latest posts

Top