image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old July 24th, 2004, 03:40 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kfancy is on a distinguished road
Question details of OSX system footprint?

i'm doing a bit of research on mac osx and its 100's of megabytes of diskspace that it takes up. i'm curious about the ratio of actual OS code vs. memory taken up for things like graphics, low-level animations, anything that we SEE versus what happens behind the scenes.

anybody just happen to know that, or know a way or place where i can find out such information?

thanks ahead of time \\ kfancy
Reply With Quote
  #2  
Old July 25th, 2004, 02:35 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
You mean disk space, as opposed to RAM, right?

A good way of doing this is just to open /System and /Library in list view, sort by size, and check the prefs to make is calculate all sizes. Then you can expand folders until you get down to levels that start making sense - printer drivers take up so much space, screen savers so much...
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #3  
Old July 26th, 2004, 01:37 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kfancy is on a distinguished road
yes, diskspace.
looking to see how much space the visual components of the OS take up vs. just OS coding... i.e. how much space is dedicated to window viewing, icon animations, system icons, etc.

i've tried looking through the sys libraries but they're not really specific.

is there another way to look through some folders via the UNIX interface? i know how to use the UNIX shell, but not really sure where to look.

\\ kfancy
Reply With Quote
  #4  
Old July 26th, 2004, 09:36 AM
lurk's Avatar
Mitδ?
 
Join Date: Mar 2002
Location: Land o' skeeterz
Posts: 2,076
Thanks: 0
Thanked 0 Times in 0 Posts
lurk is on a distinguished road
Your question is still a little under specified. For instance I assume you are interested in the little poof cloud that gets drawn when you drag something off the dock, but what about the code to animate that?

Here is a little script that will find all the tiff files in the system directory and add up their sizes.
Code:
find /System -name "*.tiff" -print0 | xargs -0 ls -l | awk '{sum += $5;} END{ print sum;}'
On my machine running that script yields 11,192,975 so there are 11 MB of tiff files. While the whole directory rooted at /System is 1,695 MB so by this crude test 0.6% of the space in /System is taken up by graphics files.

There are a couple of things hidden in resource forks and the like that I missed above but not much.

Hope that helps,
-Eric
Reply With Quote
  #5  
Old July 26th, 2004, 10:36 AM
Tech
 
Join Date: Jun 2001
Location: Dover, DE
Posts: 3,871
Thanks: 0
Thanked 28 Times in 28 Posts
DeltaMac will become famous soon enough
Won't memory usage (and disk space) be hard to quantify (except for actual file space)? Memory and disk usage are both dynamic, so you can check now, and a few seconds later, the results may be substantially different.
__________________
Serendipity is a lucky guess !
Reply With Quote
  #6  
Old July 26th, 2004, 11:03 AM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 10,380
Thanks: 3
Thanked 124 Times in 113 Posts
ElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the rough
I think what he wants to know is, say, comparing OS X to Darwin -- Darwin is the heart and soul of OS X and has the same basic functionality as OS X minus the GUI.

A good way to compare the two is to install Darwin on one hard drive and OS X on another, then compare the disk usage of each.

For memory operations and processor taxing due to the GUI, run "top" on both machines and see how much processes like "WindowServer" take up on the OS X box versus Darwin (since Darwin doesn't have WindowServer).
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #7  
Old July 26th, 2004, 12:52 PM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
What about things that are real system components, but at the same time eye-candy / frivolous stuff?

$ du -s /System/Library/Frameworks/QuickTime.framework/
5.2M /System/Library/Frameworks/QuickTime.framework/
$ du -s /System/Library/Frameworks/ForceFeedback.framework/
576K /System/Library/Frameworks/ForceFeedback.framework/

And so on...
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #8  
Old July 26th, 2004, 03:03 PM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 10,380
Thanks: 3
Thanked 124 Times in 113 Posts
ElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the roughElDiabloConCaca is a jewel in the rough
I would assume that only operational code is compiled in the framework files, and the GUI elements would be defined only in the .nib files of the actual application, so you could compare application sizes on Darwin vs. OS X and see what the difference is.

...and compare the framework files as well, to see if they differ in size...
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:56 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.