public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  Re: Reducing disk usage
  2007-04-26 17:45 ` fire-eyes
@ 2007-04-26 21:57   ` Alexander Skwar
  2007-04-26 22:58     ` Hemmann, Volker Armin
       [not found]     ` <20070428095901.GA3742@ark.in-berlin.de>
  0 siblings, 2 replies; 10+ messages in thread
From: Alexander Skwar @ 2007-04-26 21:57 UTC (permalink / raw
  To: gentoo-user

· fire-eyes <sgtphou@fire-eyes.org>:

> Over a whole system this can 
> add up to a few dozen more MB of space usable.

This Depends largely on the "type" of files. I've got my portage
tree on a reiserfs, and in comparison to ext3, it saves couple
100 (one-zero-zero) megs!

Alexander Skwar
-- 
"Bond reflected that good Americans were fine people and that most of them
seemed to come from Texas."
- Ian Fleming, "Casino Royale"


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-04-26 21:57   ` [gentoo-user] " Alexander Skwar
@ 2007-04-26 22:58     ` Hemmann, Volker Armin
  2007-05-03 20:17       ` Csányi András
       [not found]     ` <20070428095901.GA3742@ark.in-berlin.de>
  1 sibling, 1 reply; 10+ messages in thread
From: Hemmann, Volker Armin @ 2007-04-26 22:58 UTC (permalink / raw
  To: gentoo-user

On Donnerstag, 26. April 2007, Alexander Skwar wrote:
> · fire-eyes <sgtphou@fire-eyes.org>:
> > Over a whole system this can
> > add up to a few dozen more MB of space usable.
>
> This Depends largely on the "type" of files. I've got my portage
> tree on a reiserfs, and in comparison to ext3, it saves couple
> 100 (one-zero-zero) megs!
>

back in the good old days, when 10gb was big for a harddrive, I saved 2GB by 
using reiserfs. From 9GB to 7GB used. And that was a 'simple' Suse 
installation+personal stuff.
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: [gentoo-user]  Re: Reducing disk usage
@ 2007-04-27  5:08 Adam Carter
  0 siblings, 0 replies; 10+ messages in thread
From: Adam Carter @ 2007-04-27  5:08 UTC (permalink / raw
  To: gentoo-user

A bit softer than some of the other suggestions;

# eclean packages
# eclean distfiles

app-portage/gentoolkit contains eclean. From the man page;

"eclean  is  small  tool  to  remove  obsolete portage sources files and
       binary packages.  Used on a regular basis, it prevents your
DISTDIR and
       PKGDIR  directories  to infinitely grow, while not deleting files
which
       may still be useful"

HTH,
Adam
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
       [not found]     ` <20070428095901.GA3742@ark.in-berlin.de>
@ 2007-04-28 10:40       ` Neil Bothwick
  0 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2007-04-28 10:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

On Sat, 28 Apr 2007 11:59:01 +0200, Ralf Stephan wrote:

> > This Depends largely on the "type" of files. I've got my portage
> > tree on a reiserfs, and in comparison to ext3, it saves couple
> > 100 (one-zero-zero) megs!  
> 
> OTOH, you may not need to switch to reiser for that.
> It may simply be a matter of giving /usr/portage its own 
> partition and a smaller block size.

You would only save space like that if the partition was only just big
enough to hold the portage tree. With the amount of file churn in the
tree, the filesystem would get very fragmented very quickly.


-- 
Neil Bothwick

I don't know what makes you tick but I wish it was a time bomb.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-04-26 22:58     ` Hemmann, Volker Armin
@ 2007-05-03 20:17       ` Csányi András
  2007-05-03 20:37         ` Pongracz Istvan
  2007-05-04  2:02         ` waltdnes
  0 siblings, 2 replies; 10+ messages in thread
From: Csányi András @ 2007-05-03 20:17 UTC (permalink / raw
  To: gentoo-user

Hemmann, Volker Armin írta:
> On Donnerstag, 26. April 2007, Alexander Skwar wrote:
>   
>> · fire-eyes <sgtphou@fire-eyes.org>:
>>     
>>> Over a whole system this can
>>> add up to a few dozen more MB of space usable.
>>>       
>> This Depends largely on the "type" of files. I've got my portage
>> tree on a reiserfs, and in comparison to ext3, it saves couple
>> 100 (one-zero-zero) megs!
>>
>>     
>
> back in the good old days, when 10gb was big for a harddrive, I saved 2GB by 
> using reiserfs. From 9GB to 7GB used. And that was a 'simple' Suse 
> installation+personal stuff.
>   
This is very big different.
The filesystem space is problem for me. Use i reiserfs?

Best regards,
András

--sorry for my englis... study :) ---

-- 
- -
--  Csányi András  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!" -- Cromwell

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-05-03 20:17       ` Csányi András
@ 2007-05-03 20:37         ` Pongracz Istvan
  2007-05-04  2:02         ` waltdnes
  1 sibling, 0 replies; 10+ messages in thread
From: Pongracz Istvan @ 2007-05-03 20:37 UTC (permalink / raw
  To: gentoo-user

2007. 05. 3, csütörtök keltezéssel 22.17-kor Csányi András ezt írta:
> This is very big different.
> The filesystem space is problem for me. Use i reiserfs?
> 
> Best regards,
> András


If I were you, yes.
I use reiserfs for years and I have good experiences with it (fault
tolerant, space efficient etc.).

Or buy a bigger hard disk ;)


IStván

-- 
IT szolgáltatások, alkalmazásszolgáltatás
http://www.osbusiness.hu

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-05-03 20:17       ` Csányi András
  2007-05-03 20:37         ` Pongracz Istvan
@ 2007-05-04  2:02         ` waltdnes
  2007-05-04  7:15           ` Alan McKinnon
  1 sibling, 1 reply; 10+ messages in thread
From: waltdnes @ 2007-05-04  2:02 UTC (permalink / raw
  To: gentoo-user

On Thu, May 03, 2007 at 10:17:50PM +0200, Cs??nyi Andr??s wrote

  Another thing you can do is use fewer partitions.  Each partition
requires a safety margin.  The fewer partitions you have, the less
wasted space for safety margins.  Here is my setup...

[m450][waltdnes][~] df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1              1208692    110608   1048928  10% /
udev                     62476      2640     59836   5% /dev
/dev/hda6             37815936  19929656  16349504  55% /home
shm                      62476         0     62476   0% /dev/shm

  I could shave another 900 megabytes off / and still have plenty of
room.  I accomplish this by moving /tmp /usr and /var to the /home
partition.  The system (/bin and /sbin) is constant.  /tmp is where
you can put large temporary files.  /usr has portage and /usr/bin.
/var has the logfiles.

-- 
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-05-04  2:02         ` waltdnes
@ 2007-05-04  7:15           ` Alan McKinnon
  2007-05-05  2:41             ` waltdnes
  0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2007-05-04  7:15 UTC (permalink / raw
  To: gentoo-user

On Friday 04 May 2007, waltdnes@waltdnes.org wrote:
> I accomplish this by moving /tmp /usr and /var to the /home
> partition.

Surely you meant "move the /tmp, /usr and /var to the / partition"?

It won't work moving them to /home unless you put symlinks in and that 
would just be ... odd

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-05-04  7:15           ` Alan McKinnon
@ 2007-05-05  2:41             ` waltdnes
  2007-05-07  9:52               ` Alan McKinnon
  0 siblings, 1 reply; 10+ messages in thread
From: waltdnes @ 2007-05-05  2:41 UTC (permalink / raw
  To: gentoo-user

On Fri, May 04, 2007 at 09:15:47AM +0200, Alan McKinnon wrote
> On Friday 04 May 2007, waltdnes@waltdnes.org wrote:
> > I accomplish this by moving /tmp /usr and /var to the /home
> > partition.
> 
> Surely you meant "move the /tmp, /usr and /var to the / partition"?

  Let me rephrase myself...
  - *PHYSICALLY* moving /tmp /usr and /var to the /home partition.
  - bind mount (or symlink) these directories to the / partition

> It won't work moving them to /home unless you put symlinks in and
> that would just be ... odd

  It may be "odd", but it gets the job done.  The files end up
*PHYSICALLY* residing in the /home partition, but *LOGICALLY* on /tmp,
/usr and /var.  Here's how I implement it.  I set up /tmp /usr and /var
in /home/bindmounts/ (note the permissions on /home/bindmounts/tmp).

[m450][root][~] ll /home/bindmounts/
total 20
drwxr-xr-x  5 root root 4096 Apr 29 13:36 .
drwxr-xr-x  7 root root 4096 May  1 00:08 ..
drwxrwxrwt 10 root root 4096 May  4 22:00 tmp
drwxr-xr-x 15 root root 4096 Apr 29 03:53 usr
drwxr-xr-x 14 root root 4096 Apr 28 20:36 var


I create *EMPTY* directories named /tmp /usr and /var on /.  And then I
bind mount the directories.  Here's a snippet from /etc/fstab

/home/bindmounts/var    /var            auto            bind 0 0
/home/bindmounts/usr    /usr            auto            bind 0 0
/home/bindmounts/tmp    /tmp            auto            bind 0 0

  Symlinks would normally work, too.  However, if for some reason, the
/home partition is unavailable at bootup, the system would complain
about symlinks.  With empty directories, you at least get a basic system
booting up with fewer complaints.

  Let me repeat the reason for the "oddness".  The stripped-down /
partition is going to be pretty constant, so I don't have to allow lots
of empty space as a safety margin.  The wildcards, in terms of filespace
are...
  - /var (logs and other stuff)
  - /usr (/usr/bin for all my apps, and /usr (share, portage, libs))
  - /tmp (this is where big temporary files go)

-- 
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: Reducing disk usage
  2007-05-05  2:41             ` waltdnes
@ 2007-05-07  9:52               ` Alan McKinnon
  0 siblings, 0 replies; 10+ messages in thread
From: Alan McKinnon @ 2007-05-07  9:52 UTC (permalink / raw
  To: gentoo-user

On Saturday 05 May 2007, waltdnes@waltdnes.org wrote:
> > Surely you meant "move the /tmp, /usr and /var to the / partition"?
>
>   Let me rephrase myself...
>   - *PHYSICALLY* moving /tmp /usr and /var to the /home partition.
>   - bind mount (or symlink) these directories to the / partition

OK, I see what you mean. Personally, I would have done it slightly 
differently:

- create a partition with /home, /usr, /tmp, /var directories
- mount this somewhere, say /stuff
- mount -o bind /stuff/home /home
- etc ...

But that's because I know myself and I know if I did it your way I'd 
confuse the dickens out of myself three days later when finding a usr/, 
var/, tmp/ inside /home. It seems that human memory is like those Flash 
NAND things - it deterioriates with age, hehehe :-)

alan


-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-05-07  9:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-27  5:08 [gentoo-user] Re: Reducing disk usage Adam Carter
  -- strict thread matches above, loose matches on Subject: below --
2007-04-26 14:59 [gentoo-user] " Grant
2007-04-26 17:45 ` fire-eyes
2007-04-26 21:57   ` [gentoo-user] " Alexander Skwar
2007-04-26 22:58     ` Hemmann, Volker Armin
2007-05-03 20:17       ` Csányi András
2007-05-03 20:37         ` Pongracz Istvan
2007-05-04  2:02         ` waltdnes
2007-05-04  7:15           ` Alan McKinnon
2007-05-05  2:41             ` waltdnes
2007-05-07  9:52               ` Alan McKinnon
     [not found]     ` <20070428095901.GA3742@ark.in-berlin.de>
2007-04-28 10:40       ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox