* [gentoo-user] No space left on device ?
@ 2013-02-23 5:00 Joseph
2013-02-23 5:38 ` Nilesh Govindrajan
0 siblings, 1 reply; 19+ messages in thread
From: Joseph @ 2013-02-23 5:00 UTC (permalink / raw
To: gentoo-user
I'm trying to update one of my system and running:
emerge -uDNavq world
I get a very strange message: No space left on device'
Would you like to merge these packages? [Yes/No] y
Traceback (most recent call last):
File "/usr/bin/emerge", line 48, in <module>
retval = emerge_main()
File "/usr/lib64/portage/pym/_emerge/main.py", line 1021, in emerge_main
gc_locals=locals().clear)
File "/usr/lib64/portage/pym/_emerge/actions.py", line 3837, in run_action
myopts, myaction, myfiles, spinner)
File "/usr/lib64/portage/pym/_emerge/actions.py", line 463, in action_build
retval = mergetask.merge()
File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 935, in merge
rval = self._handle_self_update()
File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 309, in _handle_self_update
_prepare_self_update(self.settings)
File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 2164, in _prepare_self_update
shutil.copytree(orig_pym_path, portage._pym_path, symlinks=True)
File "/usr/lib64/portage/pym/portage/__init__.py", line 224, in __call__
rval = self._func(*wrapped_args, **wrapped_kwargs)
File "/usr/lib64/python2.7/shutil.py", line 206, in copytree
raise Error, errors
Error: [('/usr/lib64/portage/pym/portage/dbapi/vartree.pyo', '/var/tmp/portage/._portage_reinstall_.QFROig/pym/portage/dbapi/vartree.pyo', '[Errno 28] No space left on
device'), ('/usr/lib64/portage/pym/portage/dbapi/porttree.pyo', '/var/tmp/portage/._portage_reinstall_.QFROig/pym/portage/dbapi/porttree.pyo', '[Errno 28] No space
left on device'), ('/usr/lib64/portage/pym/portage/dbapi/cpv_expand.pyo',
...
I have plenty of room left on the HD
df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 50G 13G 35G 27% /
/dev/root 50G 13G 35G 27% /
tmpfs 3.7G 668K 3.7G 1% /run
udev 10M 4.6M 5.5M 46% /dev
shm 3.7G 0 3.7G 0% /dev/shm
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
/dev/sda4 530G 119G 385G 24% /home
tmpfs 10M 4.6M 5.5M 46% /var/tmp/portage
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
rootfs 3278576 829078 2449498 26% /
/dev/root 3278576 829078 2449498 26% /
tmpfs 957692 535 957157 1% /run
udev 949264 990 948274 1% /dev
shm 957692 1 957691 1% /dev/shm
cgroup_root 957692 6 957686 1% /sys/fs/cgroup
/dev/sda4 35266560 33051 35233509 1% /home
tmpfs 949264 990 948274 1% /var/tmp/portage
So, why I'm getting this message?
--
Joseph
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 5:00 [gentoo-user] No space left on device ? Joseph
@ 2013-02-23 5:38 ` Nilesh Govindrajan
2013-02-23 6:05 ` Joseph
0 siblings, 1 reply; 19+ messages in thread
From: Nilesh Govindrajan @ 2013-02-23 5:38 UTC (permalink / raw
To: gentoo-user
On Saturday 23 February 2013 10:30:04 AM IST, Joseph wrote:
> I'm trying to update one of my system and running:
> emerge -uDNavq world
> I get a very strange message: No space left on device'
>
>
> Would you like to merge these packages? [Yes/No] y
> Traceback (most recent call last):
> File "/usr/bin/emerge", line 48, in <module>
> retval = emerge_main()
> File "/usr/lib64/portage/pym/_emerge/main.py", line 1021, in
> emerge_main
> gc_locals=locals().clear)
> File "/usr/lib64/portage/pym/_emerge/actions.py", line 3837, in
> run_action
> myopts, myaction, myfiles, spinner)
> File "/usr/lib64/portage/pym/_emerge/actions.py", line 463, in
> action_build
> retval = mergetask.merge()
> File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 935, in merge
> rval = self._handle_self_update()
> File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 309, in
> _handle_self_update
> _prepare_self_update(self.settings)
> File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py",
> line 2164, in _prepare_self_update
> shutil.copytree(orig_pym_path, portage._pym_path, symlinks=True)
> File "/usr/lib64/portage/pym/portage/__init__.py", line 224, in
> __call__
> rval = self._func(*wrapped_args, **wrapped_kwargs)
> File "/usr/lib64/python2.7/shutil.py", line 206, in copytree
> raise Error, errors
> Error: [('/usr/lib64/portage/pym/portage/dbapi/vartree.pyo',
> '/var/tmp/portage/._portage_reinstall_.QFROig/pym/portage/dbapi/vartree.pyo',
> '[Errno 28] No space left on device'),
> ('/usr/lib64/portage/pym/portage/dbapi/porttree.pyo',
> '/var/tmp/portage/._portage_reinstall_.QFROig/pym/portage/dbapi/porttree.pyo',
> '[Errno 28] No space left on device'),
> ('/usr/lib64/portage/pym/portage/dbapi/cpv_expand.pyo',
> ...
>
> I have plenty of room left on the HD
> df -h
> Filesystem Size Used Avail Use% Mounted on
> rootfs 50G 13G 35G 27% /
> /dev/root 50G 13G 35G 27% /
> tmpfs 3.7G 668K 3.7G 1% /run
> udev 10M 4.6M 5.5M 46% /dev
> shm 3.7G 0 3.7G 0% /dev/shm
> cgroup_root 10M 0 10M 0% /sys/fs/cgroup
> /dev/sda4 530G 119G 385G 24% /home
> tmpfs 10M 4.6M 5.5M 46% /var/tmp/portage
>
> df -i
> Filesystem Inodes IUsed IFree IUse% Mounted on
> rootfs 3278576 829078 2449498 26% /
> /dev/root 3278576 829078 2449498 26% /
> tmpfs 957692 535 957157 1% /run
> udev 949264 990 948274 1% /dev
> shm 957692 1 957691 1% /dev/shm
> cgroup_root 957692 6 957686 1% /sys/fs/cgroup
> /dev/sda4 35266560 33051 35233509 1% /home
> tmpfs 949264 990 948274 1% /var/tmp/portage
>
> So, why I'm getting this message?
>
Your /var/tmp/portage is 10 MB! Increase that.
--
Nilesh Govindarajan
http://nileshgr.com
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 5:38 ` Nilesh Govindrajan
@ 2013-02-23 6:05 ` Joseph
2013-02-23 6:17 ` Canek Peláez Valdés
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Joseph @ 2013-02-23 6:05 UTC (permalink / raw
To: gentoo-user
On 02/23/13 11:08, Nilesh Govindrajan wrote:
>On Saturday 23 February 2013 10:30:04 AM IST, Joseph wrote:
>> I'm trying to update one of my system and running:
>> emerge -uDNavq world
>> I get a very strange message: No space left on device'
>>
>> I have plenty of room left on the HD
>> df -h
>> Filesystem Size Used Avail Use% Mounted on
>> rootfs 50G 13G 35G 27% /
>> /dev/root 50G 13G 35G 27% /
>> tmpfs 3.7G 668K 3.7G 1% /run
>> udev 10M 4.6M 5.5M 46% /dev
>> shm 3.7G 0 3.7G 0% /dev/shm
>> cgroup_root 10M 0 10M 0% /sys/fs/cgroup
>> /dev/sda4 530G 119G 385G 24% /home
>> tmpfs 10M 4.6M 5.5M 46% /var/tmp/portage
>>
>> df -i
>> Filesystem Inodes IUsed IFree IUse% Mounted on
>> rootfs 3278576 829078 2449498 26% /
>> /dev/root 3278576 829078 2449498 26% /
>> tmpfs 957692 535 957157 1% /run
>> udev 949264 990 948274 1% /dev
>> shm 957692 1 957691 1% /dev/shm
>> cgroup_root 957692 6 957686 1% /sys/fs/cgroup
>> /dev/sda4 35266560 33051 35233509 1% /home
>> tmpfs 949264 990 948274 1% /var/tmp/portage
>>
>> So, why I'm getting this message?
>>
>
>Your /var/tmp/portage is 10 MB! Increase that.
>
>--
>Nilesh Govindarajan
>http://nileshgr.com
How do I increase it?
I deleted all the file in /var/tmp/portage but after reboot the system populate it again.
In fstab I have two entries:
...
shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
tmpfs /var/tmp/portage devtmpfs defaults 0 0
should I just comment them out?
--
Joseph
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 6:05 ` Joseph
@ 2013-02-23 6:17 ` Canek Peláez Valdés
2013-02-23 6:23 ` Joseph
2013-02-23 6:21 ` Joseph
2013-02-23 12:41 ` Volker Armin Hemmann
2 siblings, 1 reply; 19+ messages in thread
From: Canek Peláez Valdés @ 2013-02-23 6:17 UTC (permalink / raw
To: gentoo-user
On Sat, Feb 23, 2013 at 12:05 AM, Joseph <syscon780@gmail.com> wrote:
> On 02/23/13 11:08, Nilesh Govindrajan wrote:
>>
>> On Saturday 23 February 2013 10:30:04 AM IST, Joseph wrote:
>>>
>>> I'm trying to update one of my system and running:
>>> emerge -uDNavq world
>>> I get a very strange message: No space left on device'
>>>
>>> I have plenty of room left on the HD
>>> df -h
>>> Filesystem Size Used Avail Use% Mounted on
>>> rootfs 50G 13G 35G 27% /
>>> /dev/root 50G 13G 35G 27% /
>>> tmpfs 3.7G 668K 3.7G 1% /run
>>> udev 10M 4.6M 5.5M 46% /dev
>>> shm 3.7G 0 3.7G 0% /dev/shm
>>> cgroup_root 10M 0 10M 0% /sys/fs/cgroup
>>> /dev/sda4 530G 119G 385G 24% /home
>>> tmpfs 10M 4.6M 5.5M 46% /var/tmp/portage
>>>
>>> df -i
>>> Filesystem Inodes IUsed IFree IUse% Mounted on
>>> rootfs 3278576 829078 2449498 26% /
>>> /dev/root 3278576 829078 2449498 26% /
>>> tmpfs 957692 535 957157 1% /run
>>> udev 949264 990 948274 1% /dev
>>> shm 957692 1 957691 1% /dev/shm
>>> cgroup_root 957692 6 957686 1% /sys/fs/cgroup
>>> /dev/sda4 35266560 33051 35233509 1% /home
>>> tmpfs 949264 990 948274 1% /var/tmp/portage
>>>
>>> So, why I'm getting this message?
>>>
>>
>> Your /var/tmp/portage is 10 MB! Increase that.
>>
>> --
>> Nilesh Govindarajan
>> http://nileshgr.com
>
>
> How do I increase it?
> I deleted all the file in /var/tmp/portage but after reboot the system
> populate it again.
> In fstab I have two entries:
> ...
> shm /dev/shm devtmpfs nodev,nosuid,noexec
> 0 0
> tmpfs /var/tmp/portage devtmpfs defaults 0 0
>
> should I just comment them out?
Comment the second and reboot, /var/tmp/portage will be a normal
directory in your hard drive. However, having only 10MB left in a
tmpfs mount sounds weird; either you have very little memory in your
system, or something is eating it up.
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 6:05 ` Joseph
2013-02-23 6:17 ` Canek Peláez Valdés
@ 2013-02-23 6:21 ` Joseph
2013-02-23 8:52 ` Neil Bothwick
2013-02-23 12:41 ` Volker Armin Hemmann
2 siblings, 1 reply; 19+ messages in thread
From: Joseph @ 2013-02-23 6:21 UTC (permalink / raw
To: gentoo-user
On 02/22/13 23:05, Joseph wrote:
>>> tmpfs 949264 990 948274 1% /var/tmp/portage
>>>
>>> So, why I'm getting this message?
>>>
>>
>>Your /var/tmp/portage is 10 MB! Increase that.
>>
>>--
>>Nilesh Govindarajan
>>http://nileshgr.com
>
>How do I increase it?
>
>I deleted all the file in /var/tmp/portage but after reboot the system populate it again.
>In fstab I have two entries:
>...
>shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
>tmpfs /var/tmp/portage devtmpfs defaults 0 0
>
>should I just comment them out?
Got it. I change it to:
tmpfs /var/tmp/portage devtmpfs size=1512M,nr_inodes=1M 0 0
--
Joseph
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 6:17 ` Canek Peláez Valdés
@ 2013-02-23 6:23 ` Joseph
2013-02-23 23:40 ` Peter Humphrey
0 siblings, 1 reply; 19+ messages in thread
From: Joseph @ 2013-02-23 6:23 UTC (permalink / raw
To: gentoo-user
On 02/23/13 00:17, Canek Peláez Valdés wrote:
>> tmpfs /var/tmp/portage devtmpfs defaults 0 0
>>
>> should I just comment them out?
>
>Comment the second and reboot, /var/tmp/portage will be a normal
>directory in your hard drive. However, having only 10MB left in a
>tmpfs mount sounds weird; either you have very little memory in your
>system, or something is eating it up.
>
>Regards.
>--
>Canek Peláez Valdés
>Posgrado en Ciencia e Ingeniería de la Computación
>Universidad Nacional Autónoma de México
I have 8Gb of RAM so I change it to:
tmpfs /var/tmp/portage devtmpfs size=1512M,nr_inodes=1M 0 0
now it is going.
--
Joseph
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 6:21 ` Joseph
@ 2013-02-23 8:52 ` Neil Bothwick
2013-02-23 12:42 ` Volker Armin Hemmann
2013-02-23 14:16 ` Joseph
0 siblings, 2 replies; 19+ messages in thread
From: Neil Bothwick @ 2013-02-23 8:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
On Fri, 22 Feb 2013 23:21:02 -0700, Joseph wrote:
> Got it. I change it to:
> tmpfs /var/tmp/portage devtmpfs
> size=1512M,nr_inodes=1M 0 0
Why are you using devtmpfs? You should be using tmpfs for this, which
defaults to half your available RAM. devtmpfs is a special option
for early-boot /dev only.
--
Neil Bothwick
Deja Moo: The feeling that you heard this bull somewhere before.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 6:05 ` Joseph
2013-02-23 6:17 ` Canek Peláez Valdés
2013-02-23 6:21 ` Joseph
@ 2013-02-23 12:41 ` Volker Armin Hemmann
2013-02-23 14:24 ` Joseph
2 siblings, 1 reply; 19+ messages in thread
From: Volker Armin Hemmann @ 2013-02-23 12:41 UTC (permalink / raw
To: gentoo-user
Am 23.02.2013 07:05, schrieb Joseph:
> On 02/23/13 11:08, Nilesh Govindrajan wrote:
>> On Saturday 23 February 2013 10:30:04 AM IST, Joseph wrote:
>>> I'm trying to update one of my system and running:
>>> emerge -uDNavq world
>>> I get a very strange message: No space left on device'
>>>
>>> I have plenty of room left on the HD
>>> df -h
>>> Filesystem Size Used Avail Use% Mounted on
>>> rootfs 50G 13G 35G 27% /
>>> /dev/root 50G 13G 35G 27% /
>>> tmpfs 3.7G 668K 3.7G 1% /run
>>> udev 10M 4.6M 5.5M 46% /dev
>>> shm 3.7G 0 3.7G 0% /dev/shm
>>> cgroup_root 10M 0 10M 0% /sys/fs/cgroup
>>> /dev/sda4 530G 119G 385G 24% /home
>>> tmpfs 10M 4.6M 5.5M 46% /var/tmp/portage
>>>
>>> df -i
>>> Filesystem Inodes IUsed IFree IUse% Mounted on
>>> rootfs 3278576 829078 2449498 26% /
>>> /dev/root 3278576 829078 2449498 26% /
>>> tmpfs 957692 535 957157 1% /run
>>> udev 949264 990 948274 1% /dev
>>> shm 957692 1 957691 1% /dev/shm
>>> cgroup_root 957692 6 957686 1% /sys/fs/cgroup
>>> /dev/sda4 35266560 33051 35233509 1% /home
>>> tmpfs 949264 990 948274 1% /var/tmp/portage
>>>
>>> So, why I'm getting this message?
>>>
>>
>> Your /var/tmp/portage is 10 MB! Increase that.
>>
>> --
>> Nilesh Govindarajan
>> http://nileshgr.com
>
> How do I increase it?
> I deleted all the file in /var/tmp/portage but after reboot the system
> populate it again.
> In fstab I have two entries:
> ...
> shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
> tmpfs /var/tmp/portage devtmpfs defaults 0 0
>
> should I just comment them out?
>
no,
you should change it to this:
tmpfs /var/tmp/portage tmpfs rw,size=8G 0 0
play around with size. Usually 2GB is more than enough. Except for
libreoffice.
Then umount /var/tmp/portage and mount it again.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 8:52 ` Neil Bothwick
@ 2013-02-23 12:42 ` Volker Armin Hemmann
2013-02-23 14:16 ` Joseph
1 sibling, 0 replies; 19+ messages in thread
From: Volker Armin Hemmann @ 2013-02-23 12:42 UTC (permalink / raw
To: gentoo-user
Am 23.02.2013 09:52, schrieb Neil Bothwick:
> On Fri, 22 Feb 2013 23:21:02 -0700, Joseph wrote:
>
>> Got it. I change it to:
>> tmpfs /var/tmp/portage devtmpfs
>> size=1512M,nr_inodes=1M 0 0
> Why are you using devtmpfs? You should be using tmpfs for this, which
> defaults to half your available RAM. devtmpfs is a special option
> for early-boot /dev only.
>
>
which is why he got 10mb size...
good catch.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 8:52 ` Neil Bothwick
2013-02-23 12:42 ` Volker Armin Hemmann
@ 2013-02-23 14:16 ` Joseph
2013-02-23 14:24 ` Volker Armin Hemmann
1 sibling, 1 reply; 19+ messages in thread
From: Joseph @ 2013-02-23 14:16 UTC (permalink / raw
To: gentoo-user
On 02/23/13 08:52, Neil Bothwick wrote:
>On Fri, 22 Feb 2013 23:21:02 -0700, Joseph wrote:
>
>> Got it. I change it to:
>> tmpfs /var/tmp/portage devtmpfs
>> size=1512M,nr_inodes=1M 0 0
>
>Why are you using devtmpfs? You should be using tmpfs for this, which
>defaults to half your available RAM. devtmpfs is a special option
>for early-boot /dev only.
>
>
>--
>Neil Bothwick
I was following the instruction from recent "udev" upgrade: Upgrading udev from 171 (or older) to 197
----copy--------
- The need of CONFIG_DEVTMPFS=y in the kernel; need to verify the fstype for
possible /dev line in /etc/fstab is devtmpfs (and not, for example, tmpfs)
---end coopy----
So I change both lines in fstab:
shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
tmpfs /var/tmp/portage devtmpfs size=2048M,nr_inodes=1M 0 0
--
Joseph
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 12:41 ` Volker Armin Hemmann
@ 2013-02-23 14:24 ` Joseph
2013-02-23 14:54 ` Florian Philipp
0 siblings, 1 reply; 19+ messages in thread
From: Joseph @ 2013-02-23 14:24 UTC (permalink / raw
To: gentoo-user
On 02/23/13 13:41, Volker Armin Hemmann wrote:
>>>> tmpfs 949264 990 948274 1% /var/tmp/portage
>>>>
>>>> So, why I'm getting this message?
>>>>
>>>
>>> Your /var/tmp/portage is 10 MB! Increase that.
>>>
>>> --
>>> Nilesh Govindarajan
>>> http://nileshgr.com
>>
>> How do I increase it?
>> I deleted all the file in /var/tmp/portage but after reboot the system
>> populate it again.
>> In fstab I have two entries:
>> ...
>> shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
>> tmpfs /var/tmp/portage devtmpfs defaults 0 0
>>
>> should I just comment them out?
>>
>
>no,
>
>you should change it to this:
>tmpfs /var/tmp/portage tmpfs rw,size=8G 0 0
>
>play around with size. Usually 2GB is more than enough. Except for
>libreoffice.
>Then umount /var/tmp/portage and mount it again.
I have only 8Gb of RAM should I dedicate it all for tmpfs or only 2GB
--
Joseph
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 14:16 ` Joseph
@ 2013-02-23 14:24 ` Volker Armin Hemmann
2013-02-23 15:44 ` Alan McKinnon
0 siblings, 1 reply; 19+ messages in thread
From: Volker Armin Hemmann @ 2013-02-23 14:24 UTC (permalink / raw
To: gentoo-user
Am 23.02.2013 15:16, schrieb Joseph:
> On 02/23/13 08:52, Neil Bothwick wrote:
>> On Fri, 22 Feb 2013 23:21:02 -0700, Joseph wrote:
>>
>>> Got it. I change it to:
>>> tmpfs /var/tmp/portage devtmpfs
>>> size=1512M,nr_inodes=1M 0 0
>>
>> Why are you using devtmpfs? You should be using tmpfs for this, which
>> defaults to half your available RAM. devtmpfs is a special option
>> for early-boot /dev only.
>>
>>
>> --
>> Neil Bothwick
>
> I was following the instruction from recent "udev" upgrade: Upgrading
> udev from 171 (or older) to 197
>
> ----copy--------
> - The need of CONFIG_DEVTMPFS=y in the kernel; need to verify the
> fstype for
> possible /dev line in /etc/fstab is devtmpfs (and not, for example,
> tmpfs)
> ---end coopy----
>
> So I change both lines in fstab:
> shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
> tmpfs /var/tmp/portage devtmpfs
> size=2048M,nr_inodes=1M 0 0
>
and the part quoted talked about DEV nothing else.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 14:24 ` Joseph
@ 2013-02-23 14:54 ` Florian Philipp
2013-02-23 15:46 ` Alex Schuster
0 siblings, 1 reply; 19+ messages in thread
From: Florian Philipp @ 2013-02-23 14:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]
Am 23.02.2013 15:24, schrieb Joseph:
> On 02/23/13 13:41, Volker Armin Hemmann wrote:
>>
>> play around with size. Usually 2GB is more than enough. Except for
>> libreoffice.
>> Then umount /var/tmp/portage and mount it again.
>
> I have only 8Gb of RAM should I dedicate it all for tmpfs or only 2GB
>
tmpfs uses as much memory as necessary and nothing more. In theory, it
doesn't hurt to add all your memory to it as tmpfs will start to swap
when you run out of memory. However, it is usually a better idea to
unmount the tmpfs and use a regular file system whenever you need more
space.
As Volker noted, it is probably best to use 2GB tmpfs and when you
emerge libreoffice, (and maybe firefox and co.) to switch back to using
a regular fs. You could also expand tmpfs so that it can eat all memory
not used by your applications under normal circumstances.
Example: `free -m`
total used free
-/+ buffers/cache: 4717 3053
So in my case I'm probably fine with a 3GB tmpfs while still avoiding
excessive swapping.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 14:24 ` Volker Armin Hemmann
@ 2013-02-23 15:44 ` Alan McKinnon
2013-02-23 18:21 ` Volker Armin Hemmann
2013-02-23 23:25 ` Peter Humphrey
0 siblings, 2 replies; 19+ messages in thread
From: Alan McKinnon @ 2013-02-23 15:44 UTC (permalink / raw
To: gentoo-user
On 23/02/2013 16:24, Volker Armin Hemmann wrote:
> Am 23.02.2013 15:16, schrieb Joseph:
>> On 02/23/13 08:52, Neil Bothwick wrote:
>>> On Fri, 22 Feb 2013 23:21:02 -0700, Joseph wrote:
>>>
>>>> Got it. I change it to:
>>>> tmpfs /var/tmp/portage devtmpfs
>>>> size=1512M,nr_inodes=1M 0 0
>>>
>>> Why are you using devtmpfs? You should be using tmpfs for this, which
>>> defaults to half your available RAM. devtmpfs is a special option
>>> for early-boot /dev only.
>>>
>>>
>>> --
>>> Neil Bothwick
>>
>> I was following the instruction from recent "udev" upgrade: Upgrading
>> udev from 171 (or older) to 197
>>
>> ----copy--------
>> - The need of CONFIG_DEVTMPFS=y in the kernel; need to verify the
>> fstype for
>> possible /dev line in /etc/fstab is devtmpfs (and not, for example,
>> tmpfs)
>> ---end coopy----
>>
>> So I change both lines in fstab:
>> shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
>> tmpfs /var/tmp/portage devtmpfs
>> size=2048M,nr_inodes=1M 0 0
>>
>
> and the part quoted talked about DEV nothing else.
>
I have to say this:
The number of people who completely and totally misread the simple
instructions about upgrading udev is spectacular.
The guides say clearly and unambiguously to modify the mount options for
/dev
And what did so many users at once go and do? Changed every line in
fstab that had the three characters d-e-v in them as well.
I dunno, sometimes I want to give up.
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 14:54 ` Florian Philipp
@ 2013-02-23 15:46 ` Alex Schuster
0 siblings, 0 replies; 19+ messages in thread
From: Alex Schuster @ 2013-02-23 15:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2405 bytes --]
Florian Philipp writes:
> tmpfs uses as much memory as necessary and nothing more. In theory, it
> doesn't hurt to add all your memory to it as tmpfs will start to swap
> when you run out of memory. However, it is usually a better idea to
> unmount the tmpfs and use a regular file system whenever you need more
> space.
>
> As Volker noted, it is probably best to use 2GB tmpfs and when you
> emerge libreoffice, (and maybe firefox and co.) to switch back to using
> a regular fs. You could also expand tmpfs so that it can eat all memory
> not used by your applications under normal circumstances.
In order to avoid manual intervention when building large packages, I do
it that way: In /etc/portage/package.env I have entries like these:
app-emulation/virtualbox safecflags.conf j1.conf
app-office/libreoffice notmpfs.conf j1.conf
dev-java/icedtea notmpfs.conf
dev-lang/R j1.conf
games-fps/alienarena notmpfs.conf
games-fps/worldofpadman notmpfs.conf
kde-base/kdm j1.conf
kde-base/plasma-workspace j1.conf
kde-base/systemsettings j1.conf
mail-client/thunderbird notmpfs.conf
media-sound/amarok debug.conf
~net-mail/dovecot-2.1.15 j1.conf
net-misc/nx j1.conf
sys-boot/grub grub.conf
www-client/firefox notmpfs.conf
Which means that for those packages the .conf scripts
in /etc/portage/env.d/ are sourced.
j1.conf has the line 'MAKEOPTS=-j1' in it, so those packages are not
being compiled in parallel. I happen to have problems with many packages
due to my MAKEOPTS being '--jobs --lod 5', somehow this make much more
trouble than MAKEOPTS=-<somelarge number>.
notmpfs.conf has 'PORTAGE_TMPDIR=/var/portage/tmp', while my normal
PORTAGE_TMPDIR is /var/portage/tmpfs. It is 4G in size, still this is not
enough for many packages. Firefox and Thunrbird are fine with the size,
but they tend to be compiled both at once, and then it is not enough.
safecflags.conf is:
CFLAGS="-pipe -march=amdfam10 -O2"
CXXFLAGS=$CFLAGS
debug.conf:
CFLAGS="$CFLAGS -O2 -ggdb"
CXXFLAGS=$CFLAGS
FEATURES="-buildpkg splitdebug"
And grub.conf is 'export DONT_MOUNT_BOOT=blabla', this avoids Grub
messing around with my /boot directory.
Isn't portage just cool?
Wonko
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 15:44 ` Alan McKinnon
@ 2013-02-23 18:21 ` Volker Armin Hemmann
2013-02-23 23:25 ` Peter Humphrey
1 sibling, 0 replies; 19+ messages in thread
From: Volker Armin Hemmann @ 2013-02-23 18:21 UTC (permalink / raw
To: gentoo-user
Am 23.02.2013 16:44, schrieb Alan McKinnon:
> On 23/02/2013 16:24, Volker Armin Hemmann wrote:
>> Am 23.02.2013 15:16, schrieb Joseph:
>>> On 02/23/13 08:52, Neil Bothwick wrote:
>>>> On Fri, 22 Feb 2013 23:21:02 -0700, Joseph wrote:
>>>>
>>>>> Got it. I change it to:
>>>>> tmpfs /var/tmp/portage devtmpfs
>>>>> size=1512M,nr_inodes=1M 0 0
>>>> Why are you using devtmpfs? You should be using tmpfs for this, which
>>>> defaults to half your available RAM. devtmpfs is a special option
>>>> for early-boot /dev only.
>>>>
>>>>
>>>> --
>>>> Neil Bothwick
>>> I was following the instruction from recent "udev" upgrade: Upgrading
>>> udev from 171 (or older) to 197
>>>
>>> ----copy--------
>>> - The need of CONFIG_DEVTMPFS=y in the kernel; need to verify the
>>> fstype for
>>> possible /dev line in /etc/fstab is devtmpfs (and not, for example,
>>> tmpfs)
>>> ---end coopy----
>>>
>>> So I change both lines in fstab:
>>> shm /dev/shm devtmpfs nodev,nosuid,noexec 0 0
>>> tmpfs /var/tmp/portage devtmpfs
>>> size=2048M,nr_inodes=1M 0 0
>>>
>> and the part quoted talked about DEV nothing else.
>>
>
> I have to say this:
>
> The number of people who completely and totally misread the simple
> instructions about upgrading udev is spectacular.
>
> The guides say clearly and unambiguously to modify the mount options for
> /dev
>
> And what did so many users at once go and do? Changed every line in
> fstab that had the three characters d-e-v in them as well.
>
> I dunno, sometimes I want to give up.
>
>
>
>
I am so tired. Really, I am.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 15:44 ` Alan McKinnon
2013-02-23 18:21 ` Volker Armin Hemmann
@ 2013-02-23 23:25 ` Peter Humphrey
2013-02-24 8:46 ` Alan McKinnon
1 sibling, 1 reply; 19+ messages in thread
From: Peter Humphrey @ 2013-02-23 23:25 UTC (permalink / raw
To: gentoo-user
On Saturday 23 February 2013 15:44:31 Alan McKinnon wrote:
> The number of people who completely and totally misread the simple
> instructions about upgrading udev is spectacular.
Even I did it, and I'm ashamed to admit it too. At least I managed to
realise my mistake and correct it without pestering anyone else.
> The guides say clearly and unambiguously to modify the mount options for
> /dev
>
> And what did so many users at once go and do? Changed every line in
> fstab that had the three characters d-e-v in them as well.
Few of us have a /dev line in fstab, so the line that looks most like it
becomes prime suspect.
> I dunno, sometimes I want to give up.
Don't do that until after you've straightened out your its and it's. :-)
--
Peter
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 6:23 ` Joseph
@ 2013-02-23 23:40 ` Peter Humphrey
0 siblings, 0 replies; 19+ messages in thread
From: Peter Humphrey @ 2013-02-23 23:40 UTC (permalink / raw
To: gentoo-user
On Saturday 23 February 2013 06:23:59 Joseph wrote:
> I have 8Gb of RAM so I change it to:
> tmpfs /var/tmp/portage devtmpfs size=1512M,nr_inodes=1M 0 0
>
> now it is going.
I think you've confused yourself. /var/tmp/portage is portage's working sandbox - where it does all its work while emerging packages. Its size has nothing to do with how much RAM you have, only how much space portage needs to work in.
We used to be advised to allocate swap space equal to half the RAM size, but those days are long gone. Here's what I have defined as swap:
$ grep swap /etc/fstab
/dev/sda3 none swap sw,pri=10 0 0
/dev/sdb3 none swap sw,pri=10 0 0
/dev/sda7 none swap sw,pri=1 0 0
/dev/sdb7 none swap sw,pri=1 0 0
The idea is to use the two 2G partitions (sdx3) for most operations and to bring in the two 20G partitions (sdx7) when doing some heavy lifting. I should really at least halve both of those sizes, but what the hell? Space is cheap and I don't need it for anything else pro tem.
--
Peter
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [gentoo-user] No space left on device ?
2013-02-23 23:25 ` Peter Humphrey
@ 2013-02-24 8:46 ` Alan McKinnon
0 siblings, 0 replies; 19+ messages in thread
From: Alan McKinnon @ 2013-02-24 8:46 UTC (permalink / raw
To: gentoo-user
On 24/02/2013 01:25, Peter Humphrey wrote:
> On Saturday 23 February 2013 15:44:31 Alan McKinnon wrote:
>
>> The number of people who completely and totally misread the simple
>> instructions about upgrading udev is spectacular.
>
> Even I did it, and I'm ashamed to admit it too. At least I managed to
> realise my mistake and correct it without pestering anyone else.
>
>> The guides say clearly and unambiguously to modify the mount options for
>> /dev
>>
>> And what did so many users at once go and do? Changed every line in
>> fstab that had the three characters d-e-v in them as well.
>
> Few of us have a /dev line in fstab, so the line that looks most like it
> becomes prime suspect.
Eh?
It's a guide about udev, which manages /dev, so it gives the mount type
and options for /dev
It says nothing at all about /dev/shm or any other mount point.
I'm just baffled as to how so many people could mis-read it. One or two
I could understand (tired, lack of coffee, etc), but so many? Baffling.
>
>> I dunno, sometimes I want to give up.
>
> Don't do that until after you've straightened out your its and it's. :-)
Errrm, yeah. English has this arbitrary rule about that as there's no
sensible precedence order. Which has higher precedence - possession or
contraction?
Long ago someone tossed a coin and decreed which one. And I can never
remember which way the coin fell, I've pretty much decided I no longer
give a hoot :-)
And you'll notice I often type ";" where a "'" belongs - that's because
my right pinky finger no longer works properly, I have to use the ring
finger instead. Makes for lots of interesting typos :-)
--
Alan McKinnon
Systems Engineer^W Technician
Infrastructure Services
Internet Solutions
+27 11 575 7585
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2013-02-24 8:48 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-23 5:00 [gentoo-user] No space left on device ? Joseph
2013-02-23 5:38 ` Nilesh Govindrajan
2013-02-23 6:05 ` Joseph
2013-02-23 6:17 ` Canek Peláez Valdés
2013-02-23 6:23 ` Joseph
2013-02-23 23:40 ` Peter Humphrey
2013-02-23 6:21 ` Joseph
2013-02-23 8:52 ` Neil Bothwick
2013-02-23 12:42 ` Volker Armin Hemmann
2013-02-23 14:16 ` Joseph
2013-02-23 14:24 ` Volker Armin Hemmann
2013-02-23 15:44 ` Alan McKinnon
2013-02-23 18:21 ` Volker Armin Hemmann
2013-02-23 23:25 ` Peter Humphrey
2013-02-24 8:46 ` Alan McKinnon
2013-02-23 12:41 ` Volker Armin Hemmann
2013-02-23 14:24 ` Joseph
2013-02-23 14:54 ` Florian Philipp
2013-02-23 15:46 ` Alex Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox