OWB Memory Usage
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    pan1k
    Posts: 147 from 2009/1/20
    I've been noticing lately that OWB is using a lot of memory. If I login to Facebook, OWB will use about 500mb of RAM! Right now just browsing MorphZone it's using about 300mb. Should I just delete OWB and reinstall?
    MacMini 1.5Ghz / Amiga 4000T Cyberstorm 060, 132MB RAM, Cybervision 64/3D, XSurf-III, MP3@64, Buddha Flash / Amiga 1200 GVP 030, Subway USB, 32MB RAM
  • »03.11.14 - 13:00
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    No. It's not a bug in your system. It's because Webkit, which OWB is based upon, doesn't handle memory leaks very well. And they are not in a hurry to fix it in an age of several GB RAM as standard.

    You have to live with it sadly. What I do is that I have my tabs saved every time I quit OWB and if I start running out of memory I quit and restart. After a while, you stop thinking about this even. It becomes rutine.
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »03.11.14 - 13:10
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    It's actually more due to the fact that MorphOS does not support the memory allocation models other systems do: modern OSes allow you to allocate virtual heap without using actual physical memory until you touch the said block: WebKit's js engine *reserves* a lot of RAM, which on MorphOS must be allocated immediately from the global physical RAM reserves. On modern OSes this just wastes virtual address space.
  • »03.11.14 - 14:25
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    @jacadcaps

    Thanks for the clarification. You learn something new every day :-)

    Is there something that can be done to fix this?
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »04.11.14 - 09:39
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    pan1k
    Posts: 147 from 2009/1/20
    I deleted the OWB installation and re-installed with Grunch. Memory consumption is lower than what it was.. but it's better then where I was at.. just browsing for a few hours would fill up my memory! Thanks for the infos..
    MacMini 1.5Ghz / Amiga 4000T Cyberstorm 060, 132MB RAM, Cybervision 64/3D, XSurf-III, MP3@64, Buddha Flash / Amiga 1200 GVP 030, Subway USB, 32MB RAM
  • »04.11.14 - 13:25
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    THanks for the clarification to understand that missing features in MorphOs are the problem and not OWB itself. Though it is a very annyoing problem because I so often get OWB crashes or better to say: "asking" to crash or to quit because it cannot reserve 5 or 8MB although I still have 300 or 400 MB of free RAM. This disturbs working with OWB many times a day because I have to quit and reload many times. Is there sure nothing that can be done about it? I understand it when RAM is full but not when it is only half full and still hundreds of MB free so the requested size would fit 40 or 50 times in the still free area.
  • »04.11.14 - 16:03
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3108 from 2003/3/5
    From: Canada
    Quote:

    Yasu wrote:
    Is there something that can be done to fix this?


    Yes, dropping backwards compatibility.
  • »04.11.14 - 16:39
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    So when I have 400 MB free and one page requires 8MB which are still available many times, then OWB can nothing do about it but it must ask to crash?
  • »04.11.14 - 17:24
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12153 from 2003/5/22
    From: Germany
    > I understand it when RAM is full but not when it is only half full and still hundreds
    > of MB free so the requested size would fit 40 or 50 times in the still free area.

    The amount of free total memory is not the only deciding factor. As a result from fragmentation, you also have to take into account the largest free memory block available. Allocation of a certain amount of memory needs a free contiguous memory block of at least the same size.
    For monitoring of the largest free memory block available I recommend using MemoryGauge.sbar:

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=6453&forum=9&start=16
  • »04.11.14 - 18:35
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    redrumloa
    Posts: 1424 from 2003/4/13
    Quote:

    jacadcaps wrote:
    Quote:

    Yasu wrote:
    Is there something that can be done to fix this?


    Yes, dropping backwards compatibility.


    I'm ready. My vote is for 'do it'.
  • »04.11.14 - 19:41
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    yes, me too. But before this happens and we can have it on our machines I welcome every smaller solution to it, too.
  • »04.11.14 - 19:55
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    I can wait for the ISA shift :-)
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »04.11.14 - 21:26
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    In_Correct
    Posts: 245 from 2012/10/14
    From: DFW, TX, USA
    Quote:

    redrumloa wrote:
    Quote:

    jacadcaps wrote:
    Quote:

    Yasu wrote:
    Is there something that can be done to fix this?


    Yes, dropping backwards compatibility.


    I'm ready. My vote is for 'do it'.




    I remember sometimes get "Application Is Meditating" annoying error which can only go away by restarting. There is no easy way that I know of to terminate a process instead. Please fix the error.

    Also, I never understood the backwards compatibility for two main reasons. 1. Risk of crash errors is not sufficient reason to tie down unsupported software as a requirement to use MorphOS. Just put it in an emulator and or rewrite the software, and or port MorphOS to MiniMig.

    2. I never got a legacy Amiga program to function. What am I doing wrong?

    ISA Shift request: Just port it to Efika MX Smartbook or equivalent device. :-)
    :-) I Support Quark Microkernel. :-D
  • »04.11.14 - 23:26
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    Quote:

    jacadcaps wrote:
    Yes, dropping backwards compatibility.


    Go for it. Too bad we cannot make poll in here anymore ;)



    [ Edited by pampers 05.11.2014 - 07:08 ]
    MorphOS 3.x
  • »05.11.14 - 06:06
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    analogkid
    Posts: 667 from 2004/11/3
    From: near myself
    Quote:

    pampers wrote:
    Go for it. Too bad we cannot make poll in here anymore ;)



    There may be people who want to keep backward compatibility... These votes may distort your imaginary polls' result.
  • »05.11.14 - 06:44
    Profile
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    In_Correct wrote:
    I remember sometimes get "Application Is Meditating" annoying error which can only go away by restarting. There is no easy way that I know of to terminate a process instead. Please fix the error.


    That means that application has crashed and it's usually application's fault. Fixing should be done by the author of the application.

    If you click the close gadget of such crashed application, you should get a requester asking if it should be closed and resources freed as much as possible. Another method is to use ikill command and "shoot" the crashed application window. But anyway, in such situations you can't be sure if something else is messed too and it's safer to reboot anyway.


    Quote:

    Also, I never understood the backwards compatibility for two main reasons. 1. Risk of crash errors is not sufficient reason to tie down unsupported software as a requirement to use MorphOS. Just put it in an emulator and or rewrite the software, and or port MorphOS to MiniMig.



    Emulator doesn't help if you want to use for example 68k commands, libraries or other system components to enhance your main system. Also emulated applications don't share system clipboard, arexx ports, or even filesystem, which are needed to communicate between programs in many cases.

    You are probably using 68k arexx library yourself too, for example. And probably some other stuff too.

    Quote:


    2. I never got a legacy Amiga program to function. What am I doing wrong?



    You're forgetting that legacy program shoudn't bang the non existing Amiga HW. So, games and some older apps are out of question. Programs should be OS friendly and function on RTG screen and use AHI if using audio. So, you've probably tried wrong kind of programs. Most utilities, shell programs, newer apps etc are working just fine.


    [ Edited by jPV 05.11.2014 - 11:05 ]
  • »05.11.14 - 07:55
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12153 from 2003/5/22
    From: Germany
    > port MorphOS to MiniMig.

    MorphOS for m68k? What for?

    > I never got a legacy Amiga program to function. What am I doing wrong?

    Which ones have you tried?

    > ISA Shift request: Just port it to Efika MX Smartbook or equivalent device. :-)

    There are ARM devices with multiple times the performance of the Efika MX, therefore I'd be against restricting it to equivalent devices :-)
  • »05.11.14 - 08:25
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    @connor

    It's strange that OWB crashes while having enough memory left. It rarely happens to me. Maybe you have a faulty RAM?

    @all

    Well, we have diskussed this before and it's safe to assume that the MorphOS Team is already thinking about what the best option for a ISA shift is. Remember, it's not just about what platform is the "best", but also which a small team like theirs can realistically do.

    That said, I'm reserving money for the day I need to buy new hardware and a new licence. My bet is that regardless what hardware the Team choose to support, the end result will be AWESOME! :-D
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »05.11.14 - 09:13
    Profile Visit Website
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    Quote:

    connor wrote:
    THanks for the clarification to understand that missing features in MorphOs are the problem and not OWB itself. Though it is a very annyoing problem because I so often get OWB crashes or better to say: "asking" to crash or to quit because it cannot reserve 5 or 8MB although I still have 300 or 400 MB of free RAM. This disturbs working with OWB many times a day because I have to quit and reload many times. Is there sure nothing that can be done about it? I understand it when RAM is full but not when it is only half full and still hundreds of MB free so the requested size would fit 40 or 50 times in the still free area.


    Are you sure it's saying it's because of the memory needs but not for other reason? What does it say in the requester? Because I for example get similar requesters with "assertion failed" text after trashing the memory with SimpleMail/68k :) With a quick look it looks like out of memory requester, but it isn't :) Luckily we now have better MorphOS port of SM and I haven't seen those OWB requesters anymore...
  • »05.11.14 - 09:53
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    Quote:

    analogkid wrote:
    There may be people who want to keep backward compatibility... These votes may distort your imaginary polls' result.



    And I presume you already know my "imaginary polls' result"?
    MorphOS 3.x
  • »06.11.14 - 15:47
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    @ Yasu

    No it's no faulty memory. It is working in all other situations when memory is almost full. I can fill it with all the other apps that I use. Only OWB makes these problems.


    @ jPV

    It also happens when I do not use 68k apps at all. It is definitely OWB. What it says? This one:
    Failed to allocate 5411766 bytes.
    Unfortunately, WebKit doesn't check allocations and crashes in such situation.
    You can either:
    - Crash
    - Retry
    - Quit

    I even got this message only because I hit Ctrl+T to open a new tab!
  • »06.11.14 - 16:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    has already been done. the memory is not faulty, it is all working
  • »06.11.14 - 17:18
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    @connor

    Strange indeed. My G5 does not behave like that.
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »06.11.14 - 17:40
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Quote:

    connor wrote:
    has already been done. the memory is not faulty, it is all working


    As mentioned before, it could very well be that your largest block isn't enough, even for a simple new tab, because a blank page still involves memory hungry steps, in particular :
    - allocating the cairo surface (but since i manage it myself, it's properly handled and it wouldn't crash if the allocation failed).
    - instanciate webkit js heap stuff, which can take several megabytes.
  • »06.11.14 - 17:43
    Profile Visit Website