Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
huge file system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
squirrelsoup
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2016
Posts: 98

PostPosted: Wed Feb 15, 2017 3:38 am    Post subject: huge file system Reply with quote

today i downloaded a new gentoo live dvd iso (on which x would not start, error on loading sddm) and i installed gentoo stable desktop profile from it,
however after i was done upgrading the system, and cleaned up the old kernel and did eclean-dist, i noticed that i have a file system of 25gb, on my old ~amd64 profile i only had 19gb file system.
i did not download any other/new software that could cause 6gb extra data, what could be the cause of this?
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 833

PostPosted: Wed Feb 15, 2017 5:46 am    Post subject: Reply with quote

How did you glean the size of your filesystem? Is that free space or total space? eclean-dist is designed to remove files, and if you haven't cleaned your package downloads directory in awhile, eclean-dist will free up considerable space. It cleans up to about 1Gb per month, here.
Back to top
View user's profile Send private message
squirrelsoup
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2016
Posts: 98

PostPosted: Fri Feb 17, 2017 6:31 pm    Post subject: Reply with quote

i found out that i used about 3gb more disk space then i should, when looking into /usr/src/ i noticed that the kernel file there is 7gb, and if i am right it should be 3gb, that is weird.
guess i will just wait until new kernel sources, then remove the old kernel, and see how much disk space the new kernel takes.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Feb 17, 2017 7:16 pm    Post subject: Reply with quote

squirrelsoup wrote:
i found out that i used about 3gb more disk space then i should, when looking into /usr/src/ i noticed that the kernel file there is 7gb, and if i am right it should be 3gb, that is weird.

squirrelsoup ... it depends on which kernel, and what you enable in that kernel, here it's a little over 800MiB (compiled):

du -hs /usr/src/linux-3.12.68-ck:
811M    /usr/src/linux-3.12.68-ck

best ... khay
Back to top
View user's profile Send private message
squirrelsoup
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2016
Posts: 98

PostPosted: Fri Feb 17, 2017 7:37 pm    Post subject: Reply with quote

to shrink the size of the kernel, is it a smart move to deselect modules in the kernel that i do not use?
i have never build a custom fit kernel, will i break the kernel if i deselect modules with genkernel?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Feb 17, 2017 8:19 pm    Post subject: Reply with quote

squirrelsoup wrote:
to shrink the size of the kernel, is it a smart move to deselect modules in the kernel that i do not use?

squirrelsoup ... much of what will be enabled by genkernel (I expect, as I don't use it) will be modules, these won't use any system resources ... except disk space. I configure my own kernel, and only select those features I need. However, I don't think that would account for the 6G discrepency between your kernel and my own (unless linux has gotten awfully rotund recently).

squirrelsoup wrote:
i have never build a custom fit kernel, will i break the kernel if i deselect modules with genkernel?

That depends on what you disable :) ... if you know what your hardware is, and are prepared to read, and experiment, then it's not difficult to built a kernel without the aid of genkernel.

best ... khay
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Feb 18, 2017 10:30 am    Post subject: Reply with quote

baobab may help figuring out where the space is

there are many folders where lint can gather. Many useflags which pull in lint. many bloated software packages and desctop environments.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sat Feb 18, 2017 12:35 pm    Post subject: Reply with quote

squirrelsoup,

Are you comparing two installs using the same filesyslem block size.
The kernel is similar to the Gentoo repository. If contains a large number of small files.
If the filesystem block size is 1k, the smallest space that can be allocated to a file is 1k, even it the file is only 1 byte.
If the block size is 4k, a 1B file is allocate a 4k block.

In the case of the Gentoo repository, it needs just about four times as much space using 4k blocks as it does with 1k blocks.
The extra space is unused.
I have not done the same test with the kernel but the same idea holds true.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum