Re: [Discuss] memory management

2015-06-28 Thread Jerry Feldman
[gaf@gaf ~]$ ps -ef | grep firefox gaf 2734 2259 8 06:31 tty2 00:03:27 /usr/lib64/firefox/firefox gaf 3143 2734 0 06:32 tty2 00:00:01 /usr/lib64/firefox/plugin-container /opt/google/talkplugin/libnpgoogletalk.so -greomni /usr/lib64/firefox/omni.ja -appomni

Re: [Discuss] memory management

2015-06-27 Thread Steve Litt
On Fri, 26 Jun 2015 11:02:01 -0500 Derek Martin inva...@pizzashack.org wrote: On Fri, Jun 26, 2015 at 02:45:13AM -0400, Peter Olson wrote: On June 25, 2015 at 4:39 PM Derek Martin inva...@pizzashack.org wrote: If you browse daily, and browsing is causing your problem, then it seems

Re: [Discuss] memory management

2015-06-26 Thread Peter Olson
On June 25, 2015 at 4:39 PM Derek Martin inva...@pizzashack.org wrote: On Mon, Jun 22, 2015 at 03:13:13PM -0400, Matthew Gillen wrote: I'll chime in on this one more time just to be clear about what my beef with linux is here. Several people have said, in effect, Have more RAM or Have

Re: [Discuss] memory management

2015-06-26 Thread Richard Pieri
On 6/26/2015 2:45 AM, Peter Olson wrote: Blaming the victim is unproductive. M-x snark-mode What? We're not blaming the computer for thrashing and crashing when unreasonable demands are being made of it. We're blaming the user for abusing and overwhelming the poor, mistreated computer.

Re: [Discuss] memory management

2015-06-26 Thread Peter Olson
On June 26, 2015 at 10:24 AM Richard Pieri richard.pi...@gmail.com wrote: On 6/26/2015 2:45 AM, Peter Olson wrote: Blaming the victim is unproductive. M-x snark-mode What? We're not blaming the computer for thrashing and crashing when unreasonable demands are being made of it. We're

Re: [Discuss] memory management

2015-06-26 Thread Derek Martin
On Fri, Jun 26, 2015 at 01:45:51PM -0400, Peter Olson wrote: Unreasonable demands such as leaving Netsol Webmail running overnight and having to kill Firefox in the morning :-) (This may have been fixed in a recent upgrade of Webmail.) Well that certainly seems to suggest that it was not

Re: [Discuss] memory management

2015-06-26 Thread Peter Olson
On June 26, 2015 at 2:04 PM Derek Martin inva...@pizzashack.org wrote: On Fri, Jun 26, 2015 at 01:45:51PM -0400, Peter Olson wrote: Unreasonable demands such as leaving Netsol Webmail running overnight and having to kill Firefox in the morning :-) (This may have been fixed in a

Re: [Discuss] memory management

2015-06-26 Thread Derek Martin
On Fri, Jun 26, 2015 at 02:45:13AM -0400, Peter Olson wrote: On June 25, 2015 at 4:39 PM Derek Martin inva...@pizzashack.org wrote: If you browse daily, and browsing is causing your problem, then it seems clear to me that you do not. Blaming the victim is unproductive. No, sticking your

Re: [Discuss] memory management

2015-06-25 Thread Derek Martin
On Sun, Jun 21, 2015 at 05:57:06PM +0200, Bill Bogstad wrote: xhost +SI:localuser:myffuser sudo -u ffuser /usr/bin/firefox xhost -SI:localuser:myffuser It's not an issue on a single user box; it's the same user (human) with a different UID. This is where I disagree. If it

Re: [Discuss] memory management

2015-06-25 Thread Derek Martin
On Sun, Jun 21, 2015 at 03:18:03PM +0200, Bill Bogstad wrote: On Sun, Jun 21, 2015 at 1:10 PM, Jerry Feldman g...@blu.org wrote: I'm curious though, how this other user account gains access to your X server. Allowing other user ids to write on your screen/capture key mouse events seem to

Re: [Discuss] memory management

2015-06-25 Thread Derek Martin
On Mon, Jun 22, 2015 at 03:13:13PM -0400, Matthew Gillen wrote: I'll chime in on this one more time just to be clear about what my beef with linux is here. Several people have said, in effect, Have more RAM or Have enough RAM for what you need. Which is obviously true, but missing the point.

Re: [Discuss] memory management

2015-06-25 Thread Derek Martin
On Fri, Jun 19, 2015 at 10:46:33AM -0400, Dan Ritter wrote: The memory leak wrt Firefox has been an issue for those users (not community...users) for years. There are so many reasons to use a distro over Ubuntu. Note I did not refer to Ubuntu as a distro... At any rate, there is a fix

Re: [Discuss] memory management

2015-06-25 Thread John Abreau
I use Firefox on several Linux systems and one MacOS Snow Leopard system. I've never seen this problem on the Linux systems, but both Firefox and Google Chrome would routinely use up the memory on the MacOS system to the point where the entire system became unresponsive, and all too often I had to

Re: [Discuss] memory management

2015-06-24 Thread Matthew Gillen
I think plugin-container doesn't get launched until it needs something like the flash plugin. On 6/23/2015 10:03 PM, John Abreau wrote: ps x | grep plug yields nothing but the grep process. ps x -o pid,ppid,cmd | grep 12345 (where 12345 is firefox's PID) yields nothing but the grep process.

Re: [Discuss] memory management

2015-06-24 Thread Bill Ricker
I think plugin-container doesn't get launched until it needs something like the flash plugin. ​which, if you're running NoScript, is under your control. (If not, why not ? :-)​ -- Bill Ricker bill.n1...@gmail.com https://www.linkedin.com/in/n1vux

Re: [Discuss] memory management

2015-06-24 Thread Tom Metro
Matthew Gillen wrote: I think plugin-container doesn't get launched until it needs something like the flash plugin. Right. That's been my observation. It doesn't get used for extensions. Only plugins, and I think only ones using a legacy API at that. And is loaded only when needed. -Tom --

Re: [Discuss] memory management

2015-06-23 Thread John Abreau
Also tried the following bash script on MacOS Snow Leopard desktop, and the system is running much better now, after I killed the running instance of firefox and then ran the script from an xterm to relaunch firefox. #! /bin/bash ulimit -d 350 ; ulimit -v 350 ; ulimit -m 300

Re: [Discuss] memory management

2015-06-23 Thread John Abreau
A bit of googling turned up a page about using cgroups to limit firefox's memory usage. http://jlebar.com/2011/6/15/Limiting_the_amount_of_RAM_a_program_can_use.html On Fri, Jun 19, 2015 at 10:01 AM, Matthew Gillen m...@mattgillen.net wrote: I'm looking for some advice on tuning my linux

Re: [Discuss] memory management

2015-06-23 Thread Richard Pieri
On 6/23/2015 2:04 AM, John Abreau wrote: So the OP is asking for help figuring out how to manage these processes, and your response is to tell him that it's up to him to manage them? Not a particularly useful response. No, he was complaining about how the kernel doesn't do it for him. As a

Re: [Discuss] memory management

2015-06-23 Thread Steve Litt
On Tue, 23 Jun 2015 11:38:30 -0400 Matthew Gillen m...@mattgillen.net wrote: On 06/23/2015 10:18 AM, John Abreau wrote: A bit of googling turned up a page about using cgroups to limit firefox's memory usage. http://jlebar.com/2011/6/15/Limiting_the_amount_of_RAM_a_program_can_use.html

Re: [Discuss] memory management

2015-06-23 Thread Robert Krawitz
On Mon, 22 Jun 2015 15:13:13 -0400, Matthew Gillen wrote: I'll chime in on this one more time just to be clear about what my beef with linux is here. Several people have said, in effect, Have more RAM or Have enough RAM for what you need. Which is obviously true, but missing the point. For

Re: [Discuss] memory management

2015-06-23 Thread John Abreau
So the OP is asking for help figuring out how to manage these processes, and your response is to tell him that it's up to him to manage them? Not a particularly useful response. On Mon, Jun 22, 2015 at 7:34 PM, Richard Pieri richard.pi...@gmail.com wrote: On 6/22/2015 6:40 PM, Matthew Gillen

Re: [Discuss] memory management

2015-06-23 Thread Bill Ricker
On Tue, Jun 23, 2015 at 8:48 PM, John Abreau j...@blu.org wrote: Shouldn't plugin-container be running if firefox is running? ​'top' truncates mine to 'plugin-containe'​, but that does contain 'plug'. -- Bill Ricker bill.n1...@gmail.com https://www.linkedin.com/in/n1vux

Re: [Discuss] memory management

2015-06-23 Thread John Abreau
ps x | grep plug yields nothing but the grep process. ps x -o pid,ppid,cmd | grep 12345 (where 12345 is firefox's PID) yields nothing but the grep process. I'm running Firefox 38.0.5, which is the latest release. I use a script I wrote long ago to fetch the latest tarball from ftp.mozilla.org

Re: [Discuss] memory management

2015-06-23 Thread John Abreau
I just checked three different machines firefox (Fedora 22, CentOS 6.5, and MacOS Snow Leopard). All three have an active firefox browser running, but none show a running process named plugin-container, nor any process with a name containing the string plug There are also no processes whose

Re: [Discuss] memory management

2015-06-22 Thread Matthew Gillen
On 6/22/2015 3:38 PM, Richard Pieri wrote: On 6/22/2015 3:13 PM, Matthew Gillen wrote: What strikes me as odd and wrong is that the OS doesn't seem to protect itself from thrashing. The system is perfectly happy to render itself inoperative in the service of some lone process sucking up

Re: [Discuss] memory management

2015-06-22 Thread Richard Pieri
On 6/22/2015 6:40 PM, Matthew Gillen wrote: That doesn't (necessarily) address the issue I was raising about an out of control app wreaking havoc on the rest of the system. Just a different flavor of havoc. Yes, it does. The kernel isn't there to baby sit. It's there to allocate resources

Re: [Discuss] memory management

2015-06-22 Thread Jerry Feldman
On 06/21/2015 05:58 PM, Dan Ritter wrote: On Sun, Jun 21, 2015 at 03:39:46PM -0400, Richard Pieri wrote: When a process tries to allocate more pages than the total of clean and unallocated pages in the page cache, well, that's an overload. Overloaded system is overloaded. Game over. Install

Re: [Discuss] memory management

2015-06-22 Thread Matthew Gillen
I'll chime in on this one more time just to be clear about what my beef with linux is here. Several people have said, in effect, Have more RAM or Have enough RAM for what you need. Which is obviously true, but missing the point. For my day-to-day, I do have enough RAM. What sometimes happens

Re: [Discuss] memory management

2015-06-22 Thread Richard Pieri
On 6/22/2015 3:13 PM, Matthew Gillen wrote: What strikes me as odd and wrong is that the OS doesn't seem to protect itself from thrashing. The system is perfectly happy to render itself inoperative in the service of some lone process sucking up memory. Don't like swap thrashing? Shut off

Re: [Discuss] memory management

2015-06-21 Thread Bill Bogstad
On Sun, Jun 21, 2015 at 1:10 PM, Jerry Feldman g...@blu.org wrote: You can override its behavior my modifying the desktop file (/usr/share/applications/firefox.desktop in Gnome 3) The statement 'Exec=firefox %u' is the line to modify. You could place your modified copy in

Re: [Discuss] memory management

2015-06-21 Thread Bill Bogstad
On Sun, Jun 21, 2015 at 4:19 PM, Richard Pieri richard.pi...@gmail.com wrote: On 6/21/2015 9:18 AM, Bill Bogstad wrote: I use multiple Firefox user profiles instead. Some of them allow cookies/javascript and others do not. This probably doesn't help memory usage, but it does allow some

Re: [Discuss] memory management

2015-06-21 Thread Richard Pieri
On 6/21/2015 9:18 AM, Bill Bogstad wrote: I use multiple Firefox user profiles instead. Some of them allow cookies/javascript and others do not. This probably doesn't help memory usage, but it does allow some (small?) security benefits. Or use a script blocker like NoScript or uBlock. These

Re: [Discuss] memory management

2015-06-21 Thread Bill Ricker
On Sun, Jun 21, 2015 at 12:20 AM, Matthew Gillen m...@mattgillen.net wrote: I've found that if you use su - username then you can run X programs as another user without trouble. IIRC that requires a permissive setting on the X server to allow any to connect to execute graprics, which may

Re: [Discuss] memory management

2015-06-21 Thread Jerry Feldman
You can override its behavior my modifying the desktop file (/usr/share/applications/firefox.desktop in Gnome 3) The statement 'Exec=firefox %u' is the line to modify. You could place your modified copy in ~/.local/share/applications I have not tried this, but it should work. Instead of su -,

Re: [Discuss] memory management

2015-06-21 Thread Steve Litt
On Sun, 21 Jun 2015 14:23:28 -0400 Tom Metro tmetro+...@gmail.com wrote: I've considered a low-tech solution, like having a background script pop-up a notification when free RAM drops below some threshold to prompt me to restart various long running and leaking processes. That's not a half

Re: [Discuss] memory management

2015-06-21 Thread Jerry Feldman
At work I have a version that does. I'll post that tomorrow. On 06/21/2015 09:18 AM, Bill Bogstad wrote: On Sun, Jun 21, 2015 at 1:10 PM, Jerry Feldman g...@blu.org mailto:g...@blu.org wrote: You can override its behavior my modifying the desktop file

Re: [Discuss] memory management

2015-06-21 Thread Tom Metro
Matthew Gillen wrote: If I try to run Firefox, and a few java apps (e.g., Eclipse), my machine thrashes about and effectively locks up because of out-of-memory issues. After going on like this for literally 10 minutes, OOM-killer sometimes kills the right thing... I've noticed this as well

Re: [Discuss] memory management

2015-06-21 Thread Robert Krawitz
On Sun, 21 Jun 2015 17:58:12 -0400, Dan Ritter wrote: On Sun, Jun 21, 2015 at 03:39:46PM -0400, Richard Pieri wrote: When a process tries to allocate more pages than the total of clean and unallocated pages in the page cache, well, that's an overload. Overloaded system is overloaded. Game

Re: [Discuss] memory management

2015-06-20 Thread Jerry Feldman
Agreed. My netbook has 1G of memory and actually ran virtualbox surprisingly well while I was giving a presentation using Libre Office Impress. It might be possible that you have an issue with your memory. Try running a memory diagnostic. On 06/19/2015 10:32 AM, Eric Chadbourne wrote: On

Re: [Discuss] memory management

2015-06-20 Thread Jerry Feldman
I don't agree with shutting firefox down every time you are finished. Virtual memory should mitigate this if you focus on another task, but. Many web sites are very active so they keep requiring system resources even if firefox is not actively being used. Maybe just closing some tabs of

Re: [Discuss] memory management

2015-06-20 Thread Matthew Gillen
Thanks for the suggestions. Addressing some random questions: -this is a Fedora box. Currently v21, but I've had these types of issues for years. - top, when I can get it to run, shows virtually no CPU use. The only thing that is getting to run is kswapd0 if I recall correctly. - I do have

Re: [Discuss] memory management

2015-06-20 Thread Mike Small
Matthew Gillen m...@mattgillen.net writes: going to start swapping if it can. What I want for desktop environments is behavior like: if you run out of memory, kill the thing that's hogging the most. My typical case is that if there is a process using a ton of memory, it's probably doing

Re: [Discuss] memory management

2015-06-20 Thread Matthew Gillen
On 6/20/2015 4:18 PM, Mike Small wrote: Matthew Gillen m...@mattgillen.net writes: going to start swapping if it can. What I want for desktop environments is behavior like: if you run out of memory, kill the thing that's hogging the most. My typical case is that if there is a process using a

[Discuss] memory management

2015-06-19 Thread Matthew Gillen
I'm looking for some advice on tuning my linux box's memory management. I've got an older workstation that has merely 4GB of memory. If I try to run Firefox, and a few java apps (e.g., Eclipse), my machine thrashes about and effectively locks up because of out-of-memory issues. For example: the

Re: [Discuss] memory management

2015-06-19 Thread Dan Ritter
On Fri, Jun 19, 2015 at 10:01:57AM -0400, Matthew Gillen wrote: I'm looking for some advice on tuning my linux box's memory management. I've got an older workstation that has merely 4GB of memory. If I try to run Firefox, and a few java apps (e.g., Eclipse), my machine thrashes about and

Re: [Discuss] memory management

2015-06-19 Thread Bill Ricker
How Swap and Memory are used is controlled largely by the 'swappiness' setting. The default is correct for servers but not for workstations. swap - How do I configure swappiness? - Ask Ubuntu The Linux kernel provides a tweakable setting that controls how often the swap file is used, called

Re: [Discuss] memory management

2015-06-19 Thread Steve Litt
On Fri, 19 Jun 2015 10:01:57 -0400 Matthew Gillen m...@mattgillen.net wrote: I'm looking for some advice on tuning my linux box's memory management. I've got an older workstation that has merely 4GB of memory. If I try to run Firefox, and a few java apps (e.g., Eclipse), my machine thrashes

Re: [Discuss] memory management

2015-06-19 Thread Drew Van Zandt
16GB seems like a small amount of memory to me; I generally use 24GB or more. Different strokes... --DTVZ On Fri, Jun 19, 2015 at 11:08 AM, Mike Small sma...@panix.com wrote: 4.0 GB seems like a large amount of memory to me. It's way more than I have a use for. *Drew Van ZandtArtisan's

Re: [Discuss] memory management

2015-06-19 Thread Eric Chadbourne
On Jun 19, 2015, at 10:01 AM, Matthew Gillen m...@mattgillen.net wrote: I'm looking for some advice on tuning my linux box's memory management. I've got an older workstation that has merely 4GB of memory. If I try to run Firefox, and a few java apps (e.g., Eclipse), my machine thrashes

Re: [Discuss] memory management

2015-06-19 Thread Dan Ritter
On Fri, Jun 19, 2015 at 02:44:35PM +, Marcia K Wilbur wrote: I'm not sure what you are using for the OS but I'll guess - Ubuntu or some variant of Ubuntu.. If so, stop doing that. If not, let us know. Then, maybe there are other solutions. The memory leak wrt Firefox has been an issue

Re: [Discuss] memory management

2015-06-19 Thread Richard Pieri
On 6/19/2015 10:01 AM, Matthew Gillen wrote: Does anyone have any tips on how to prevent linux from thrashing like that? The behavior when low on memory seems atrociously bad. Install more RAM or stop using programs that use more RAM than you have. -- Rich P.

Re: [Discuss] memory management

2015-06-19 Thread Mike Small
Jerry Natowitz j.natow...@rcn.com writes: My advise on Firefox is to close it down completely whenever you have finished using it. There seems to be a lot of memory leaking, I've seen Firefox grow into multi-gigabyte virtual size in a matter of hours. I leave it running all the time and

Re: [Discuss] memory management

2015-06-19 Thread Jerry Natowitz
My advise on Firefox is to close it down completely whenever you have finished using it. There seems to be a lot of memory leaking, I've seen Firefox grow into multi-gigabyte virtual size in a matter of hours. I have not experimented with shutting down Firefox with multiple windows and tabs,

Re: [Discuss] memory management

2015-06-19 Thread Drew Van Zandt
Hardware design, several things. Primarily EM simulation and big FPGA sim, complex analog sim, or just big schematics. When doing a schematic review, it is helpful to have half a dozen or more large PDFs (datasheets) open while viewing schematics, a few spreadsheets, some Word Visio design

Re: [Discuss] memory management

2015-06-19 Thread Bill Ricker
On Fri, Jun 19, 2015 at 11:02 AM, Steve Litt sl...@troubleshooters.com wrote: I haven't seen any stats quoted in your email, from the top program, that indicate it's a RAM problem. Firefox and its pet plugin-container use a heck of a lot of CPU. Until very recently I was using a 4GB machine,