Jump to content

Photo

Perplessity about Genkernel.


2 replies to this topic

#1
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 331 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

Hi.

 

from a 3 / 4 months, after using genkernel i must run a "make clean" in /usr/stc/linux.

This also if i use the --postclear or if i set (boolean) in genkernel.conf POSTCLEAR="1"

 

Once terminated, i've with df -h 26 GiB used in filesystem root

___________________________________________________________________________

sandro@ci74771ht ~ $ df -h

File system     Dim. Usati Dispon. Uso% Montato su
udev             10M     0     10M   0% /dev
/dev/sda6        30G   26G    2,4G  92% /
tmpfs           1,6G  864K    1,6G   1% /run
cgroup_root      10M     0     10M   0% /sys/fs/cgroup
shm             7,9G  1,2G    6,7G  15% /dev/shm
/dev/sdb2       246G   51G    184G  22% /home
/dev/sdb1       550G  322G    229G  59% /mnt/Volume
/dev/sda3       120M   24M     88M  21% /boot
___________________________________________________________________________
 
giving "make clean" df -h tell me:
 
 
sandro@ci74771ht ~ $ df -h
File system     Dim. Usati Dispon. Uso% Montato su
udev             10M     0     10M   0% /dev
/dev/sda6        30G   18G     11G  62% /
tmpfs           1,6G  864K    1,6G   1% /run
cgroup_root      10M     0     10M   0% /sys/fs/cgroup
shm             7,9G  1,2G    6,7G  15% /dev/shm
/dev/sdb2       246G   51G    184G  22% /home
/dev/sdb1       550G  322G    229G  59% /mnt/Volume
/dev/sda3       120M   24M     88M  21% /boot
____________________________________________________________________________
 
Then 8 GiB of freed space.
 
I don't know how to think about this .... :|
 
excuse me and thank you for explanations.
 
Hello to All :)


#2
cardinal

cardinal

    Advanced Member

  • Members
  • PipPipPip
  • 228 posts

I could not find anywhere in the genkernel code where enabling "POSTCLEAR=1" runs "make clean" in /usr/src/linux

http://git.funtoo.or...rnel.8.txt#n337
*--*[*no-*]*postclear*::
Clears or skips clearing all tmp files and caches after genkernel has run.
Default locations for genkernels tmp and cache directorys.
TMPDIR="/var/tmp/genkernel"
CACHE_DIR="/var/cache/genkernel"
Run genkernel with log/debug options enabled.


*--loglevel*=<0-5>::
    This controls the out verbosity level of genkernel output - if
    this is set to 0, minimal debugging is done; if this is set to 5
    as much output as possible is given.

*--logfile*=<outfile>::
    This outputs debugging data to the file <outfile>. By default
    this is '/var/log/genkernel.log'.

It will output what it defines as CACHE_DIR and TMPDIR
"CACHE_DIR: ${CACHE_DIR}"
"TMPDIR: ${TMPDIR}"
 
Genkernel script: http://git.funtoo.or...e/genkernel#n62

if isTrue ${POSTCLEAR}
		then
			echo
			print_info 1 'RUNNING FINAL CACHE/TMP CLEANUP'
			print_info 1 "CACHE_DIR: ${CACHE_DIR}"
			CLEAR_CACHE_DIR='yes'
			setup_cache_dir
			echo
			print_info 1 "TMPDIR: ${TMPDIR}"
			clear_tmpdir
		fi


#3
Sandro

Sandro

    Advanced Member

  • Members
  • PipPipPip
  • 331 posts
  • LocationSaronno, Via IV Novembre, 23 21047 Italy

But .... may be a good idea to insert in genkernel the possibility to runs make clean after kernel & initramfs compilation ?

 

I can Try to use /dev/shm .......

 

I'll tell to You the results.

 

For example debian-sources wants 14 GiB.

 

Now I make some experiment !!!!

 

Then I reports if i've issues.

 

Thank You :)





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users