[gentoo-user] Re: Something eats my memory - please help

2017-04-09 Thread Kai Krakow
Am Sun, 9 Apr 2017 23:40:15 +0200
schrieb David Haller <gen...@dhaller.de>:

> Hello,
> 
> On Sun, 09 Apr 2017, Kai Krakow wrote:
> >Am Sun, 9 Apr 2017 19:09:23 +0200
> >schrieb David Haller <gen...@dhaller.de>:
> >  
> >> On Sun, 09 Apr 2017, Kai Krakow wrote:  
>  [...]  
> >> 
> >> Tell us, why exactly would one need upower again, anyway?  
> >
> >If you don't need it, don't use it. This was an example, not a call
> >to use it.
> >
> >It reports battery status of peripherals for me.  
> 
> Surely, there must be other apps to report this for you, besides a
> mem-hogging behemoth, that (I guess) actually does not much more than
> 'cat /sys/...something'! .5 Gig or even more?? You're kidding me,
> right? Riiigghtt? That's just plain insane! Stuff like that
> should run in a few KB. Or a few MB with a fancy GUI and DE
> integration.

It uses 1M of memory currently. The 512M limit I set is just a safety
boundary. I don't actually want to limit it, but when it goes havoc
it's as least limited.

> You could probably do that with a few lines of perl/python/ruby plus
> the toolkit of your choice (Tk, Gtk, Qt, Wx, Fltk, ...).

Yes, I could probably code everything myself in tiny little
scriptlets. But it's not worth the effort. This machine has 16G of
memory, it can run full-blown KDE, it uses 5G of memory after fully
booted (including two containers, mysql and elasticsearch, for devel
purposes), and that boots in 30s from a mixed bcache/btrfs file system.

> I e.g. wanted a minmal clock to have while playing movies fullscreen.

That's what I have a smartphone for. I don't sit in front of my PC to
watch full-screen movies (tho, the TV is connected to the machine).

> Result: ~21 lines of generously formatted perl using Tk and a
> bold-white-on-black (easily changeable) digital clock with a mere
> 38x20 pixels in the right-top-corner (easily changeable).

That's a nice solution if you have enough time and want to stay
minimal on system pressure. I just want to stay minimal on
distractions, so I don't have CPU meters and whatever always visible
on screen. I also don't need all those fancy live graphics of memory,
disk usage, CPU, load, whatever on the X root window. I never
understand what's the purpose of that is anyways because I have
multiple windows in front of it. Hence, I even have no icons on the
desktop, just some different background images to easily distinguish
between energy profiles: I'm using activities to switch between
"listen to music", "watch videos/play games", "development", and
"browse internet and other desktop activities". And I hardly use menus
to start programs: I use the krunner search and a fullscreen launcher
for my favorite apps. I really hate those deeply nested menu launchers,
I want flat easy structures, searchable. During development I almost
only use keyboard shortcuts.

> Haven't implemented the "Keep on top" stuff right though yet, but ISTR
> that should be possible too with perl/Tk. Or any of the above
> mentioned lang/toolkit combos. And the "on-top" stuff also depends on
> your WM in the details.

That should be pretty much standardized by now, probably you could just
call "xprop -set" from your scripts.

> And anyway: 'eix batt' spits out e.g. x11-misc/xbatt,
> x11-misc/xbattbar, x11-plugins/wmbatteries...

Plain old X programs with Tk or xwidgets are exactly not what I am
looking for. I seek a visually streamlined desktop, so I mostly
exclusively use Qt or KDE programs excepts there's no suitable
alternative. So, e.g. I still use gitk a lot although I found git-cola
appealing. Still I'm doing lot of git stuff directly on the console. I
use git-cola only for fast and easy hunk committing and visual browsing
of current workspace status.

> As I do just have a normal below-desk PC, I can't help with the
> /sys/*batt*? stuff, but if it breaks down to basically displaying the
> contents of some files under /sys/ then it's a piece of cake whupping
> up an UI displaying that as e.g percent or whatever.)

I have a normal below-desk PC, too, hidden inside the desk, and 6 or 7
years old [1]. But I use a wireless mouse and keyboard for working - I
don't want cables and lots of stuff visible on or under my desk. And I
want some battery warning/status for these devices, integrating with
what I run: KDE Plasma.

> Probably, I'd just have to change the "update" sub (1 line) of my
> clock to read that /sys/-file instead of the time and
> whoopididoooda ;)

You are free to put it on github or so, I'd even be curious looking at
it.

> A fancy graphic bar would be a bit more coding.

It's always nice when new features integrate easy as I can tell from my
own projects, tho I do ruby mostly.

> Oh, and have a look at gkrellm and 

[gentoo-user] So emerge spoke ...

2015-02-10 Thread Meino . Cramer
Hi,

got thsi today instead of a smooth update

Diffing databases (17939 - 17932 packages)
[U]   == cross-armv7a-hardfloat-linux-gnueabi/linux-headers (3.18[?]@01/02/15; 
(~)3.18^bs - (~)3.19^bs) [1]: Linux system headers
[]  == cross-armv7a-softfp-linux-gnueabi/binutils ((~)2.19.1-r1(2.19.1) 
2.20.1-r1(2.20.1) 2.21.1-r1(2.21.1) 2.22-r1(2.22) 2.23.2(2.23.2) 2.24-r3 - 
(~)2.19.1-r1(2.19.1) 2.20.1-r1(2.20.1) 2.21.1-r1(2.21.1) 2.22-r1(2.22) 
2.23.2(2.23.2) 2.24-r3(2.24)) [1]: Tools necessary to build programs
[]   == dev-db/mariadb (10.0.15-r1 - 10.0.16): An enhanced, drop-in 
replacement for MySQL
[]   == dev-games/irrlicht (1.8-r2 - 1.8.1): open source high performance 
realtime 3D engine written in C++
[*]  == games-action/hotline-miami (~1.0.9a_p20140221^fd - 
1.0.9a_p20140221^fd): High-octane action game overflowing with raw brutality
[]   == games-arcade/lbreakout2 (2.6.3 - 2.6.4): Breakout clone written with 
the SDL library
[]   == games-engines/qtads (2.1.5 - 2.1.6): Multimedia interpreter for TADS 
text adventures
[*]  == games-puzzle/hexalate (~1.0.3 - 1.0.3): A color matching game
[*]  == games-puzzle/larry (~1-r1^fd - 1-r1^fd): Leisure Suit Larry Reloaded
[*]  == games-puzzle/nightsky (~20111222^fd - 20111222^fd): Puzzle game that 
puts you inside and ambient and mysterious universe
[*]  == games-puzzle/splice (~20121120^fd - 20121120^fd): An experimental and 
artistic puzzler set in a microbial world
[*]  == games-puzzle/tiny-and-big (~1.4.1^fd - 1.4.1^fd): Combines elements 
of adventure, jumprun and physical puzzles
[]   == games-puzzle/xblockout (1.1.5-r1 - 1.1.6): X Window block dropping 
game in 3 Dimension
[]   == net-misc/asterisk (11.14.2 - 11.15.0-r1): Asterisk: A Modular Open 
Source PBX System
[]   == x11-base/xorg-server (1.12.4-r3@01/27/15; 1.14.5(0/1.14.5) - 
1.12.4-r3(0/1.12.4)): X.Org X servers
   app-admin/lxqt-admin (~0.8.0): LXQt system administration tool
   net-misc/lxqt-openssh-askpass (~0.8.0): LXQt OpenSSH user password 
prompt tool
   x11-drivers/psb-firmware ({M}~*0.30_p3): firmware for the intel gma500 
(poulsbo)
   x11-drivers/xf86-video-cyrix ({M}1.1.0): Cyrix video driver
   x11-drivers/xf86-video-impact ({M}~*0.2.0): Impact video driver
   x11-drivers/xf86-video-nsc ({M}*2.8.3): Nsc video driver
   x11-drivers/xf86-video-sunbw2 ({M}*1.1.0): BW2 video driver
   x11-libs/libdrm-poulsbo ({M}~*2.3.0_p9 {M}~*2.3.0_p9-r1): libdrm for 
the intel gma500 (poulsbo)
   x11-libs/xpsb-glx ({M}~*0.18_p4): glx for the intel gma500 (poulsbo)
[N]lxqt-base/lxqt-admin (~0.8.0): LXQt system administration tool
[N]lxqt-base/lxqt-openssh-askpass (~0.8.0): LXQt OpenSSH user password 
prompt tool
 * Time statistics:
   133 seconds for syncing
   132 seconds for eix-update
 2 seconds for eix-diff
   268 seconds total

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

Calculating dependencies... done!
[nomerge   ] media-video/get_flash_videos-1.24-r1  USE={-test} 
[ebuild U  ]  virtual/perl-Module-CoreList-5.20.1 [3.30.0] 0 KiB
[nomerge   ] perl-core/IO-Compress-2.60.0 
[ebuild U  ]  virtual/perl-Compress-Raw-Bzip2-2.64.0 [2.60.0-r2] 0 KiB
[nomerge   ] mail-mta/msmtp-1.4.31-r1  USE=doc gnutls mta nls sasl ssl 
-gnome-keyring -idn -vim-syntax 
[nomerge   ]  virtual/texi2dvi-0 
[nomerge   ]   dev-texlive/texlive-texinfo-2012  USE=-doc -source 
[nomerge   ]app-text/texlive-core-2014-r1  USE=X tk -cjk -doc -source 
-xetex 
[ebuild  N ] dev-perl/perl-tk-804.32.0-r1  0 KiB
[nomerge   ] dev-perl/Data-AMF-0.90.0-r1  USE={-test} 
[nomerge   ]  dev-perl/DateTime-1.030.0  USE={-test} 
[nomerge   ]   dev-perl/Params-Validate-1.70.0-r1  USE={-test} 
[ebuild U  ]virtual/perl-Attribute-Handlers-0.960.0 [0.940.0-r1] 0 KiB
[nomerge   ] mail-filter/spamassassin-3.3.2-r5  USE=berkdb ipv6 ssl -doc 
-ldap -mysql -postgres -qmail -sqlite 
[ebuild U  ]  virtual/perl-Time-HiRes-1.972.600-r1 [1.972.500-r3] 0 KiB
[ebuild U  ]  virtual/perl-DB_File-1.831.0 [1.827.0-r2] 0 KiB
[nomerge   ] mail-filter/spamassassin-3.3.2-r5  USE=berkdb ipv6 ssl -doc 
-ldap -mysql -postgres -qmail -sqlite 
[nomerge   ]  dev-perl/Mail-DKIM-0.400.0 
[ebuild U  ]   virtual/perl-Digest-SHA-5.880.0 [5.820.0] 0 KiB
[nomerge   ] dev-vcs/git-cola-1.9.4  USE=-doc {-test} 
PYTHON_TARGETS=python2_7 
[ebuild UD ]  dev-python/jsonpickle-0.4.0-r1 [0.7.1] USE={-test} 
PYTHON_TARGETS=python2_7 (-pypy) (-python3_3%) (-python3_4%) 25 KiB
[nomerge   ] app-crypt/seahorse-3.12.2  USE=-avahi -debug -ldap 
[nomerge   ]  app-crypt/gcr-3.12.2:0/1  USE=gtk introspection vala -debug 
{-test} 
[ebuild U  ]   app-crypt/p11-kit-0.20.7 [0.20.2] USE=asn1 libffi%* trust 
-debug ABI_X86=(64%*) (-32) (-x32) 964 KiB
[ebuild U  ] net-irc/hexchat-2.10.2 [2.10.1] USE=dbus gtk ipv6 nls plugins 
ssl -libcanberra -libnotify -libproxy -ntlm -perl -plugin-checksum -plugin-doat 
-plugin-fishlim -plugin-sysinfo