Add four new RCTL resources - readbps, readiops, writebps and writeiops,
for limiting disk (actually filesystem) IO.
Note that in some cases these limits are not quite precise. It's ok,
as long as it's within some reasonable bounds.
Differential D5080
RCTL disk io limits. trasz on Jan 26 2016, 11:34 AM. Authored by Tags None Referenced Files
Details
Add four new RCTL resources - readbps, readiops, writebps and writeiops, Note that in some cases these limits are not quite precise. It's ok,
Diff Detail
Event Timeline
Comment Actions Nice, does this allow effectively limiting upload speed since the io can be limited? What about mmap? Comment Actions Yes, it allows for limiting upload/download speed, asssuming it fits the RCTL subject:subject-id: model. Yes, it handles reads and writes from/to mmapped regions as well. Comment Actions Man page looks good. Please remember to check with igor -R and mandoc -Tlint. Thanks! Comment Actions Major cleanup - some things were fixed, some committed to HEAD and looped Comment Actions
This comment could use clarification -- what's the it's in "it's within some reasonable bounds"? E.g., the limits are applied on a "best effort" basis and achieved disk I/O numbers may actually be (much?) higher (or lower?) -- under what conditions? etc. Comment Actions Well, it's explained somewhat better in the manual page, but there are several aspects here. First, at the filesystem layer we don't really have a way to count IOPS, as they happen at the device layer, ie below. We kind of estimate them. Second, for writes we actually do the accounting for writes to the filesystem cache. (Mostly.) Third, there are problem like whether to take readahead into account or not (my current stance is yeah, account it as reads). Generally speaking, the meaning of this comment is that "reasonable bounds" are just what one might expect: the statistics might be, say, 10% off, but in a predictable and consistent way. Comment Actions
Well, that's what I meant with the question -- what are reasonable bounds? 10%? 100%? I think everyone understands that it's an approximation, but there's no guidance on what the actual bounds look like. |