1. A device, comprising: a memory including ways; a processor in communication with the memory, the processor configured to execute logic operable to: monitor a parameter of the processor or a device connected with the processor; allocate, based on the parameter, a number of ways and a size of ways of the memory for use by the processor; and power down an unallocated number of ways and unused portions of the ways of the memory.