LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-13-2022, 03:30 AM   #76
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493

Quote:
Originally Posted by franzen View Post
A note to zram:
I use it on all my devices since some months, in a similar way Didier does(no udev invoked).
I have no swap-partition/file at all anymore, which especially is helpful on old devices(2gb ram) where e.g. firefox is unusable with swap on a harddisc.
I start zram via rc.zram in rc.S, just where the system-swap is enabled. This way it may be used additionally to harddisc-swap or even exclusive.
I am not convinced that I will be a heavy user of zram as the only time I have fallen short with physical RAM and a 4gib swap file has been compiling this version of QT5. So I have followed Didier's idea with no fstab changes, no udev rules and I do not set zram at startup. I start and stop the service manually, as required, via a root bash alias:

Code:
# Start and stop zram:
alias zramstart='/etc/rc.d/rc.swapinzram start'
alias zramstop='/etc/rc.d/rc.swapinzram stop'
A little clunky but it has worked well for me so far...
 
1 members found this post helpful.
Old 03-13-2022, 06:50 AM   #77
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081
Quote:
Originally Posted by andrew.46 View Post
Finally with the aid of swapinzram (thanks Didier and Marav!) qt5 has built:

So all this time it was simply a memory issue? BTW Marav if you ever want to polish the SlackBuild I saw in passing that you created a place for the docs but no docs. Looks like only README.md.

Edit: I see what has happened, you have:

Code:
cp $CWD/README $PKG/usr/doc/${PRGNAM}-${VERSION}
where you should have:

Code:
cp $CWD/README.md $PKG/usr/doc/${PRGNAM}-${VERSION}
Edit: And I am a little curious as to how much actual RAM is required to compile this version of qt5 without swapping out? I am a little peeved that my own setup failed with physical RAM
Thx, this has been fixed
 
Old 04-25-2022, 02:07 AM   #78
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Interestingly enough I returned to compiling the Slackware qt5 package after some upgrades to my computer including a boost to 64gb RAM:

Code:
WARNING:  zero length file usr/include/qt5/QtXml/5.15.3/QtXml/private/qtxml-config_p.h
WARNING:  zero length file usr/lib64/qt5/qml/QtQuick/Controls/Styles/Flat/plugins.qmltypes

Slackware package /tmp/qt5-5.15.3_20220407_9b1efa0e-x86_64-1.txz created.


real    71m7.391s
user    1816m23.990s
sys     105m23.189s
root@ilium/home/andrew/ssd2/Slackware/slackware64-current/source/l/qt5#
So this was without using zram and I noted at the maximum a RAM usage of 75% of the available 64gb RAM. So that pretty much pegs the amount of memory required.

I replaced the thermal paste on the CPU / AIO while I was in there and this pleasingly allowed a cooler compile with a maximum CPU temp of about 50 degrees Celcius (122 degrees Fahrenheit).
 
1 members found this post helpful.
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
qt5-5.15.2-i586-10 /usr/lib/qt5/bin/uic -h = Segfault . babydr Slackware 9 09-02-2021 07:08 PM
Digikam-5.4.0 and QT5 problem 3rensho Linux - Software 2 02-15-2017 09:11 AM
problem building qt5 itsgregman Slackware 42 01-18-2017 06:57 AM
Odd situation with raid10 array, odd number of drives, and it took, can't regrow now Red Squirrel Linux - Software 9 08-08-2014 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration