Two kinds of number appear on this page and they behave differently.
A compiled limit is fixed in the build. Changing it means rebuilding SD, and several would change on-disk file formats, so in practice they are ceilings.
A configured limit is a value in sd.conf with a default. A site can raise
or lower it, within a range the compiled limits set. Those are covered in full
under Configuration in this set; this page gives the number in force and says
which parameter controls it.
This document is separate so that it can be withheld. It links to nothing outside the administrator set. Where a page in another set is worth naming, it is named in words.
Data#
| Maximum string or record size | 1,073,741,822 bytes | compiled |
| Maximum record id length | 63 by default, up to 255 | MAXIDLEN |
| Fields per record | limited only by record size | — |
| Values per field, subvalues per value | limited only by record size | — |
The record size limit is just under 1 GB rather than 2 GB. It is the maximum size of any single string SD will build, so it applies to a record, to a concatenation, and to anything a program assembles in memory.
A record id may be longer than 63 characters only if MAXIDLEN is raised,
and the range starts at 63 rather than 0 — a lower value is refused at start-up
rather than accepted. The ceiling of 255 is compiled, because raising it would
require major file-format changes.
Files#
| File types | two — directory and dynamic | compiled |
| Group size for a dynamic file | 4 KB by default, maximum 8 | GRPSIZE |
| Open files across all sessions | 80 | NUMFILES |
| Maximum pathname length | 255 | compiled |
Path of a program named to RUN |
255 characters | compiled |
| Sort keys in one query | 32 | compiled |
Group size is expressed in 1 KB units, so the compiled maximum of 8 is 8 KB.
A sort that outgrows SORTMEM is written to work files, and an item or a key may be of any
length SD can hold. The lengths in a work file are 32 bits, so an item or a key of
32 KB or more is sorted correctly when a sort spills to disk.
A split of a dynamic file stops before it changes the file when the disk cannot take it. A dynamic file grows by splitting its groups. The split writes the new, empty group first and
only then advances the file's modulus; it does nothing if that write cannot be made, or if the file
system holds less than 1 MB, and writes a line to the log, so a full disk does not leave the modulus advanced
with no group behind it. A split that
fails after the new group has begun to be used still cannot be undone: it logs the failure and
writes the file's header, and the file needs a file check (sdfix, described in
sdfix, the File Check Tool).
Sessions and locks#
| Concurrent sessions | 20 | NUMUSERS |
| Record locks across all sessions | 100 | NUMLOCKS |
| File locks | one per file | compiled |
| Windows account name | 32 characters | compiled |
| SD account name | 32 characters | compiled |
NUMUSERS sizes the user table in shared memory, so it is read once when SD
starts and cannot be changed in a running system.
Programs#
| Subroutine call depth | 10,000 | MAXCALL, range 10 to 1,000,000 |
| Cataloged name length | 63 characters | compiled |
| Matrix dimensions | two | compiled |
| Compiled programs held in memory | no limit by default | OBJECTS |
| Memory those programs may occupy | no limit by default | OBJMEM, in KB |
Select lists#
| Numbered select lists | 13, numbered 0 to 12 | compiled |
| Items in a select list | limited by disk | — |
Thirteen is the number a session has available at once, not a limit on how many
lists can be saved. save.list writes to a file and is limited only by space.
Terminals#
| Terminal definitions shipped | 26 source definitions | — |
| Terminal names they compile to | 37 | — |
| Default page size | 140 × 43 | — |
| Minimum page size | 10 lines × 20 columns | compiled |
| Default printer page | 80 × 66 | LPTRWIDE, LPTRHIGH |
The extra terminal names are aliases and variants that share a definition with their base name.
What an account gets#
There is no tier to give three different answers for. Every
ordinary account gets the whole of newvoc; SDSYS gets that plus the
records that exist only in voc_template.
| VOC records | |
|---|---|
An ordinary account (newvoc) |
386 |
SDSYS (voc_template) |
448 |
These are record counts, not verb counts — a VOC record may be a verb, a
keyword, a file pointer, a sentence or a paragraph, and only some are verbs.
Counted directly from the shipped directories (newvoc/voc_template),
matching what count voc reports in a freshly created account. (The
TCL-verb subset specifically — 211 in SDSYS's VOC and 160 in an ordinary
account's, sh/micro included — is counted separately in the User
set's SD TCL syntax card.)
Configuration#
Parameters accepted in sd.conf |
59 |
Parameters the config verb displays |
56 |
Parameters readable with config() |
57 |
| Parameters settable for the current session | 29 |
The three parameters the verb does not display and config() cannot read are
BACKUPDIR, NETDIRS and SDSYS; the verb does not display APILOCAL either, and
config() reads it. The verb displays DEBUG, FDS and PHANTOMS only when they are
set, and TIMEZONE, which is not a file parameter; config() reads it and a session
can set it, and it is counted among the 29. No parameter is accepted and ignored: a line
naming a name SD does not have (such as APILOGIN, CODEPAGE, CREATUSR,
EXCLREM, FILERULE, FIXUSERS, GDI, INVCASE, JNLDIR, JNLMODE, PORTMAP,
RINGWAIT or TXCHAR) stops SD from starting;
Configuration in this set says how the installer takes them out of a kept
sd.conf. NETFILES is not inert, because bit 2 gates API request 29, and
Configuration says so.