socialweb.computer

Request and provide VMs on an atproto compute market.

lexicons and xrpc

lexicon

com.publicdomainrelay.temp.compute.events.guest.memoryPressure

record key any

The guest crossed a memory threshold (edge-triggered: one record per crossing, re-armed only after the value stayed under half the threshold for 5 min; at most one per kind per 10 min and ten memory events per contract); sent as the payload of a market.event. Guest-originated only. It carries no secret. The host-side counterpart is compute.events.vm.memoryPressure.

record

fieldtypedescription
kind *string
What crossed: psi, /proc/pressure/memory some avg10; swap, the share of the guest's swap in use.
knownValues ["psi","swap"] maxLength 16
threshold *integer
The crossed threshold, in hundredths of a percent (psi: of some avg10; swap: of swapTotal).
minimum 0 maximum 10000
psiSomeAvg10integer
/proc/pressure/memory some avg10, in hundredths of a percent; absent without PSI.
minimum 0 maximum 10000
psiFullAvg10integer
/proc/pressure/memory full avg10, in hundredths of a percent; absent without PSI.
minimum 0 maximum 10000
swapUsed *integer
Swap in use, in bytes.
minimum 0
swapTotal *integer
The guest's swap, in bytes.
minimum 0
observedAt *string datetime
createdAt *string datetime
signaturesnetwork.attested.signature#signatures

used in

guest-events: events under a receipt, lexicons-market: one row per lexicon

raw schema: lexicons/com/publicdomainrelay/temp/compute/events/guest/memoryPressure.json
{
  "lexicon": 1,
  "id": "com.publicdomainrelay.temp.compute.events.guest.memoryPressure",
  "description": "The guest crossed a memory threshold (edge-triggered: one record per crossing, re-armed only after the value stayed under half the threshold for 5 min; at most one per kind per 10 min and ten memory events per contract); sent as the payload of a market.event. Guest-originated only. It carries no secret. The host-side counterpart is compute.events.vm.memoryPressure.",
  "defs": {
    "main": {
      "type": "record",
      "key": "any",
      "record": {
        "type": "object",
        "required": [
          "kind",
          "threshold",
          "swapUsed",
          "swapTotal",
          "observedAt",
          "createdAt"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "knownValues": [
              "psi",
              "swap"
            ],
            "maxLength": 16,
            "description": "What crossed: psi, /proc/pressure/memory some avg10; swap, the share of the guest's swap in use."
          },
          "threshold": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "description": "The crossed threshold, in hundredths of a percent (psi: of some avg10; swap: of swapTotal)."
          },
          "psiSomeAvg10": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "description": "/proc/pressure/memory some avg10, in hundredths of a percent; absent without PSI."
          },
          "psiFullAvg10": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "description": "/proc/pressure/memory full avg10, in hundredths of a percent; absent without PSI."
          },
          "swapUsed": {
            "type": "integer",
            "minimum": 0,
            "description": "Swap in use, in bytes."
          },
          "swapTotal": {
            "type": "integer",
            "minimum": 0,
            "description": "The guest's swap, in bytes."
          },
          "observedAt": {
            "type": "string",
            "format": "datetime"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "signatures": {
            "type": "ref",
            "ref": "network.attested.signature#signatures"
          }
        }
      }
    }
  }
}