LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-15-2012, 05:11 PM   #1
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Rep: Reputation: 11
LibreOffice.SlackBuild in RAM?


Hello again,

I'm going to attempt building LibreOffice. Normally this would work fine because I would simply put everything on Slackware without any changes. However, this time when I installed Slackware I used LVM (but didn't put / on an LVM, it's on it's own logical partition). In addition to that, I've also put /tmp on my RAM disk by editing /etc/fstab this time:

Code:
cat /etc/fstab | grep tmp
tmpfs            /dev/shm         tmpfs       defaults         0   0
tmp		 /tmp		  tmpfs	      size=6144M       0   0
From Googling around it appears LibreOffice is quite huge, and it's counterpart OpenOffice is just as large. Varied results say it's 9-10GB, but simply put it's not enough for my RAM (or so I believe). But I'm wondering (without editing the LibreOffice.SlackBuild) file if I should just build it somewhere else on my computer.

I would prefer not to use my hard drive for this process because it's a 64GB SSD which I recently bought and despite the fact that SSD's are better than they were in the past and will last longer now, I still would like to use my SSD to a minimum.

If it matters, my /home partition is using btrfs, while everything else is using ext4 and this is on a laptop.

If nothing works, I'm just going to buy a cheap hard disk on CraigsList or something, hook it up to my computer and build it on that but I'm looking for a faster solution.
 
Old 02-15-2012, 05:23 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,877
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
Quote:
Originally Posted by Konphine View Post
I'm looking for a faster solution.
Actually you have a faster solution: Your SSD. Buying an expensive fast drive and then not using it for tasks that will have a great benefit from that speed is somewhat pointless, I would think. Or did you spent all that money only to get a faster boot time?

But anyways, having a second larger disk can be quite handy for tasks that don't need the speed and as file storage and, if you really are that concerned about your SSD, for large compile jobs. If your mainboard supports it you may also get more RAM and compile it in RAM, RAM is really cheap right now.
 
Old 02-15-2012, 09:22 PM   #3
bosth
Member
 
Registered: Apr 2011
Posts: 217

Rep: Reputation: 60
Maybe you know this already, but it wasn't clear from your question: the LibreOffice Slackbuild from slackbuilds.org doesn't actually compile LibreOffice, but rather repackages the official binaries. You'll only need a few hundred MB for the whole process.

You mention the Slackbuild in the subject, which is why I thought I'd point this out. If you are actually planning to compile, just ignore me.

Last edited by bosth; 02-15-2012 at 09:37 PM.
 
Old 02-15-2012, 09:22 PM   #4
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Well that's what I was actually talking about. My /tmp is mounted on RAM (assuming my /etc/fstab is right). However, I've heard LibreOffice goes up to 9 or 10 GB so I'm not sure if it will work if I try to compile it in RAM. I'm assuming I'll get a "no space left on disk" message.

Although my SSD can do it, I'm trying to use it less in order to extend it's life. It's the only hard drive in my computer right now, so everything I stated about my other files are all on my SSD, but compiling such a large program would use quite a few writes wouldn't it?
 
Old 02-15-2012, 09:34 PM   #5
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,231

Rep: Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573Reputation: 573
You could always use AlienBob's packages that were compiled for Slackware 13.37. I see no benefit in compiling such a massive program when the work has been done for you by a respected member of the Slackware community.
 
Old 02-15-2012, 10:46 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,877
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
I know this is offtopic, but may I ask you what was the point for you to get a SSD in the first place, if you don't want to use its advantages?
 
Old 02-16-2012, 04:06 AM   #7
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Well isn't one of it's disadvantages also it's write limit, or how it does them? Seeing as LibreOffice is a huge package wouldn't it have quite a few writes to do? That was my first concern with a lot of programs until I saw that they don't take up too much space so I could compile them in RAM.
 
Old 02-16-2012, 02:15 PM   #8
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Quote:
Originally Posted by Konphine View Post
But I'm wondering (without editing the LibreOffice.SlackBuild) file if I should just build it somewhere else on my computer.
Well this is the easy part. 'TMP=/some/path ./LibreOffice.Slackbuild' will build everything in "/some/path"

HTH
 
Old 02-16-2012, 08:36 PM   #9
the3dfxdude
Member
 
Registered: May 2007
Posts: 304

Rep: Reputation: 66
If I had bought a piece of hardware, I'd hope to use it for what it is worth. If the SSD only had enough writes 2-3 years under casual desktop use, and that a frequent compilation could kill it, I'd run, away. Far away. People have also suggested that filesystem journals can kill an SSD. That is even a more extreme reason to fear the write limitations, considering that really is a typical use case for a consumer disk.

When I researched SSDs back in 2010, I found that the manufacturers reported write capabilities that would give 15-20 years worth of use before seeing 'any' problems. In that, I knew that I could just use an SSD for what it is worth, a fast, slightly more expensive disk. I run have run compilations on my SSD, and I've seen a speed increase of 3x-5x, and that is worth it on the time saved.

If I took an approach of limiting my writes, that would could maybe give me another 2-3 years over 15-20 years, I would have probably regretted the hassle, considering I would have much rather upgraded in only 5 years. Really, a 64 GB disk pushing 150 MB/s pales against a 128MB or 256MB pushing 300 MB/s, and after 5 years, the price would be attractive. Even spinning media has advanced so much, and can still be worth the replacement after 5 years. And spinning media's reliability is not really any different.

Now compiling in memory is no big deal. But now your are using a much more expensive 'disk' than even the SSD.
 
Old 02-17-2012, 04:07 AM   #10
santaslilslacker
LQ Newbie
 
Registered: Nov 2007
Distribution: Slackware64_current
Posts: 28

Rep: Reputation: 4
Quote:
Originally Posted by Konphine View Post
However, I've heard LibreOffice goes up to 9 or 10 GB so I'm not sure if it will work if I try to compile it in RAM. I'm assuming I'll get a "no space left on disk" message.
Well, I guess you've heard some wrong stuff. I have my tmpfs of 2 GB and I managed to compile successfully both LibreOffice and latest QT in it (2 GB vs 6 GB you have). On the other side, installer for the latest 3.5.0 version is only 165 Mb and rest assured - you won't see that dreadful message.
Regarding your SSD dilemmas I really don't see the point getting that kind of hardware and not using it to the max. I have one myself and I just love to abuse it. Mine has 3 years warranty and it's regularly backed up. If it dies - who cares?
 
Old 02-17-2012, 05:36 AM   #11
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Original Poster
Rep: Reputation: 11
Okay, I see. This thread has relieved a lot of fears I've had and I think I'll just do it however I want.
 
Old 02-18-2012, 12:43 PM   #12
nutronix
Member
 
Registered: Jan 2003
Location: montreal
Distribution: Slackware and XUbuntu
Posts: 110
Blog Entries: 1

Rep: Reputation: 17
The way i install libreoffice on my 2 systems (13.37);

1 = Download the RPM package which is in a tar.gz format anyway;

2 = untar the package;

3 = Go in libreoffice directory , cd to RPMS directory ,run rpm2tgz *.rpm ;

4 = installpkg *.tgz

5 = updatedb

voilą.......good luck
 
Old 02-18-2012, 01:14 PM   #13
bosth
Member
 
Registered: Apr 2011
Posts: 217

Rep: Reputation: 60
Quote:
Originally Posted by santaslilslacker View Post
Well, I guess you've heard some wrong stuff. I have my tmpfs of 2 GB and I managed to compile successfully both LibreOffice and latest QT in it (2 GB vs 6 GB you have).
Yeah, but did you actually compile LibreOffice? Or did you just repackage the binary?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libreoffice.SlackBuild line 100: SOURCEDIR: unbound variable ? mongoosecage Slackware 3 01-16-2012 12:56 PM
Finding out what RAM chip needed to upgrade from 2GB to 4GB RAM. farmerluk Linux - Hardware 4 11-17-2011 12:02 PM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
LibreOffice Slackbuild script fails - missing library The GNUinator Slackware 6 04-18-2011 06:37 PM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM


All times are GMT -5. The time now is 02:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration