Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 495242 - dev-db/mongodb - excessive requirements on build disk space
Summary: dev-db/mongodb - excessive requirements on build disk space
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-24 14:58 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2014-02-17 09:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-12-24 14:58:47 UTC
Excessive requirements were added in dev-db/mongodb ebuilds on 2013-12-23:

  23 Dec 2013; Robin H. Johnson <robbat2@gentoo.org> mongodb-2.2.6-r1.ebuild,
  mongodb-2.4.6-r2.ebuild, mongodb-2.4.7.ebuild, mongodb-2.4.8.ebuild:
  MongoDB is a massive compile: 12GB in my portage build dir, and 2.4G on disk.
  Users should be warned of this before starting, so they have enough space for
  it.


$ cvs di -r1.{1,2} mongodb-2.4.8.ebuild
Index: mongodb-2.4.8.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.4.8.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mongodb-2.4.8.ebuild        6 Nov 2013 14:25:37 -0000       1.1
+++ mongodb-2.4.8.ebuild        23 Dec 2013 07:40:34 -0000      1.2
@@ -1,11 +1,13 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.4.8.ebuild,v 1.1 2013/11/06 14:25:37 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.4.8.ebuild,v 1.2 2013/12/23 07:40:34 robbat2 Exp $
 
 EAPI=4
 SCONS_MIN_VERSION="1.2.0"
+CHECKREQS_DISK_BUILD="12G"
+CHECKREQS_DISK_USR="2400M"
 
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator
+inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs
 
 MY_P=${PN}-src-r${PV/_rc/-rc}
 


dev-db/mongodb-2.4.8 definitely does not need 12 GiB in PORTAGE_TMPDIR.
On my system, the size of installed files of dev-db/mongodb-2.4.8 is about 101.2 MiB.

$ emerge -ptv dev-db/mongodb

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] dev-db/mongodb-2.4.8::gentoo  USE="sharedclient ssl -kerberos -mms-agent -spidermonkey -static-libs" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


I suggest to revert these requirements or drastically decrease them.
Comment 1 Ultrabug gentoo-dev 2013-12-26 11:15:50 UTC
Hell yeah, I didn't know about this until I also had to build mongodb again.

I'm doing the test as well and will lower the requirements asap !

Cheers mate
Comment 2 Ultrabug gentoo-dev 2013-12-26 11:28:06 UTC
(In reply to Ultrabug from comment #1)
> Hell yeah, I didn't know about this until I also had to build mongodb again.
> 
> I'm doing the test as well and will lower the requirements asap !
> 
> Cheers mate

After compile AND install phase I get :

1,1G	dev-db/mongodb-2.4.8/

So to be safe, I have setup the disk build space requirements to 2400M as well as the disk space.

This should be way enough

+  26 Dec 2013; Ultrabug <ultrabug@gentoo.org> mongodb-2.2.6-r1.ebuild,
+  mongodb-2.4.6-r2.ebuild, mongodb-2.4.7.ebuild, mongodb-2.4.8.ebuild:
+  Lower abusive CHECKREQS_DISK_BUILD requirement to 2400M wrt #495242
+

Thanks Arfrever
Comment 3 Arfrever Frehtes Taifersar Arahesis 2013-12-27 08:42:29 UTC
(In reply to Ultrabug from comment #2)
> After compile AND install phase I get :
> 
> 1,1G	dev-db/mongodb-2.4.8/

CHECKREQS_DISK_USR="2400M" still looks too high.
(check-reqs.eclass documents CHECKREQS_DISK_USR with "How much space in /usr is needed to install the package?".)

What USE flags, CFLAGS, CXXFLAGS, LDFLAGS?

Please show output of: equery size dev-db/mongodb
Comment 4 Ultrabug gentoo-dev 2013-12-27 09:55:47 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #3)
> What USE flags, CFLAGS, CXXFLAGS, LDFLAGS?
> 
> Please show output of: equery size dev-db/mongodb

CFLAGS="-O2 -pipe -march=nocona"
CXXFLAGS="-O2 -pipe -march=nocona"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"

$ equery size mongodb
 * dev-db/mongodb-2.4.8
         Total files : 472
         Total size  : 172.48 MiB

After talking to @robbat2, it seems mongodb usage is very dependent on those flags.

See https://gist.github.com/infowolfe/8095718
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-12-27 11:47:31 UTC
Current output for me:
# equery size dev-db/mongodb
 * dev-db/mongodb-2.4.8
         Total files : 451
         Total size  : 101.92 MiB

(In reply to Ultrabug from comment #4)
> See https://gist.github.com/infowolfe/8095718

This shows that majority (about 2.180 GiB) was in /usr/lib/debug, wherein debugging data are installed with FEATURES="splitdebug", which should not be reflected in normal CHECKREQS_DISK_USR.
Comment 6 Agostino Sarubbo gentoo-dev 2013-12-27 15:33:20 UTC
~ # equery size dev-db/mongodb
 * dev-db/mongodb-2.4.6-r2
         Total files : 450
         Total size  : 213.50 MiB
Comment 7 Ultrabug gentoo-dev 2013-12-31 10:56:10 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #5)
> Current output for me:
> # equery size dev-db/mongodb
>  * dev-db/mongodb-2.4.8
>          Total files : 451
>          Total size  : 101.92 MiB
> 
> (In reply to Ultrabug from comment #4)
> > See https://gist.github.com/infowolfe/8095718
> 
> This shows that majority (about 2.180 GiB) was in /usr/lib/debug, wherein
> debugging data are installed with FEATURES="splitdebug", which should not be
> reflected in normal CHECKREQS_DISK_USR.

Ok then, just to be safe I will lower to 512M for DISK_USR when fixing bug #496196 (which should be pretty soon I assume).

FYI: AFAIR mongodb pre-allocation consumes 2GB of disk space when you run mongod for the first time. I understand this can never be the case on some hosts where mongodb is just a dependency but I point this out here for the record.
Comment 8 Ultrabug gentoo-dev 2014-02-17 09:44:21 UTC
Since bug #496196 is taking some time, I've done what I said in my comment above.

+*mongodb-2.2.7 (17 Feb 2014)
+
+  17 Feb 2014; Ultrabug <ultrabug@gentoo.org> mongodb-2.2.6-r1.ebuild,
+  +mongodb-2.2.7.ebuild, mongodb-2.4.6-r2.ebuild, mongodb-2.4.7.ebuild,
+  mongodb-2.4.8.ebuild, mongodb-2.4.9.ebuild:
+  version bump fix #499864, lower user disk requirement to 512M wrt #495242
+