User Name
Password
AppleNova Forums » Genius Bar »

"update" process & hard drive ticking -- Calling *nix gurus!


Register Members List Calendar Search FAQ Posting Guidelines
"update" process & hard drive ticking -- Calling *nix gurus!
Page 2 of 3 Previous 1 [2] 3  Next Thread Tools
Jay
Member
 
Join Date: Oct 2004
 
2004-11-21, 18:37

Quote:
Originally Posted by stevegong
do you think you could help me out on this? Basically I just want my computer on at night because I use my computer as an alarm clock using mp3 alarm clock..
I do the same with my 12" Powerbook. I don't notice the writings to the HD that you seem to have problems with but you can have you computer turn itself on in the morning in the Energy Saver pref pane. I think it will also wake it up from sleep if you prefer to go that route. Just make sure your account will automatically log in otherwise your software probably won't run. Also give the PBook about 5 to 10 min head start so it has time to boot before the alarm goes off. Sorry I can't help with the original problem though.
  quote
DannoB
 
 
2004-11-28, 22:02

Hallo folks -- jumped to this forum after a search on this problem. I was able to stop my hard drive "ticking" without any commands to the system.
In my case, I shut down another PC connected to my local network. That machine did have a drive mapping to the mac, which, although it wasn't being used, was running. Perhaps other affected users have similar networked machines that might be getting accessed/pinged/etc?
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-11-29, 00:58

Hey Danno,

thank you for your post and welcome to this forum. What system do you have?

I think the problem we're having is that independent of the network or even any third party apps, etc, whatever, we still have the inability to spin down hdd for extended periods (not the same as sleep).

Are you really able to spin down hdd for as long as it is not accessed? I felt like this was a problem true to all macs running panther.
  quote
DannoB
 
 
2004-12-01, 13:25

I'm running a dual 1.8 G5, 1 GB RAM, OS 10.3.6. Although I don't remember when it started, I did have the disk being accessed ("ticking") every 30 seconds. I was worried I was infected with something, but didn't see anything unusual in the ps list. Then, just to be sure, I went and turned off any other machines on my home network, and voila -- no ticking. In my office I can definately hear the sound of the hdd, and I'm sure it's not running.

I'd imagine that that "update" process could be started by a number of system events -- perhaps there's even some variable somewhere that reguates the frequency. At any rate, I can see how a networked environment might cause the machine to be extra cautious. Perhaps a bluetooth device is being sensed? (blued runs in the background too. . .)
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2004-12-01, 15:46

Well, just to clarify, the problem is still there even if:

I wipe the hdd and do a whole new installation of panther. All io disconnected, no installed apps other than those that came with it.

I don't think it's an external influence. It has to be a bug or something in Panther.
  quote
thegeek
Member
 
Join Date: Dec 2004
 
2005-03-22, 23:33

I tossed a kill -STOP at the update process and the sound stopped. As soon as I hit the process with a kill -CONT it... uhh continued.

Sounds like it might be a bit overzealous with parking the head actually.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2005-03-23, 02:15

Quote:
Originally Posted by thegeek
I tossed a kill -STOP at the update process and the sound stopped. As soon as I hit the process with a kill -CONT it... uhh continued.

Sounds like it might be a bit overzealous with parking the head actually.

so...what's the verdict?
  quote
Gargoyle
http://ga.rgoyle.com
 
Join Date: May 2004
Location: In your dock hiding behind your finder icon!
 
2005-03-23, 08:01

earmufs ?
  quote
art
New Member
 
Join Date: Apr 2005
 
2005-04-04, 16:28

Any progress on this?

I have the same problem with my lombard pb. Worse even, since
the aging disk makes a buttload of noise when it spins up.

One extra process that noone's mentioned yet: ntpd. This is responsible for
at least one spinup per hour. Kill it and your clock will slowly drift. But if
that doesn't matter, it shouldn't be a problem.

Also, there's a process called "SecurityServer" which is writing every 10 minutes.
With update turned off, this doesn't get flushed to disk very often.

I assume SecurityServer is logging something, somewhere. It does log to /var/log/secure.log
whenever certain events happen (sudo, for example). But what could it be doing
every 10 minutes?
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2005-04-04, 18:44

Thanks art for your post.

Man, this sucks, we're talking about quite a few processes, and we just don't know how important they are unless we kill them and see.

kill security server yet there's still ntpd which will make the clock drift? that really blows....

wtf though, I'm quite certain (the birdie told me) the problem won't be fixed with Tiger, which pisses me off.

Any other ideas?
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2005-04-04, 18:52

well, it looks like ntpd is the network time thing that you can disable in system preferences anyway. so there's still hope. when i get home tonight I'm going to try killing all those processes....fingers crossed....

or... have you tried killing them already?
  quote
art
New Member
 
Join Date: Apr 2005
 
2005-04-04, 22:47

I've been running without ntpd for a while. I haven't dealt with
SecurityServer. I asked around about it, and no one knew anything.

Does os x have anything equivalent to the old os9 trick of running your
system from a ram disk? It seems like there should be some way of putting
/var/log into ram so writes don't actually hit the disk. Yeah, that would screw
up any possibilities of getting useful log info after a crash. But I don't really
want that. I'm just using the machine as a music server. It if crashes, so what
I just reboot.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2005-04-04, 23:05

There's a programme for making ram disks on os x. I guess we could redirect it to the ram disk....good idea...do you have any idea how to do this?

http://www.donelleschi.com/ramdiskcreator/
  quote
art
New Member
 
Join Date: Apr 2005
 
2005-04-04, 23:15

Looks like one of the things that SecurityServer is writing is
/private/var/db/SystemEntropyCache


It does not appear that SecurityServer is something that can
be killed with impunity. Still, I do not need security on the
machine in question.

Is there a tripwire equivalent for os x that will list files that are
modified over time? I'm using fs_usage to get some of this info,
but there still seems to be something I'm not catching.
  quote
art
New Member
 
Join Date: Apr 2005
 
2005-04-05, 00:08

OK, so here's what I'm currently trying.
RamDiskCreator looks a little too overengineered for use here.
I'm using hdid, newfs_hfs, and mount to make a disk image, and then
creating a symbolic link from /private/var/db/SystemEntropyCache
to this image. Somewhat as described in the `ramfs' section here:
http://www.kernelthread.com/mac/osx/arch_fs.html

So far, the system has not crashed.
  quote
thegeek
Member
 
Join Date: Dec 2004
 
2005-04-05, 20:02

[paul@swag paul]$ mkdir /tmp/ramdisk
[paul@swag paul]$ hdid -nomount ram://`echo "32 * 2048" | bc`
/dev/disk1
[paul@swag paul]$ newfs_hfs /dev/disk1
Initialized /dev/rdisk1 as a 32 MB HFS Plus volume
[paul@swag paul]$ mount -t hfs /dev/disk1 /tmp/ramdisk
[paul@swag paul]$ cd /tmp/ramdisk/
[paul@swag ramdisk]$ df -k .
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/disk1 32768 524 32244 2% /private/tmp/ramdisk
[paul@swag ramdisk]$ cd -
[paul@swag paul]$ hdiutil eject /dev/disk1
"disk1" unmounted.
"disk1" ejected.
[paul@swag paul]$


If I were to script this, I would probably stuff the output of the hdid command into a variable and then carry that forward. You want lots of error checking here. These aren't exactly safe commands.

Last edited by thegeek : 2005-04-05 at 20:13.
  quote
art
New Member
 
Join Date: Apr 2005
 
2005-04-07, 01:26

Yes, that's exectly what I did. The trick is going to be
getting this entropy file onto a ramdisk before the
SecurityServer opens it at boot time. I wonder if anything
else opens it and holds it open?

I also discovered that cupsd was periodically reading
from /dev/random and writing to the disk. Since I'm not
printing from this machine, and never will, I killed it.

The disk has been silent for almost 48 hours now. Now that
we've found all (?) of the houskeeping processes that are
writing to disk, maybe it's time to turn `update' back on.
If nothing's scribbling in the buffer, the sync shouldn't cause
any activity.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2005-04-08, 07:53

Ok, I did the System entropy thing, killed update, distnoted, ntpd, cupsd.

Did I miss something? because this morning when I woke up, the hdd palmrest on my pb was warm.
  quote
stevegong
www.stevegongphoto.com
 
Join Date: May 2004
Location: London
Send a message via AIM to stevegong Send a message via Skype™ to stevegong 
2005-04-08, 16:56

yeah, aight guys, I confirmed there is still something accessing the hdd.
  quote
thegeek
Member
 
Join Date: Dec 2004
 
2005-04-09, 19:19

Probably syslog.
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-04-27, 18:18

FYI, the issue with the update process was not fixed with 10.4.

Fortunately, I can still kill it with no troubles.
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-04-27, 18:50

So are you guys killing all those processes without any troubles? How about an AppleScript or something for us less technical types.

I think something like this would be embraced by the Apple laptop community :smokey:
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-04-27, 19:03

sudo killall update in the terminal. You can't get much easier than that.
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-04-27, 19:07

But from reviewing this thread again, it seems there are other processes right?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2005-04-27, 19:08

Right. So, simply replace "update" with the name of the offending process.
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-04-27, 19:13

So kill all of these?!

update
distnoted
ntpd
cupsd
syslog
  quote
Wickers
is not a kind of basket
 
Join Date: May 2004
 
2005-04-27, 20:17

I don't think you want to kill syslog or cupsd... hehe... well you can, but it depends if you 'need' them running or not.

Cups (cupsd) is used for printing, now if you use the cups deamon or not is up to your setup.

Syslog, is your BSD based logging deamon which is setup to log infromation that is later used by 'some' other apps. I don't know how much OSX uses BSD based log files, or if they have tied in their own logging system into syslog, but it would be a good idea to keep it running.

(I know that on my linux boxen, I sure as hell make sure syslog is running... the only time I can think of a use for not running a syslog deamon is when you are running a live CD or booting off a floppy.)

no sig, how's that for being a rebel!
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-04-27, 20:48

Ok...now if I can't kill one of these, doesn't that defeat the purpose of killing any of them?
  quote
Wickers
is not a kind of basket
 
Join Date: May 2004
 
2005-04-27, 20:53

True...

But I see it like this:
Feel free to finger fuck the processes you don't use, and by 'you' I mean just that -- the user. Now, if your system uses the processes (which it does) and 'you' use that aspect of the system which requires them... killing them off is not an option. However, if you don't have a printer for example, '#sudo killall -9 cupsd' without question.

no sig, how's that for being a rebel!
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2005-04-27, 21:05

I don't have a printer connected to my computer, I just use the printers shared by my brothers computers.

So now I just need to wait for somebody to tell me if I can kill syslog or else if it will end up killing OS X
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Page 2 of 3 Previous 1 [2] 3  Next

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
Take-Apart guidance for Lacie Porsche hard drive afterhours Third-Party Products 16 2019-05-15 10:45
iBook dead - hard drive failure suspected fiddler Genius Bar 12 2005-04-27 05:51
Obligatory "Windows XP is a Giant Turd of an OS" Thread Moogs General Discussion 40 2005-03-17 10:13
Best Way to clean up my Hard drive Wrao General Discussion 10 2004-05-20 03:02


« Previous Thread | Next Thread »

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


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova