bmcweb image upload

Wim Vervoorn wvervoorn at eltan.com
Fri Apr 26 20:10:02 AEST 2019


Hello Patrick,

Thanks for your suggestion. I will look at this.

Best Regards,
Wim Vervoorn

Eltan B.V.
Ambachtstraat 23
5481 SM Schijndel
The Netherlands

T : +31-(0)73-594 46 64
E : wvervoorn at eltan.com
W : http://www.eltan.com


"THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION. UNLESS YOU ARE THE INTENDED RECIPIENT OF THIS MESSAGE, ANY USE OF THIS MESSAGE IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE IMMEDIATELY NOTIFY THE SENDER BY TELEPHONE +31-(0)73-5944664 OR REPLY EMAIL, AND IMMEDIATELY DELETE THIS MESSAGE AND ALL COPIES." 

-----Original Message-----
From: Patrick Venture [mailto:venture at google.com] 
Sent: Thursday, April 25, 2019 4:31 PM
To: Wim Vervoorn <wvervoorn at eltan.com>; Tanous, Ed <ed.tanous at intel.com>
Cc: openbmc at lists.ozlabs.org
Subject: Re: bmcweb image upload

On Thu, Apr 25, 2019 at 2:03 AM Wim Vervoorn <wvervoorn at eltan.com> wrote:
>
> Hello,
>
> I have an AST2400 OpenBmc with 128 MB of RAM. I found that the firmware upload using WebUI (and Redfish) doesn't work. Bmcweb is killed due to an out of memory condition.
>
> If found out this is due to the large request size of 30 MB. Will there be an update to the upload mechanism to resolve this large memory requirement?

I'm so excited for your email!  For a time, I was the only person maintaining an ast2400 with 128MB of RAM.

Here are some things to do straight away:
look at your bmc image and remove any image_features you're not using
-- if possible.

That'll help with the problem in general.

To do updates on our end, we have a service triggered by a different update mechanism that clears the caches, this frees up critical memory for the system.  I don't know enough about the redfish approach, but perhaps it could be programmed to call a similar service before receiving the image when the request is received.

Our package, "google-prepare-update" is just:

prepare_update.service:
[Unit]
Description=Purge Memory Caches
[Service]
Type=oneshot
ExecStart=/usr/sbin/purge_cache.sh

purge_cache.sh:
#!/bin/bash
# Run sync command.
sync
# Purge the three caches.
echo 3 > /proc/sys/vm/drop_caches
# Done
exit 0

>
> Best regards,
>
> Wim Vervoorn
>
>





More information about the openbmc mailing list