English Hebrew dictionary.

2018-11-11 Thread vordoo

  
  
Hi,

Looking for an English Hebrew technical-computer dictionary. Best if
it is a web site or file, with words like: mount, volume, partition,
sector, block, etc...

Any pointers appreciated,
Thanks!
  


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: English Hebrew dictionary.

2018-11-11 Thread Boruch Baum


On 2018-11-11 13:25, vordoo wrote:
>Hi,
>Looking for an English Hebrew technical-computer dictionary. Best if it
>is a web site or file, with words like: mount, volume, partition,
>sector, block, etc...
>Any pointers appreciated,
>Thanks!

Hmm, can't find my favorite word-list site among my zillion bookmarks,
but...

1) For individual word, I just now found: http://tlterm.com/hebrew/
which seems reasonable.

2) The Hebrew Academy of language is the Israeli official organization
for standardizing modern Hebrew:
http://hanut.hebrew-academy.org.il/en/product-category/dictionaries/
They have mailing list on which you could pose your question. If you do,
please let me know what happened!


-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Memory consumption on a per user basis

2018-11-11 Thread Josh Roden
Hi everyone
I have a CentOS 6 machine used by around 20 to 30 students
at a time and I need to do one of two things:
1. find and kill top memory user with script
2. limit memory usage

Using cgroups, I have successfully limited memory usage to about 1.5 cpu's
max (per user) out of 16 but evidently I have had less success with memory
hogs.
I understand that memory is a bit complicated to compute because of shared
memory etc. but I need to make the 32G of physical memory go around more
evenly.
Would appreciate any ideas.
Thanks,
Josh
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Boruch Baum


On 2018-11-11 16:36, Josh Roden wrote:
>Hi everyone
>I have a CentOS 6 machine used by around 20 to 30 students
>at a time and I need to do one of two things:
>1. find and kill top memory user with script

You can use 'smem'[1] to ferret out the process hogging the most memory
by as computed by 'proportional set size'[2]. A basic command to
retrieve the worst offending PID would be:

   smem -c pid | tail -n1

How about this for a simple script?:

  NAUGHTY="$(smem -c pid | tail -n1)"
  for SIG in 15 15 15 9 9
  do
kill -$SIG $NAUGHTY
printf "Sending signal $SIG to process $NAUGHTY\n"
sleep 1
ps -$naughty || exit
printf "Process $NAUGHTY is Still alive\n"
  done


[1] https://www.selenic.com/smem/
[2] https://en.wikipedia.org/wiki/Proportional_set_size
-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Constantine Shulyupin
I am using this bash functions for years:
https://gitlab.com/makelinux/lib/blob/master/snippets/load-watch.md
It kills processes accordingly load average, cpu and memory usage.
OOM killer is less efficient.

On Sun, Nov 11, 2018 at 4:37 PM Josh Roden  wrote:
>
> Hi everyone
> I have a CentOS 6 machine used by around 20 to 30 students
> at a time and I need to do one of two things:
> 1. find and kill top memory user with script
> 2. limit memory usage
>
> Using cgroups, I have successfully limited memory usage to about 1.5 cpu's
> max (per user) out of 16 but evidently I have had less success with memory 
> hogs.
> I understand that memory is a bit complicated to compute because of shared
> memory etc. but I need to make the 32G of physical memory go around more
> evenly.
> Would appreciate any ideas.
> Thanks,
> Josh
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



-- 
Constantine Shulyupin
http://www.MakeLinux.co.il/
Embedded Linux Systems
Tel Aviv

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis [FOLLOW-UP]

2018-11-11 Thread Boruch Baum
I hit _send_ to quickly... The simple script that I proposed suffers
from the problem that it would kill one of your own processes if you are
the offending user, ont one of your students; likewise, it would
blithely kill a system process, or an essential cronjob, or a server.

You can modify the 'smem' command to use its 'user filter' option (see
the man page) to come up with a regex to limit its output to just those
users whose processes you are comfortable killing. The regex can be as
simple as (user1)|(user2)|...|(usern) ; I don't see how to use UID
numbers, but it might be possible.

  smem -U "$YOUR_REGEX" -c pid | tail -n1


On 2018-11-11 10:16, Boruch Baum wrote:
>   NAUGHTY="$(smem -c pid | tail -n1)"
   smem -U "$YOUR_REGEX" -c pid
if [ -z "$NAUGHTY" ] ; then
  printf "The guilty party isn't one of the students... its
  $(smem |tail -n1)\n"
  exit
fi
>   for SIG in 15 15 15 9 9
>   do
> kill -$SIG $NAUGHTY
> printf "Sending signal $SIG to process $NAUGHTY\n"
> sleep 1
> ps -$naughty || exit
> printf "Process $NAUGHTY is Still alive\n"
>   done
>
>
> [1] https://www.selenic.com/smem/
> [2] https://en.wikipedia.org/wiki/Proportional_set_size

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Boruch Baum
On 2018-11-11 17:26, Constantine Shulyupin wrote:
> I am using this bash functions for years:
> https://gitlab.com/makelinux/lib/blob/master/snippets/load-watch.md

AAARGH! OH NO! It's gitlab!

I have a quasi- pet-peeve against gitlab because of its needless
javascript and XHR requirements. Just in order to simply _view_ your
script, I needed to to use a GUI browser (instead of a text browser),
and to allow nine separate javascript elements from two separate source
to do whatever mysterious things they want to try doing. Even then,
all that wasn't enough - I needed to further allow two more XML
requests.

I encourage anyone open to listening to avoid using gitlab and other
sites / packages that have similar attitudes to javascript.

end rant; I feel better now.

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Meir Kriheli
On Sun, Nov 11, 2018 at 5:48 PM Boruch Baum  wrote:

> On 2018-11-11 17:26, Constantine Shulyupin wrote:
> > I am using this bash functions for years:
> > https://gitlab.com/makelinux/lib/blob/master/snippets/load-watch.md
>
> AAARGH! OH NO! It's gitlab!
>
> I have a quasi- pet-peeve against gitlab because of its needless
> javascript and XHR requirements. Just in order to simply _view_ your
> script, I needed to to use a GUI browser (instead of a text browser),
> and to allow nine separate javascript elements from two separate source
> to do whatever mysterious things they want to try doing. Even then,
> all that wasn't enough - I needed to further allow two more XML
> requests.
>
> I encourage anyone open to listening to avoid using gitlab and other
> sites / packages that have similar attitudes to javascript.
>
> end rant; I feel better now.
>

Use the "raw" url:

curl 'https://gitlab.com/makelinux/lib/raw/master/snippets/load-watch.md'




> --
> hkp://keys.gnupg.net
> CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>


-- 
Meir Kriheli
http://meirkriheli.com
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Constantine Shulyupin
github mirror:

https://github.com/makelinux/lib/blob/master/snippets/load-watch.md
On Sun, Nov 11, 2018 at 5:47 PM Boruch Baum  wrote:
>
> On 2018-11-11 17:26, Constantine Shulyupin wrote:
> > I am using this bash functions for years:
> > https://gitlab.com/makelinux/lib/blob/master/snippets/load-watch.md
>
> AAARGH! OH NO! It's gitlab!
>
> I have a quasi- pet-peeve against gitlab because of its needless
> javascript and XHR requirements. Just in order to simply _view_ your
> script, I needed to to use a GUI browser (instead of a text browser),
> and to allow nine separate javascript elements from two separate source
> to do whatever mysterious things they want to try doing. Even then,
> all that wasn't enough - I needed to further allow two more XML
> requests.
>
> I encourage anyone open to listening to avoid using gitlab and other
> sites / packages that have similar attitudes to javascript.
>
> end rant; I feel better now.
>
> --
> hkp://keys.gnupg.net
> CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0



-- 
Constantine Shulyupin
http://www.MakeLinux.co.il/
Embedded Linux Systems
Tel Aviv

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Boruch Baum


On 2018-11-11 18:03, Meir Kriheli wrote:
>  On Sun, Nov 11, 2018 at 5:48 PM Boruch Baum <[1]boruch_b...@gmx.com>
>  wrote:
>
>I have a quasi- pet-peeve against gitlab because of its needless
>javascript and XHR requirements.
>
>  Use the "raw" url:
>  curl
>  '[3]https://gitlab.com/makelinux/lib/raw/master/snippets/load-watch.md'

Thanks, Meir.

Generically, my peeve does still remain, because I would either need to
remember to always manually edit urls s,/blob/,/raw/, s,$,.md, or write
an extension to do it for me. Even so, it wouldn't help for browsing a
repository hosted there, or effectively navigating the site. Good tip to
remember though for when I'm not able to use X11.

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Memory consumption on a per user basis

2018-11-11 Thread Boruch Baum


Appreciated.


On 2018-11-11 18:25, Constantine Shulyupin wrote:
> github mirror:
> https://github.com/makelinux/lib/blob/master/snippets/load-watch.md

-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: English Hebrew dictionary.

2018-11-11 Thread vordoo

  
  
On 11/11/18 2:18 PM,
Boruch Baum wrote:
  

  Hmm, can't find my favorite word-list site among my zillion bookmarks,
but...

1) For individual word, I just now found: http://tlterm.com/hebrew/
which seems reasonable.


Thanks I will check it out.

  


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il