LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-06-2017, 01:50 AM   #61
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled

Good morning .

Will do as you suggest. Just two things for clarity:

1. /dev/sda6 is /home
2. For what it is worth: prior to the start of "ticking" there is a short burst of major activity on the drive, I don't know what happens but I can hear it. Right after it is over ticking starts.

HTH. Till then...
 
Old 11-06-2017, 04:59 AM   #62
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
This is trying to narrow down culprits.With /home on /dev/sda6, be sure to get that offline, as if /home is causing it, that narrows it hugely. If /home is the troublespot, you could refine the output with
Code:
lsof |grep home >file.txt
to include /home and drop all other crud.
 
Old 11-06-2017, 12:11 PM   #63
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by IsaacKuo View Post
Skimming through part of this thread...is /home mounted on a spinning hard drive (/dev/sda)? If so, then it could be any number of things related to X and the desktop environment periodically writing to the hard drive. If you have any sort of web browser or numerous other sorts of software running, there will be periodic writes (these generally assist in recovering what you were working on in case of a power failure or software crash).

If you have /home on a spinning hard drive, I think you're just going to have to live with the system writing to /home often. If the noise is annoying to you, put /home on the SSD instead. You can use symlinks to link to the spinning hard drive for stuff which is too big to fit on the SSD.

Although it's annoying, I would recommend nesting those symlinks within a folder so they are not directly in ~. If you don't, then even something as simple as "ls" in bash can access and probably spin up the hard drive (even if just to see whether or not the symlink is broken).
I tend to agree with this.
aditionally. I hadn't twigged that / is also mounted on the same hard drive.
For some reason I had thought this was about mounted but otherwise unused drives making noise. If the drive is used then I would expect it to be spinning and ready.
 
Old 11-06-2017, 12:42 PM   #64
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
I tend to agree with this.
aditionally. I hadn't twigged that / is also mounted on the same hard drive.
For some reason I had thought this was about mounted but otherwise unused drives making noise. If the drive is used then I would expect it to be spinning and ready.
That is a misunderstanding. / is on /dev/sdc2 on a SSD, while /home is on /dev/sda6 on a spinning disk. The latter is producing the noise (about once every 6 weeks). I want to know what causes it. I don't want writing processes to my SSD the amount of data and general purpose of which I don't understand.
 
Old 11-06-2017, 01:10 PM   #65
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
@IsaacKuo & 273: I think the OP's complaint is not about continual accesses, but about noise coming from the drive as in it doing (intermittently) successive seeks, e.g. Track 1; Track 100,000; track 1; track 100,000; etc. The platter spins, and that's not stop/starting.

I'm trying to get a diff of running processes with it misbehaving vs running processes when good. Then we'll have a shortlist of suspects. Any improvements on my strategy to achieve that welcome

@JZL240I-U: Could you temporarily mount /home on one of your other drives? If you had something like
Code:
/dev/sdb3        /home         auto	<options>
in /etc/fstab and took out /dev/sda6, that would remove it from the equation while the diagnostics were going on. There's no need to modify the original /home. If it cured the problem, it probably was a seek to / followed by a seek to /home; If it MOVED the problem, it's home related

Last edited by business_kid; 11-06-2017 at 02:12 PM.
 
Old 11-06-2017, 02:32 PM   #66
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Oh, I understand but I also think it's incredibly stupid to avoid putting /home on the SSD. The problem could be solved 100% in minutes, rather than trying fruitlessly for months (already!) to track it down when so many processes and applications write to /home. It would be extremely difficult to narrow down which one is the culprit.

Although I do know a very easy way to tell what stuff is being written to in /home/me/ on the fly:

Simply use rsync to make a backup copy of /home/me/ with:

Code:
rsync -vaxAXH /home/me/. /SomewhereOnTheSSD/me/
Run this a second time, and you'll see whatever has been changed between them. You can use the --exclude option to exclude folders or files that are too big to fit in the destination.

If you find some stuff that you don't like being written to on your SSD, then just symlink it to somewhere on the hard drive instead.

Since I use rsync to backup /home a lot (especially for my RAMBOOT systems), I have a good idea what all changes from minute to minute typically. It just isn't very much stuff. It's no big deal to put it on an SSD or even a cheap USB drive.
 
Old 11-07-2017, 02:58 AM   #67
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The disk that has the noise we have chased for months now it appears has / & /home. Moving it purely for the duration of his diagnostics narrows that down, and (after months as you say) is a good thing for diagnostic purposes, would you agree? Let the OP worry about the ideal drive arrangement of his system at a later stage when we have this sorted.
 
Old 11-08-2017, 11:31 AM   #68
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
@IsaacKuo & 273: I think the OP's complaint is not about continual accesses, but about noise coming from the drive as in it doing (intermittently) successive seeks, e.g. Track 1; Track 100,000; track 1; track 100,000; etc. The platter spins, and that's not stop/starting.
Yes.

Quote:
Originally Posted by business_kid View Post
@JZL240I-U: Could you temporarily mount /home on one of your other drives? If you had something like
Code:
/dev/sdb3        /home         auto	<options>
in /etc/fstab and took out /dev/sda6, that would remove it from the equation while the diagnostics were going on.
No. There is space on the same disk (sda), but then the problem might be disk-related, so...
 
Old 11-08-2017, 11:37 AM   #69
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
For a disk mounted as /home, with files being written to or read from all the time during use I would expect to hear thje drive making fairly regular reads and writes from different portions of the disk. for a drive in use this sounds normal to me.
 
Old 11-08-2017, 11:40 AM   #70
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by IsaacKuo View Post
Oh, I understand but I also think it's incredibly stupid to avoid putting /home on the SSD.
That depends on the amount of data in /home versus the size of the SSD -- which is wayyy to small. Thanks for the compliments all the while .

The rest of your ideas are just fine but for one problem: This "ticking" comes in irregular intervals of 6 - 8 weeks or so, so there will be a lot of innocuous changes. Or did you mean to start "rsyncing" twice only when the symptoms are there?
 
Old 11-08-2017, 11:47 AM   #71
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The disk that has the noise we have chased for months now it appears has / & /home.
No, no, and no. As stated most recently in post #64 :
Quote:
That is a misunderstanding. / is on /dev/sdc2 on a SSD, while /home is on /dev/sda6 on a spinning disk.
Quote:
Originally Posted by business_kid View Post
Moving it purely for the duration of his diagnostics narrows that down, and (after months as you say) is a good thing for diagnostic purposes, would you agree? Let the OP worry about the ideal drive arrangement of his system at a later stage when we have this sorted.
I just had an idea of how to achieve the new home in spite of the problems outlined above. Let me think on this, I'll be back.

One drawback of this scheme would be that we would have to wait (indefinitely) whether the symptoms recurr or not and never finding out what caused it in the first place.

Last edited by JZL240I-U; 11-09-2017 at 01:04 AM.
 
Old 11-08-2017, 11:52 AM   #72
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
For a disk mounted as /home, with files being written to or read from all the time during use I would expect to hear thje drive making fairly regular reads and writes from different portions of the disk. for a drive in use this sounds normal to me.
It is definitely not normal. Prior to the &quot;ticking&quot; there is a burst of activity on the disk and the &quot;ticking&quot; itself is quite distinct from the normal use of the disk. I can hear it right now, it is really quiet and certainly no pendulum-steady accesses in spaces of less than 1 second occur.

Last edited by JZL240I-U; 11-13-2017 at 11:54 AM.
 
Old 11-08-2017, 11:56 AM   #73
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by JZL240I-U View Post
That depends on the amount of data in /home versus the size of the SSD -- which is wayyy to small. Thanks for the compliments all the while .
You're welcome . I mean, I'd apologize but off the top of my head I can't think of a way to apologize which doesn't sound patronizing (You know, "Sorry not sorry" type apologies).

I've made my opinion of the problem and what I see as a simple solution clear and blunt already. Beyond that, I'd rather not be antagonistic.

Quote:
The rest of your ideas are just fine but for one problem: This "ticking" comes in irregular intervals of 6 - 8 weeks or so, so there will be a lot of innocuous changes. Or did you mean to start "rsyncing" twice only when the symptoms are there?
You can do it only when the symptoms are there, but I'd also do it every once in a while because that will give you an idea of what sort of stuff is changing normally on a day to day basis.

Who knows? You might catch something odd changing from one day to the next, indicative of the problem process making noise during a time you're not at the computer (or didn't notice the noise at the time).
 
Old 11-08-2017, 12:07 PM   #74
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by JZL240I-U View Post
It is definitely not normal. Prior to the "ticking" there is a burst of activity on the disk and the "ticking" itself is quite distinct from the normal use of the disk. I can hear it right now, it is really quiet and certainly no pendulum-steady accesses in spaces of less than 1 second occur.
I've just re-read the thread to confirm I was, at first, responding to an "abnormal disk activity" thread.
Since you confirmed that's not the issue then, surely, it's just a hardware quirk or fault?
Computers make all kind of weird noises and most are fine but to check you could now start doing things like watching YouTube videos of failing hard drives (if there are some) and other faults to confirm all is OK with your system.
 
Old 11-13-2017, 12:25 PM   #75
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by IsaacKuo View Post
... You can do it only when the symptoms are there, but I'd also do it every once in a while because that will give you an idea of what sort of stuff is changing normally on a day to day basis.

Who knows? You might catch something odd changing from one day to the next, indicative of the problem process making noise during a time you're not at the computer (or didn't notice the noise at the time).
Okay, Isaac, the SSD is primed, I found enough (rather static) directories to exclude during rsync from the magnetic disk to the SSD. Now we wait .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Constant disk i/o accesses in Mint and WinXP runbei Linux - Newbie 7 12-17-2008 03:21 PM
Disk Accesses Suse10.2 64 bit hcgrant SUSE / openSUSE 7 06-15-2007 03:00 PM
High disk accesses volume guarriman Linux - General 1 07-18-2006 01:29 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
hard disk accesses continually... denbark3725 Linux - Software 2 08-23-2002 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration