[ccache] Disk Space Requirements

2006-07-20 Thread Martin Pool
On 19 Jul 2006, Naqib Khan  wrote:
> Thanks Jim & TNoell, those were helpful responses.
> 
> My followup question would be regarding setting the CCACHE_HARDLINK
> environment variable.  Is anyone using this successfully - as that would
> imply that disk space usage is being minimized.  I ask since the MAN
> page says that set using hard links can:  "confuse programs like 'make'
> that rely on modification times".

Yes, it can be used successfully.

If I recall correctly, ccache hardlinks the file and then touches it, so
it's modification time will always be at least new enough.  The
behaviour alluded to is this: you build a project in two trees, sharing
a ccache and with hard links enabled.  When you build the second time,
the object files in both trees will have a new mtime.  This means that
if you go back to the first tree and run "make" again, it will have to
relink everything because the file timestamps have changed - it will
work, it may just be slower, depending on how long the link phase takes.

So it's basically a space/time tradeoff.

Basically my advice on disk space would be to clean out source trees
when you're no longer using the objects, and trust ccache to let you
rebuild them quickly...

-- 
Martin


[ccache] Disk Space Requirements

2006-07-19 Thread Naqib Khan
Thanks Jim & TNoell, those were helpful responses.

My followup question would be regarding setting the CCACHE_HARDLINK
environment variable.  Is anyone using this successfully - as that would
imply that disk space usage is being minimized.  I ask since the MAN
page says that set using hard links can:  "confuse programs like 'make'
that rely on modification times".
 
__
Naqib


-Original Message-
From: Jim C. Nasby [mailto:[email protected]] 
Sent: Wednesday, July 19, 2006 9:34 AM
To: Khan, Naqib (RICH2:2V90)
Cc: [email protected]
Subject: Re: [ccache] Disk Space Requirements


man ccache and look at the -M option.

On Wed, Jul 19, 2006 at 12:31:54AM -0500, Naqib Khan wrote:
> Hi Folks,
> 
> I have used ccache successfully in a test environment.  Just 
> confirming
> here:  with ccache, I would now have two sets of object files - one in
> my CCACHE_DIR & the other in the original location (where they
normally
> get created - per the build process).  Right now, my testing is
limited
> to one user/ID.
> 
> If that's the case, is it safe to assume that - when implementing 
> ccache
> - I will need twice the amount of disk space for my object files (in
my
> CCACHE_DIR & the other in the original location).  Any
tips/suggestions
> on how to keep the disk space to a minimum.
> 
> 
> Thanks,
> Naqib
> 
> ___
> ccache mailing list
> [email protected] https://lists.samba.org/mailman/listinfo/ccache
> 

-- 
Jim C. Nasby, Database [email protected] 
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


[ccache] Disk Space Requirements

2006-07-19 Thread Jim C. Nasby
man ccache and look at the -M option.

On Wed, Jul 19, 2006 at 12:31:54AM -0500, Naqib Khan wrote:
> Hi Folks,
> 
> I have used ccache successfully in a test environment.  Just confirming
> here:  with ccache, I would now have two sets of object files - one in
> my CCACHE_DIR & the other in the original location (where they normally
> get created - per the build process).  Right now, my testing is limited
> to one user/ID.
> 
> If that's the case, is it safe to assume that - when implementing ccache
> - I will need twice the amount of disk space for my object files (in my
> CCACHE_DIR & the other in the original location).  Any tips/suggestions
> on how to keep the disk space to a minimum.
> 
> 
> Thanks,
> Naqib
> 
> ___
> ccache mailing list
> [email protected]
> https://lists.samba.org/mailman/listinfo/ccache
> 

-- 
Jim C. Nasby, Database [email protected] 
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"


[ccache] Disk Space Requirements

2006-07-19 Thread Naqib Khan
Hi Folks,

I have used ccache successfully in a test environment.  Just confirming
here:  with ccache, I would now have two sets of object files - one in
my CCACHE_DIR & the other in the original location (where they normally
get created - per the build process).  Right now, my testing is limited
to one user/ID.

If that's the case, is it safe to assume that - when implementing ccache
- I will need twice the amount of disk space for my object files (in my
CCACHE_DIR & the other in the original location).  Any tips/suggestions
on how to keep the disk space to a minimum.


Thanks,
Naqib