Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #16  
Old 03-14-2006, 02:07 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
OK. Attached is a little "prune_log" script that should work.

To use, unzip the attachment to an appropriate folder. (I suggest your personal Applications folder, but it's up to you.) Ensure that it looks like an "Unix executable file" when viewed in the finder.

Now, open SuperDuper! In the Advanced tab of Options, there's a selection under "After copy" to run a shell script when the copy completes. Check the box, and select the "prune_log" executable in the open panel.

That'll automatically remove any warnings from your system log on completion, assuming there were no errors during the run. All of these entries in the log are warnings, not errors, generated by the call I've spoken of earlier in the thread. Logging to the regular SuperDuper!.log will continue as usual, and no pruning will be done if an error occurs.

(For those who are interested, I tried to limit the pruning to just the SDCopy entries, but while the regular expression matching worked fine to restrict viewing to those entries, it wouldn't work to prune them, and I couldn't hardwire the location of SDCopy, which did work, because the user could have SuperDuper! installed anywhere.

What I attempted was:

syslog -p -k Sender Req .\*SDCopy

Without the -p, that only shows SDCopy entries. With the -p, it should prune those entries, but doesn't, and gives no errors. You'll need to put "sudo " in front of that if you want to try in Terminal, at least with -p.)

I've tested this here and it does properly prune the asl.log of these entries; let me know if it helps you out.
Attached Files
File Type: zip prune_log.zip (223 Bytes, 208 views)
__________________
--Dave Nanian
Reply With Quote
  #17  
Old 03-14-2006, 06:17 PM
Cuneyt Cuneyt is offline
Registered User
 
Join Date: Sep 2005
Location: Istanbul, Turkey
Posts: 33
Same problem! And my asl.log is 67 MB curently.
Reply With Quote
  #18  
Old 03-14-2006, 06:39 PM
Cuneyt Cuneyt is offline
Registered User
 
Join Date: Sep 2005
Location: Istanbul, Turkey
Posts: 33
After the script, my asl.log is 359 Kb. But, I noticed that SuperDuper! 2.1 was using 430 Mb of memory while running.
Reply With Quote
  #19  
Old 03-14-2006, 07:01 PM
richardl richardl is offline
Registered User
 
Join Date: Mar 2006
Posts: 15
wow .. Just looked at my asl.log and it's 92mb .. Ran the script (through Terminal) and pruned it to 700kb .. Thanks

Last edited by richardl; 03-14-2006 at 07:14 PM.
Reply With Quote
  #20  
Old 03-14-2006, 08:08 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
430MB of memory doesn't mean much, actually, because it includes shared components and stuff... we're generally pretty frugal.
__________________
--Dave Nanian
Reply With Quote
  #21  
Old 03-14-2006, 10:36 PM
sdsl sdsl is offline
Registered User
 
Join Date: Dec 2005
Posts: 73
Thanks for the quick response with the script! That was really fast.

By the way, I don't think the memory usage noted above is serious nor is it connected to the writing of messages to the log file. The messages are probably written a line at a time, which should have no effect on memory.

Last edited by sdsl; 03-14-2006 at 10:40 PM.
Reply With Quote
  #22  
Old 03-15-2006, 10:25 AM
priller priller is offline
Registered User
 
Join Date: Dec 2005
Posts: 10
Quote:
Originally Posted by DaleMeyn
Are any of you having these problems running Macaroni?
Yes, Macaroni 2.0.7
Reply With Quote
  #23  
Old 03-15-2006, 01:45 PM
priller priller is offline
Registered User
 
Join Date: Dec 2005
Posts: 10
Quote:
Originally Posted by dnanian
OK. Attached is a little "prune_log" script that should work.
FWIW ..... The 56,000 lines per Smart Update are in my /var/log/system.log. Since there is no "Level", the script has no impact.

/Applications/SuperDuper!.app/Contents/MacOS/SDCopy: error processing extended attributes: Cannot allocate memory

Thanks for continuing to look into this.
Reply With Quote
  #24  
Old 03-15-2006, 02:00 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Yes, I understand. This is to deal with the asl.log, not the system.log. As I indicated, we're looking into working around the logging.

The message is exactly the same, though, and is a warning (which you can see with syslog).
__________________
--Dave Nanian
Reply With Quote
  #25  
Old 03-16-2006, 02:01 AM
Cuneyt Cuneyt is offline
Registered User
 
Join Date: Sep 2005
Location: Istanbul, Turkey
Posts: 33
Unhappy

Of course I am not sure but I feel like that the increasing memory problem seems like related with this excessive logging.

First, it started with SD! 2.1, and it was not the case with 2.0.1. If we think that SD copies files from one drive to another drive why the memory usage would increase continuously? Also, I am not sure whether the system writes the log messages one by one. There may be a buffer for those, again I am not sure.

May be this problem should be opened in another topic. But, as I noticed the memory usage is around 180 Mb after SD launched. And when SD starts copying it also starts and continue to increase. 180 ... 200 ... 220 ... 300 and upto 480 Mb. I wonder what will it be if the copy would continue. And it returns to 180-200 after SD finished with copying. 480-180= 300 Mb. If the author of SD would say that 300 Mb memory usage is normal for a copy operation, I would say nothing.

Last edited by Cuneyt; 03-16-2006 at 02:40 AM.
Reply With Quote
  #26  
Old 03-18-2006, 07:02 PM
george george is offline
Registered User
 
Join Date: Dec 2005
Posts: 17
priller writes, "FWIW ..... The 56,000 lines per Smart Update are in my /var/log/system.log....."

Thou not necessarily the final solution, does not running an app like Macaroni (as you mention) flush/keep the size of your system.log file under control?
Reply With Quote
  #27  
Old 03-19-2006, 09:11 AM
priller priller is offline
Registered User
 
Join Date: Dec 2005
Posts: 10
Quote:
Originally Posted by george
Thou not necessarily the final solution, does not running an app like Macaroni (as you mention) flush/keep the size of your system.log file under control?
Marcaroni insures that the system.log file is rotated every 24 hours, it does not reduce the size of the daily's.
Reply With Quote
  #28  
Old 04-01-2006, 11:06 PM
sdsl sdsl is offline
Registered User
 
Join Date: Dec 2005
Posts: 73
There were two issues discussed in this thread:

* asl.log growing in size due to many messages being written (harmless messages generated by Mac OS X Tiger)

* system.log growing due to similar messages

The asl.log issue is resolved by the neat little script (prune log) that was provided in an earlier post by the forum administrator. It works nicely.

I think the system.log file size issue is resolved by the DAILY maintenance script. I ran it manually and before doing so my system.log had been ~ 10 Meg having grown to that size just after running SD, but after the maintenance scripts the largest system.log (including the archived ones) was under 100 kbytes, which is nothing.

So SD has provided an automated cure to the asl.log growth (just add the script to your SD run), and it looks like to me that the automated Tiger maintenance scripts (which can be activated manually via terminal or via a free program like MacJanitor), which run every night automatically, somehow shrink the size of the system.log.

SD is not the only program that affects these log files this way. I think it's a defect in the way Mac OS X handles these log files. Until Apple cleans this up, I think it's really a non issue because Dave's prune-log script and the maintenance system scripts together remove the excess file sizes.
Reply With Quote
  #29  
Old 04-02-2006, 10:03 AM
priller priller is offline
Registered User
 
Join Date: Dec 2005
Posts: 10
Log file rotation is not a resolution, it just masks the problem.

The size, in bytes, of the file is not the issue. It's the number of log entries. If you inject 56,000 lines of crap into the syslog, it makes it that much more difficult to look for real issues, like a hacker attack.
Reply With Quote
  #30  
Old 04-02-2006, 11:47 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
We're not satisfied with the prune_log workaround, and continue to try to figure out a way to stop it from logging entirely. Sorry for the time it's taking...
__________________
--Dave Nanian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.