Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge or console question
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 10:16 am    Post subject: emerge or console question Reply with quote

Hi guys

i would like to ask whether there is a console that can let me scroll up and down
becoz every time i emerge things with so many msg i can't scroll thru

how you guys capture/read that so long emerge pkg messages? and with colors

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 10:41 am    Post subject: Reply with quote

Are u really talking console or terminal rather?

Many terminals I know hace a setting for buffer size, sometimes only through config file when no available GUI .

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 10:43 am    Post subject: Reply with quote

i mean pure text-mode runlevel default
no gnome no X
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 10:44 am    Post subject: Reply with quote

/var/log/portage should contain ebuild log files, possibly colored.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 10:48 am    Post subject: Reply with quote

nice. thx for the info
hmm...no color anyway...but at least i can read the text
at least i can trace after emerge world update

:wink:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 10:53 am    Post subject: Reply with quote

There are patches to recover console scrollback.
Maybe tmux or alike app may be an alternative?

Thks 4 ur attention, interest & suppport.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 10:58 am    Post subject: Reply with quote

CaptainBlood wrote:
There are patches to recover console scrollback.

forum

Thks 4 ur attention, interest & support..
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 11:06 am    Post subject: Reply with quote

woops
even lead to kernel dev

i mean this kernel patch is a super cool idea

i guess i just need emerge stuff to work like that...kinda not that general need...like kernel stay forever
and i don't know if my memory can handle that pure kernel patch effect

so i think i will try tmux 1st
just wondering how tmux works with gpm

:twisted:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 11:09 am    Post subject: Reply with quote

honeymak wrote:
nice. thx for the info
hmm...no color anyway...but at least i can read the text
at least i can trace after emerge world update

:wink:
I have color ansi codes included here.
There must be an option...

They are displayed while running
Code:
gunzip -c /var/log/portage/<category:package-version>.log.gz
in terminal here.

Color sequences are spoiling emacs output here :(

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 11:18 am    Post subject: Reply with quote

Yep kernel patching may be over killing.

Buffer size is hardcoded in kernel.
So big buffer size needs will statically allocate.

rmux should be more flexible in this respect.

Do u use any console test seditor other than nano?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 11:20 am    Post subject: Reply with quote

i use vi(m) most of the time
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 11:24 am    Post subject: Reply with quote

after some lookup
screen can scroll up and down

i used to screen but just keep session
dunno it can scroll

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 11:52 am    Post subject: Reply with quote

screen remains installed here, but not used anymore since repetitive strange emerge failures when running under screen supervision.
No reason it should be problematic for buffered output.

As far as disk space is concerned, screen is smaller than tmux here:
Code:
user@amd64 ~ $ pckllbin screen
-rwxr-s--x 1 root utmp 482960 déc.  16 14:54 /usr/bin/screen-4.9.1
 * app-misc/screen-4.9.1
         Total files : 54
         Total size  : 1.36 MiB
user@amd64 ~ $ pckllbin tmux
-rwxr-xr-x 1 root root 1001736 janv. 27 21:04 /usr/bin/tmux
 * app-misc/tmux-3.3a-r1
         Total files : 12
         Total size  : 1.47 MiB
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Fri Mar 01, 2024 12:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 11:54 am    Post subject: Reply with quote

thx for the detail-minded-ness
^_^

i can afford that kind of size for storage

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 11:56 am    Post subject: Reply with quote

CaptainBlood wrote:
screen remains installed here, but not used anymore since repetitive strange emerge failure within.
As far as disk space is concerned, screen is smaller than tmux here:
Code:
user@amd64 ~ $ pckllbin screen
-rwxr-s--x 1 root utmp 482960 déc.  16 14:54 /usr/bin/screen-4.9.1
 * app-misc/screen-4.9.1
         Total files : 54
         Total size  : 1.36 MiB
user@amd64 ~ $ pckllbin tmux
-rwxr-xr-x 1 root root 1001736 janv. 27 21:04 /usr/bin/tmux
 * app-misc/tmux-3.3a-r1
         Total files : 12
         Total size  : 1.47 MiB
Thks 4 ur attention, interest & support.


wondering what is pckllbin?
:roll:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 12:10 pm    Post subject: Reply with quote

Sorry,
Just a silly script of mine to show executable files of a given package:
Code:
cat /usr/local/bin/pckllbin
#!/bin/bash
if [[ -z $1 ]];then
    echo package name parameter missing
else   
  equery f $1|grep "bin/"|while read line;do if [[ ! -h $line ]];then ls -la $line;fi;done #excluding symbolic link
  equery f $1|grep -v ">"|grep "\.so"|while read line;do if [[ ! -h $line ]];then ls -la $line;fi;done
  equery f $1|grep -v ">"|grep "\.pyc"|while read line;do if [[ ! -h $line ]];then ls -la $line;fi;done
  equery size $1
fi
Currently only showing files within bin/, or like *.so* or like *.pvc.

package name argument can be slotted, or versioned if required.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 12:14 pm    Post subject: Reply with quote

cool
i seldom take on storage size like that bit

currently i just set 256g for my /dev/sda inside vbox
that's more than enough

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 12:32 pm    Post subject: Reply with quote

That was my first step to ease comparing no-lto and lto executable size manually.
Now have a more integrated home brewed script:
Code:
mrg-diff app-misc/screen lto

image/etc/pam.d/screen                                      lto-no:   78      lto:     78      diff:  0      #same-else
image/etc/screenrc                                          lto-no:   10412   lto:     10412   diff:  0      #same-else
image/usr/bin/screen-4.9.1                                  lto-no:   479608  lto:     482048  diff:  -2440  #bigger-bin
image/usr/lib/tmpfiles.d/screen.conf                        lto-no:   29      lto:     29      diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/ChangeLog.lzma             lto-no:   8609    lto:     8609    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/FAQ.lzma                   lto-no:   5645    lto:     5645    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/INSTALL.lzma               lto-no:   2654    lto:     2654    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/NEWS.3.5.lzma              lto-no:   2150    lto:     2150    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/NEWS.3.6.lzma              lto-no:   956     lto:     956     diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/NEWS.3.7.lzma              lto-no:   802     lto:     802     diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/NEWS.3.9.lzma              lto-no:   2538    lto:     2538    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/NEWS.lzma                  lto-no:   366     lto:     366     diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/README.DOTSCREEN.lzma      lto-no:   2670    lto:     2670    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/README.lzma                lto-no:   1702    lto:     1702    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/TODO.lzma                  lto-no:   208     lto:     208     diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/fdpat.ps.lzma              lto-no:   5265    lto:     5265    diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/patchlevel.h.lzma          lto-no:   10718   lto:     10718   diff:  0      #same-else
image/usr/share/doc/screen-4.9.1/window_to_display.ps.lzma  lto-no:   4936    lto:     4936    diff:  0      #same-else
image/usr/share/info/screen.info.lzma                       lto-no:   63860   lto:     63860   diff:  0      #same-else
image/usr/share/man/man1/screen.1.lzma                      lto-no:   49299   lto:     49299   diff:  0      #same-else
image/usr/share/screen/screencap                            lto-no:   1171    lto:     1171    diff:  0      #same-else
image/usr/share/screen/screeninfo.src                       lto-no:   4004    lto:     4004    diff:  0      #same-else
image/usr/share/screen/utf8encodings/01                     lto-no:   29808   lto:     29808   diff:  0      #same-else
image/usr/share/screen/utf8encodings/02                     lto-no:   27550   lto:     27550   diff:  0      #same-else
image/usr/share/screen/utf8encodings/03                     lto-no:   32926   lto:     32926   diff:  0      #same-else
image/usr/share/screen/utf8encodings/04                     lto-no:   24302   lto:     24302   diff:  0      #same-else
image/usr/share/screen/utf8encodings/18                     lto-no:   54862   lto:     54862   diff:  0      #same-else
image/usr/share/screen/utf8encodings/19                     lto-no:   95776   lto:     95776   diff:  0      #same-else
image/usr/share/screen/utf8encodings/a1                     lto-no:   536     lto:     536     diff:  0      #same-else
image/usr/share/screen/utf8encodings/bf                     lto-no:   232     lto:     232     diff:  0      #same-else
image/usr/share/screen/utf8encodings/c2                     lto-no:   256     lto:     256     diff:  0      #same-else
image/usr/share/screen/utf8encodings/c3                     lto-no:   140     lto:     140     diff:  0      #same-else
image/usr/share/screen/utf8encodings/c4                     lto-no:   228     lto:     228     diff:  0      #same-else
image/usr/share/screen/utf8encodings/c6                     lto-no:   68      lto:     68      diff:  0      #same-else
image/usr/share/screen/utf8encodings/c7                     lto-no:   52      lto:     52      diff:  0      #same-else
image/usr/share/screen/utf8encodings/c8                     lto-no:   40      lto:     40      diff:  0      #same-else
image/usr/share/screen/utf8encodings/cc                     lto-no:   68      lto:     68      diff:  0      #same-else
image/usr/share/screen/utf8encodings/cd                     lto-no:   52      lto:     52      diff:  0      #same-else
image/usr/share/screen/utf8encodings/d6                     lto-no:   212     lto:     212     diff:  0      #same-else
Sums:                                                       generic:  924788  flavor:  927228  diff:  -2440 
building marks for /etc/portage/package.env:
lto.conf #same-else #bigger-bin
flavor lto is bigger
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 12:34 pm    Post subject: Reply with quote

hmm....since i don't have an idea for stable lto
that's why i dun take lto options in cflags make.conf

emmm.....do you know of a stable lto flag for high performance?

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 1:16 pm    Post subject: Reply with quote

???stable lto???
gentoo upstream has been chasing away adventurous lto by filtering out on a per package basis.
I do lto build on old system with 4G RAM & PORTAGE_TMPDIR not on ram but disk.
Code:
emerge -i app-arch/bzip2
...
=================================================================
                        Package Settings
=================================================================

app-arch/bzip2-1.0.8-r5::gentoo was built with the following:
USE="-static static-libs verify-sig" ABI_X86="-32 (64) (-x32)"
CFLAGS="-march=core2 -mtune=native -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
CXXFLAGS="-march=core2 -mtune=native -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=bfd"
Only the 2 lto bits in C*LAGS are required.

Gentoo upstream out filtering only cares about build or runtime failure.
As far as performance or cumbersomeness, user remains on its own.

Setting lto in make.conf shouldn't be an issue nowadays.
Some packages have USE=lto. As such make.conf lto general setting should be cancelled out in /etc.portage/package.env

www-client/firefox take ~ 12 hrs here
Code:
sys-devel/gcc-13.2.1_p20240210: 5:26:07


Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 1:18 pm    Post subject: Reply with quote

i also come from the old days......used a week for gnome compile

emmm...do you think lto stuff no matter where i put it.....it give performance rise or not?
if not that much then i would put lto aside

:P
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 1:21 pm    Post subject: Reply with quote

As far as vbox is concerned, no idea what the performance might be.

Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 1:28 pm    Post subject: Reply with quote

just wondering if any new lto info i can get from gentoo
or can i test lto stuff or report any lto stuff?

i also have gentoo on metal.....emmmm....but nowadays most of them get inside vm though

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Fri Mar 01, 2024 1:37 pm    Post subject: Reply with quote

To my poor understanding lto may remove some indirections when possible.
Performance gain should be there, but could be negligible.
I mainly expect disk and ram footprint shrinkage.

-march=native -mtune=native is also another way to reduce footprint.
Performance should increase too.
Downside is that it is not portable to architecture older to current CPU.
-mtune=native would keep faster binaries portable, but bigger too.

If not applied yet, I'd rather favor a -mtune/-march policy over lto which ~ doubles build time.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Fri Mar 01, 2024 1:39 pm    Post subject: Reply with quote

ic

i m native already
emmm....as long as my vm is runnable...it's portable to me...XD

:twisted:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum