Re: [blfs-support] Swap use and speed doubts

2013-02-02 Thread Fernando de Oliveira
--- Em qui, 31/1/13, Simon Geard escreveu:

 De: Simon Geard
 Assunto: Re: [blfs-support] Swap use and speed doubts
 Para: blfs-support
 Data: Quinta-feira, 31 de Janeiro de 2013, 3:48
 On Wed, 2013-01-30 at 03:31 -0800,
 Fernando de Oliveira wrote:
  2. How a system with so much RAM is swapping?
 
 Because swap isn't just extra memory to use once RAM runs
 out. I don't
 know specifics for Linux, but the OS is free to
 pre-emptively move data
 from RAM to swap if it thinks it's appropriate to do so.
 
 For example, if that data hasn't been used in a while, it
 might page it
 out while the system isn't too busy, so that it doesn't need
 to do so
 should you suddenly want all that memory in future. Or it
 might decide
 that taking that memory for extra disk cache is a more
 efficient use,
 worth the cost of pulling that data out of disk if it's
 needed.
 
 I emphasize that this is theory, not necessarily what Linux
 is actually
 doing. The point is simply that the kernel's memory
 management is more
 complicated than just use swap if no RAM remaining.
 
 Simon.

Thanks, Simon.

I understand now that even without the necessity of extra memory, a 
system might swap.

I was still trying to understand the other question, and can now 
answer. Question was essentially why Conky and a script I reproduced 
in the first mail give different swap values. Now, I include GKrellM 
in the question.

The answer is trivial, and I found when trying to run the script (which 
is not mine, I got it from the internet, that is why I was asking). The 
command

find /proc -iname swap

results in many Permission denied.

Therefore, the trivial answer is: script must be run by a privileged 
user.

Below, the output of the script, just before I started writing this 
message.

Again, thanks for clarifying question 2.

Believe the question 1 is not only noise, could help someone, 
eventually, anyway, sorry for the noise, if not.

[]s,
Fernando

sudo ./.find-out-what-is-using-your-swap.sh | sort -nk3
Password:
Overall swap used: 28028 KB
PID=25500 swapped 20 KB (fcron)
PID=2190 swapped 24 KB (gpm)
PID=1 swapped 28 KB (init)
PID=1701 swapped 32 KB (syslogd)
PID=2038 swapped 36 KB (vnstatd)
PID=2156 swapped 44 KB (fcron)
PID=7694 swapped 56 KB (xinit)
PID=1943 swapped 60 KB (dbus-daemon)
PID=2197 swapped 76 KB (agetty)
PID=2199 swapped 76 KB (agetty)
PID=2196 swapped 80 KB (agetty)
PID=2198 swapped 80 KB (agetty)
PID=1877 swapped 84 KB (vmnet-natd)
PID=2195 swapped 84 KB (agetty)
PID=1872 swapped 108 KB (vmnet-netifup)
PID=1879 swapped 112 KB (vmnet-netifup)
PID=2129 swapped 112 KB (sshd)
PID=2165 swapped 128 KB (vmware-usbarbit)
PID=1864 swapped 132 KB (vmnet-bridge)
PID=7638 swapped 172 KB (login)
PID=1874 swapped 224 KB (vmnet-dhcpd)
PID=1881 swapped 224 KB (vmnet-dhcpd)
PID=1892 swapped 232 KB (vmware-authdlau)
PID=2116 swapped 236 KB (ntpd)
PID=1852 swapped 240 KB (vmware-vmblock-)
PID=2131 swapped 340 KB (clamd)
PID=964 swapped 560 KB (udevd)
PID=1300 swapped 568 KB (udevd)
PID=989 swapped 644 KB (udevd)
PID=7639 swapped 904 KB (bash)
PID=2063 swapped 1152 KB (colord)
PID=2061 swapped 1344 KB (cupsd)
PID=1720 swapped 1704 KB (klogd)
PID=2067 swapped 1848 KB (colord-sane)
PID=7695 swapped 16264 KB (X)

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Swap use and speed doubts

2013-02-02 Thread Fernando de Oliveira
--- Em sáb, 2/2/13, Fernando de Oliveira escreveu:

 De: Fernando de Oliveira
 Assunto: Re: [blfs-support] Swap use and speed doubts
 Para: BLFS Support List
 Data: Sábado, 2 de Fevereiro de 2013, 7:25
 --- Em qui, 31/1/13, Simon Geard
 escreveu:
 
  De: Simon Geard
  Assunto: Re: [blfs-support] Swap use and speed doubts
  Para: blfs-support
  Data: Quinta-feira, 31 de Janeiro de 2013, 3:48
  On Wed, 2013-01-30 at 03:31 -0800,
  Fernando de Oliveira wrote:

...

   2. How a system with so much RAM is swapping?
  
  Because swap isn't just extra memory to use once RAM
 runs
  out.

...

 I was still trying to understand the other question, and can
 now 
 answer. Question was essentially why Conky and a script I
 reproduced 
 in the first mail give different swap values. Now, I include
 GKrellM 

...

 script must be run by a privileged user.

Again, I got the script from the internet (URL in the script). I have 
included a test for the user. I do not know if what I have included is 
a good test, if anyone thinks it is not, and has a better test, I would 
much appreciate if you please tell me what to change. For this and if 
anyone is interested, I include, after the signature, the modified 
script.

[]s,
Fernando

$ cat .find-out-what-is-using-your-swap.sh
#!/bin/bash
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
# http://northernmost.org/blog/find-out-what-is-using-your-swap/
# Modified by Mikko Rantalainen 2012-08-09
# 
http://stackoverflow.com/questions/479953/how-to-find-out-which-processes-are-swapping-in-linux
# Pipe the output to sort -nk3 to get sorted output
# Modified by Fernando 2013/02/02
# User must be root
[ `id -u` != 0 ] 
echo results may be wrong for unprivileged user 
echo present user is *$(whoami)* 
echo please, change to *root* 
exit

SUM=0
OVERALL=0
for DIR in `find /proc/ -maxdepth 1 -type d -regex ^/proc/[0-9]+`
do
PID=`echo $DIR | cut -d / -f 3`
PROGNAME=`ps -p $PID -o comm --no-headers`
for SWAP in `grep Swap $DIR/smaps 2/dev/null | awk '{ print $2 }'`
do
let SUM=$SUM+$SWAP
done
if (( $SUM  0 )); then
echo PID=$PID swapped $SUM KB ($PROGNAME)
fi
let OVERALL=$OVERALL+$SUM
SUM=0
done
echo Overall swap used: $OVERALL KB
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Speech Dispatcher in BLFS?

2013-02-02 Thread Aleksandar Kuktin
On Fri, 1 Feb 2013 20:43:09 -0500
alex lupu alup...@gmail.com wrote:

 Seems you're not easily swayed by ugly financial reasons like Google
 crashing everything in its path (so you join it to avoid certain
 harm).

In his infinite wisdom, God set a time and a place for everyone. Google
became what it is mostly because it served its customers (IOW, society)
well. That is, better that the competitors.

But, should Google turn its back to the society that gave it the
mountain of money it has, and should Google waste itself in shoveling
unwanted crap down our throats, then there will be no Google.

Point: Google glasses. Which iteration of the virtual reality glasses
product are these? Unlike Microsoft and its pad, Apple made it big with
the iPad because there was a need/demand for such a product at the time
it was unveiled. And copious amounts of loans to broke deadbeats to
finance said need, but lets ignore that for a moment - after all,
Apple could have just slashed the price. Regarding Google and its
glasses, I really, really, REALLY don't see a use for them. For iPad,
even though I myself would never buy it, I do see a use - easy inteface
device for control in industrial enviroments. Reading a book. Watching
a movie. Playing a game. Looking cool is not on this list, mostly
because Apple is mainstream. If really you want to convey the aura of
being a part of the cool underground, use Linux. But what possible use
can glasses have? Glasses that you control with YOUR VOICE!!

I can't make this point hard enough. Imagine: you are standing in the
middle of a packed tram (or bus) and you say out loud glasses do
blah-blah. Everyone is instantly annoyed. But, your glasses have not
understood it. So now you have to say the same command louder, possibly
shout it (for example, the London underground can get quite loud
sometimes) while everyone looks at you like they want to cram the
glasses down your throat.

In some parts of the world, it is now considered rude or very rude to
talk on the phone in a public transportation vehicle. I can only
immagine how long will it take before giving voice commands to glasses
gets the same treatment.

 BTW, maybe I didn't convey it properly, my life was pretty bearable
 until chrome compilation started requiring (and silently no less, so
 to speak:) the presence of the Speech Dispatcher.
 Disabling chrome's speech component has become too onerous lately.

Looks like it is high time for someone to write a browser from scratch.

-- 
You don't need an AI for a robot uprising.
Humans will do just fine.
 --Skynet
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] VLC and Video4Linux (was: [blfs-book] r10987 ...)

2013-02-02 Thread Fernando de Oliveira
--- Em sex, 1/2/13, randy escreveu:

 De: randy
 Assunto: [blfs-book] r10987 - in trunk/BOOK: . introduction/welcome 
 multimedia/videoutils
 Para: blfs-book
 Data: Sexta-feira, 1 de Fevereiro de 2013, 19:28
 Author: randy
 Date: Fri Feb  1 14:28:27 2013
 New Revision: 10987
 
 Log:
 Modified the build commands and dependencies in the VLC
 instructions
 
 Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/multimedia/videoutils/vlc.xml
 

...

 +  ulink 
 url=http://linuxtv.org/downloads/v4l-utils/;Video4Linux/ulink,

...

Randy, if I am not mistaken, you have included this, right?

I regularly upgrade some LFS machines, and since vlc 2, IIRC, had 
always to use --disable-v4l2 in LFS-6.5 (no problem with this in 6.7, 
6.8, 7.0, 7.1).

Now it built without the switch.

Just installed v4l-utils-0.8.9, following aproximately ArchLinux (have 
not removed /usr/bin/ivtv-ctl, no idea why they do it, nor have moved 
/lib/udev/some-new-rule into /usr/lib/, as we do not have 
/usr/lib/udev).

They have

sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules

This was not present in the newer v4l-utils-0.9.3, so I just did not 
try harder, and used, as I said, 0.8.9. This version is flagged to be 
updated since 2012-12-05, in ArchLinux.

If I understand correctly, this v4l/vlc issue has to do with linux API 
Headers, and it seems that v4l is included in newer kernels, so to 
explain why it could not be found in LFS-6.5, or somehow I have not 
included the correct config options for the kernel there.

Please, if anybody has comments/corrections, it will be much 
appreciated.

[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] VLC and Video4Linux (was: [blfs-book] r10987 ...)

2013-02-02 Thread Fernando de Oliveira
Forgot to say that I used the new instructions including the patch, to 
install VLC.

I have lua installed, so removed the disable-lua switch.

I could not find in the page an explanation for the necessity of the 
patch, but do not remember if there are explanations for other patches.

[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] SOLVED Re: System settings - network connections

2013-02-02 Thread Dr.-Ing. Edgar Alwers
On Thursday 31 January 2013 13:21:19 Armin K. wrote:

 It appears that wpa_supplicant isn't installed or configured properly.

I reinstalled and reconfigured it. Well, we are now far away from our home and 
we both got suddently a lot of hot spots and we could connect without any 
problems,  so it seems, that the problem is gone.
We want to say thank you very much for the intensive help you gave us during 
some weeks.
Edgar 
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] Speech Dispatcher in BLFS?

2013-02-02 Thread Randy McMurchy
alex lupu wrote these words on 02/01/13 19:43 CST:
 Randy McMurchy wrote
 I couldn't care less about the Chrome browser
 
 Hi Randy:
 
 You'll live to regret these reckless words.  Soon :)

Sigh... regret...reckless (isn't that a bit, um, presumptuous)?


 I have personal reasons for wanting to help sight-impaired people.
 
 That's a very noble act.  Speaking of that, my understanding is that's why
 Klaus put together A.D.R.I.A.N.E. in Knoppix (for his wife).
 
 Hope against hope.

You are saying stuff that I cannot easily digest. What do you mean with
Hope against hope? Really though, don't bother explaining as I do not
intend to continue with this thread as I do not understand at all where
you are going with it.


 Seems you're not easily swayed by ugly financial reasons like Google
 crashing everything in its path (so you join it to avoid certain harm).

And now with this, you can be sure I will not continue to discuss your
visions with whatever it is your searching.

-- 
Randy

rmlscsi: [bogomips 1003.23] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
19:37:00 up 59 days, 5:36, 1 user, load average: 0.32, 0.16, 0.06
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] VLC and Video4Linux (was: [blfs-book] r10987 ...)

2013-02-02 Thread Randy McMurchy
Fernando de Oliveira wrote these words on 02/02/13 11:10 CST:
 Forgot to say that I used the new instructions including the patch, to 
 install VLC.
 I could not find in the page an explanation for the necessity of the 
 patch, but do not remember if there are explanations for other patches.

There are ?tens/hundreds? of patches in BLFS and none of them have any 
explanation
in the book as the explanation is in the header of the patch. Patches are text
files that should have the explanation you are looking for embedded in the 
patch.

As far as your previous message goes, I do not really understand what you are
asking. Video4Linux is a dependency of many other packages in BLFS. What exactly
is your point?

-- 
Randy

rmlscsi: [bogomips 1003.23] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
19:47:01 up 59 days, 5:46, 1 user, load average: 0.37, 0.21, 0.11
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] VLC and Video4Linux (was: [blfs-book] r10987 ...)

2013-02-02 Thread Fernando de Oliveira
--- Em sáb, 2/2/13, Randy McMurchy  escreveu:

 De: Randy McMurchy 
 Assunto: Re: [blfs-support] VLC and Video4Linux (was: [blfs-book] r10987 ...)
 Para: BLFS Support List
 Data: Sábado, 2 de Fevereiro de 2013, 22:52
 Fernando de Oliveira wrote these
 words on 02/02/13 11:10 CST:
  Forgot to say that I used the new instructions
 including the patch, to 
  install VLC.
  I could not find in the page an explanation for the
 necessity of the 
  patch, but do not remember if there are explanations
 for other patches.
 
 There are ?tens/hundreds? of patches in BLFS and none of
 them have any explanation
 in the book as the explanation is in the header of the
 patch. Patches are text
 files that should have the explanation you are looking for
 embedded in the patch.

Yes, you are right.

 
 As far as your previous message goes, I do not really
 understand what you are
 asking. Video4Linux is a dependency of many other packages
 in BLFS. What exactly
 is your point?
 
 -- 
 Randy

Three points.

1. Why is v4l-utils required dependency for VLC in LFS-6.5?

2. Should ivtv-ctl, from v4l-utils, be removed? In ArchLinux it is 
removed.

3. Thank who included v4l-utils as dependency.

[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page