#9442 NORM Not Tri: Support large lease.sig files

Zarro Boogs per Child bugtracker at laptop.org
Fri Aug 21 11:38:47 EDT 2009


#9442: Support large lease.sig files
-----------------------------+----------------------------------------------
 Reporter:  martin.langhoff  |                 Owner:  martin.langhoff
     Type:  defect           |                Status:  new            
 Priority:  normal           |             Milestone:  Not Triaged    
Component:  initramfs        |               Version:  not specified  
 Keywords:  ml8.2.3          |           Next_action:  never set      
 Verified:  0                |   Deployment_affected:                 
Blockedby:                   |              Blocking:                 
-----------------------------+----------------------------------------------
 A blocker for large deployments using our antitheft scheme is that the
 repair centers need "universal unlock" usb sticks (tightly controlled,
 short-lived, etc) to work quickly on laptops that arrive for repair,
 upgrade, etc.

 With 200K laptops, these can be fairly large (est >100MB), and the reports
 form the field are that our initrd chokes on them. Testing shows that
 parsing large lease files with our CJSON parser results in

  - 1 full copy in memory as a string, with low overhead
  - the parsed representation has a ~400% overhead

 So parsing a 10MB CJSON file will consume around 50MB of core.

 The leases contained _inside_ the CJSON file are in a format that is self
 validating, so validating the CJSON file in itself does not add any value,
 and in this case causes a blocker bug.

 To workaround this, if we find a CJSON formatted lease.sig that follows
 the 'version 1' conventions, grep directly to the location of the
 key/value pair and extract the value.

 Implementation
 http://dev.laptop.org/git/users/martin/olpcrd-
 rough.git/commit/?id=4c652894b22c7d7ca18e6e00dcce76f69ee89380

-- 
Ticket URL: <http://dev.laptop.org/ticket/9442>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list