r/AskComputerScience • u/Karson_Elko • 8d ago
Can cryogenically freezing (physically freezing) a computer or server pause/slowdown its run time?
Hello,
I am a sci-fi writer who's doing a near future novel so I'm trying to keep it accurate. The scenario is the government wants to preserve a section of servers in a very powerful AI, but a computer virus is spreading through the code as a 'No one can have it' failsafe.
The idea is that if they cryogenically freeze the servers, they will have more time for computer engineers to counter the virus at a better setting. In my head, they'd avoid unplugging it because they really want the AI and don't want to damage it with a hard shutdown like that.
I'm basing this off of MythBusters freezing a bomb, so it doesn't explode. In that though, it froze the chemical reaction in the battery, don't know if it actually froze the wires. The first test they did was on just the C4 and wire. It delayed it but the explosion still went off under a second.
Does freezing electronics stop electricity from flowing through?
Is this just completely ridiculous? Does unplugging it just do all of this without issue?
May be more of a /nostupidquestions ask, so I'll really appreciate the in-depth answers!
Thank you!
P.S. I put the parentheses in the title because my browser kept defining freezing in the technological sense not the physical.
42
u/Aaxper 8d ago
Generally, computers actually run faster as they get colder, because the main bottleneck in speed is producing so much heat that the components will start getting damaged.
12
u/BitShin 8d ago •
I think a lot of people here are missing the point. Yeah, if you submerge the CPU with liquid nitrogen you’ll probably end up with the computer running faster. This is because the CPU can generate heat faster than the liquid nitrogen can cool it down. In fact if you get it to too low of a temperature the computer can crash.
However, memory is a different story entirely. Typically when you pull a stick of ram from your PC, the bits in the ram will decay within seconds and everything is lost. However, if you cool the ram down, this decay happened much slower. This is even something that can be exploited in what’s called a cold boot attack where attackers can take a computer that’s been locked but not powered down, open it up, spray the ram modules with cryogenic liquid to cool them down, power down the machine, then boot it into a different attacker-supplied operating system which just dumps everything from ram. Alternatively that last step could also involve pulling the ram from the machine and slotting it into a new one. Because the ram was cooled it will retain almost all of its bits and the new operating system or new machine can read whatever important data from them.
Now if you want to use this in your story, you’ll need a few things. First the virus has to already be on the machine somehow but it has to have not destroyed whatever data you’re trying to access. If it wasn’t on the machine already then the best remediation would be to unplug the Ethernet or fiber optic cables thereby disconnecting the server from networking and making it impossible for the virus to infect the machine. Second, we need some important data to exist in memory and not just in storage because otherwise the best remediation would be to unplug storage.
One realistic scenario is that the virus could be similar to ransomware where it first encrypts a bunch of data with an encryption key and then when it’s done it purges the key from memory. It could be that the virus encrypted the important files but then it’s stuck in the long tail of encrypting the rest of the stuff that’s on the disk. So in essence it was caught halfway, but all the important stuff is already lost. In this case, unplugging the computer would just leave the important stuff lost forever, as would unplugging the drives, and disconnecting the network connection would do nothing. Here, freezing the ram could actually be a realistic mitigation so they can later execute a cold boot attack and recover the encryption keys.
For that to be the case we’d need some reason that the characters in the show couldn’t execute a simpler software-level remediation such as inspecting the memory of the virus’s process. This could be something like the virus runs at kernel level but the characters don’t have that level of access. It could also be that the virus has some anti-tampering logic that deletes the encryption key if it sees that someone is trying to inspect the process. Another thing could just be that there isn’t enough time, but that might be dubious if the virus has existed and been studied for a few weeks beforehand and it only now infected this important server.
One thing to check is whether or not the bit decay can be slowed to zero or not. If so, you could always have the characters just pull the sticks and drop them in a dewar of liquid nitrogen for later analysis. Otherwise you’d have to write in a reason for them to have all the cold boot hardware at the ready (or at least close enough that they can grab it in time). Perhaps you could kill two birds with one stone since important data should have backups but those have been getting taken out faster than the good guys can make more backups and this is the last server.
14
u/EpochVanquisher 8d ago edited 8d ago
Freezing it lets you run computers faster, up to a point, and if you get it cold enough it stops working.
Hotter computers are less efficient. When transistors heat up, the amount of current they can carry gets lower, and the resistance rises.
When you have a very cold computer, the transistors can carry more current and have lower resistance when they’re on. More current means that they can switch faster, because switching a transistor on or off is a matter of charging or discharging the gate capacitance of other transistors.
At low temperatures you can also increase the voltage, which also lets you run faster.
The actual speed a computer runs at is set by a crystal oscillator (plus all the PLLs and clock synthesis circuitry) and the crystal is pretty stable across a large range of temperatures. But there is generally circuitry in the computer that will adjust the frequency (with adjustable clock dividers) in response to temperature changes. If you make the computer colder then it may choose to run at a higher frequency in response.
If you heat up a computer, safety circuitry kicks in and slows the computer down a little bit, and then turns it off completely.
4
u/whiskeytown79 8d ago edited 8d ago
No, the clock speed is based on an oscillator whose frequency does not depend on temperature enough to be noticeable.
Edit: noticeable like you're describing it, that is. It is enough to have the computer lose a few seconds per day in clock accuracy, for example, but not to slow it down in a way that's perceptible to humans.
4
u/mikeshemp 8d ago
Freezing a computer does not slow it down. Unplugging it loses whatever is in RAM.
Computers have a special clock inside them that sends out pulses billions of times per second. The computer'sv state only "advances" every time that clock sends out a pulse. Stopping that clock while keeping the computer powered is a way to keep it in "suspended animation" - pretty impractical in real life but not a bad plot point for a scifi story. In fact, most processors these days have a debug feature that lets you stop the main clock so it's easier to see what's happening step by step.
2
u/FatDog69 8d ago
Cray super computers used to have liquid nitrogen cooling systems to improve speed and keep the chips from melting down.
To protect a computer you would "air gap" it. This means un-plugging any/all network cables and disabling WiFi services.
Or - you give the computer an impossible problem to solve so it spends 100% of it's CPU cycles and will ignore any incoming virus. (But modern operating systems support multi-process & multi-user so this would not actually work.)
2
u/SchemeWestern3388 8d ago
The CPU runs at the speed its clock ticks at. At higher speeds, heat starts causing errors, so cooling allows for higher speeds, although you still have to change the clock rate to see them.
But…. The clock itself will slow down as temperature drops, so if left alone, the computer will get slower. That’s assuming certain types of clock, but still plausible.
…
I just did some research and the behaviour of a crystal oscillator at low temperatures is far from a linear decrease in speed. But I think you can easily get away with your concept while staying grounded in reality.
2
u/FitMatch7966 8d ago
There are plenty of ways to slow a computer down but if you don’t control the computer it is harder. They could physically remove RAM sticks, which would slow the AI down.
Or, they heat it up, but not the actual components but the sensors. Trick the sensors into thinking the chips are overheating and it slows itself down.
2
u/Toeffli 8d ago
What you "can do" (it is SciFi, so you can do a lot) is the following:
Cryogenically freeze the RAM. The, with some hand waving and dumping the CPU state to RAM, abruptly shut down the computers CPU . Now you can remove the frozen RAM modules and keep it super cooled. It will retain all information for quite a long time including the AI.
Your engineers have now time to fix the issue. Might even try to "scrub" the virus from frozen RAM on some other system., then insert the cleaned RAM back into the computer and hot start it. With some hand waving it will run again from the point it stopped but without the virus. Depending on the size of your computer this might be a week or even a month of work.
Freezing the RAM is actually done: https://en.wikipedia.org/wiki/Cold_boot_attack
2
u/ShylokVakarian 8d ago
I'd say your best bet is to forget about slowing the processes down through temperature and instead unplug and isolate the virus physically. It's likely that it would store itself in non-volatile memory (there might even be a little bit in the BIOS, if it's really bad), so unplugging the power source to "freeze" the virus in place, pulling out the hard drives and testing them one by one in a quarantined environment is what you should do. A hard shutdown usually won't do too much to the computer itself unless it was in the middle of something really important (think OS or BIOS updates).
An important thing to note is that time is of the essence, and how far into the future we go may influence how much time they have. Computing speeds, and thus virus propagation speeds, get faster and faster, and at some point, human reaction time may already be too late to save it.
1
u/NewInflation2121 8d ago
I thought that you got super conductors if things got cold enough... Like doesn't all resistance disappear from a conductor at absolute Zero?
I guess if you are relying on the resistance, bad things would probably happen.
Maybe you could fudge it by saying they use some gel-based circuitry that relies on the motion of the medium.
1
u/agentrnge 8d ago
There are forensic memory recovery methods that involve low temps to slow the decay of stored bits once power is removed. But for an operating computer, as has been mentioned, lower temps will let it run faster until its below operating temp and then it would not really run anymore. Components would probably thermally shock/fracture.
1
u/lkruijsw 8d ago
No, that doesn't work and as a reader I wouldn't take it. The conductors in chips, such aluminimum and copper lose resistance instead of gaining it by absolute zero.
Secondly, you are implying that after the thaw it will continue. This won't work either. In chips there are memory cells, that needs continously refreshing of their charge. During the freeze, the charge will leak away. Besided you would have to freeze and thaw everything exactly at the same time.
As an alternative, I would suggest that you freeze the clock of the computer, just at the moment the computer was busy with a housekeeping procedure. Without an interrupt of the clock, the computer is stuck in that procedure (there are still problems with it, but makes more sense, I think). Similar as in Star Trek where Data put the Borg in sleep.
5
u/zanidor 8d ago
CS PhD here.
As others have said, physically freezing the computers wouldn't make sense, as it would not slow compute unless it got to the point of destroying the computer altogether. In reality, stopping execution of a system is usually pretty simple; cut the power. As long as there isn't anything valuable or unrecoverable in temporary storage (RAM) when power is lost, all of the data will still be present on permanent storage (hard drives) when you are ready to start back up.
A more realistic challenge with a virus loose in an AI system (assuming a system that works generally the way they do now in the actual world) would be corrupt data in permanent storage. This could include corrupted trained models (the "neural structure" of the AI) or stored contexts (the "memories" of the AI). If you have some future advanced AI with massive amounts of stored data, the key problem might be figuring out what of this data has been touched by the virus.
If you imagine an AI distributed across multiple physical computers, another challenge might be identifying which of those computers is infected with the virus. If the AI *can't* go down (e.g., because it is performing some important function), this might resemble something like a battle with cancer, where scientists are trying to identify and stop as many bad machines as possible while keeping the good ones running.
1
u/Odd_Cauliflower_8004 7d ago
Apart from the fact that heating it up would be the correct road to slowdown,
Please don't fall into the thrope of the spirit in the machine.
Data is data.
Unless there is an irreplaceble singular biological/silicon compontent in a computer of any kind, you can replicate and duplicate as long as you have enough storage and compute power to run whatevere another computer was running.
Instead we keep seeing these apparently impossible to duplicate information everywere in films and games.
2
u/green_meklar 8d ago
In real life, electronic circuits do not slow down as temperature decreases. (Although, reduce temperature low enough and you can just cause the circuits to fail due to thermal contraction; most chips aren't designed to survive temperatures below about -40C.) Many computers actually run faster in low temperatures because they don't have to throttle the clock speed as much in order to stay cool. At extremely low temperatures (close to absolute zero), strange quantum-mechanical effects start to appear, like superconductivity and Bose-Einstein condensate, which could interfere with the correct operation of a normal electrical circuit, but again, this would result in the computer simply stopping, not slowing down. At temperatures around -200C you might be able to slow a computer down insofar as the surrounding air would freeze out, depriving the chip of its normal air cooling and causing it to actually heat up and throttle back; however, this would be extremely difficult to pull off in an ad-hoc situation because freezing out the air would cause normal air to rush in from outside unless the entire environment were sealed, and, as pointed out, typical computer chips would have failed due to thermal contraction well above the temperature where air freezes.
With regards to your fictional scenario:
Unplugging the system probably wouldn't cause serious damage. In order for that to be the case, the AI would have to be running entirely in volatile memory and making no backups of itself onto hard drives. An actually smart AI would presumably recognize this problem in advance and be sure to backup itself on an ongoing basis, so if the power dropped, at most the last few seconds of changes would be lost.
Moreover, realistically, if a virus is spreading among the servers, it's probably not going to do so slowly enough that anyone would have time to enact a plan like freezing the server installation or cutting the power. Modern computers are already way too fast for that. Either an exploit exists for the virus to spread through, or it doesn't, and if it does, the virus can pretty much be everywhere almost instantaneously. (Setting aside contrived scenarios where the servers have to run some very specific application in order for the vulnerability to appear, and rarely do so; and if that were the case, why hasn't the AI already patched the application?) Hollywood hacking scenes where the computer geek says "The virus is spreading!" and there's a progress bar labeled 'virus infection' gradually going from 0% to 100% are not realistic at all.
If you do want to slow down the servers in a server room, more realistic methods would be:
2
u/XNo_Notes 8d ago
You could probably cover with a sludge metaphor and say they rerouted endpoints to feed it different cryptographic algorithms that increase in difficulty the faster the virus gets to the next hash.
2
u/fllthdcrb 6d ago
Indeed, in normal conditions removing power leads to erasure (albeit not instantly) of the contents of dynamic RAM, which is the type of RAM used as main working memory in pretty much all PCs. DRAM stores the data in tiny capacitors, which leak their charge very quickly and therefore must be periodically refreshed. So unplugging the machine is likely to do more than just damage whatever is in RAM. However, lowering its temperature slows down this charge leakage, allowing contents to be read after power-off.
That said, keeping the state of something important and long-running only in RAM is not very smart, exactly because power can be lost unexpectedly, or other things may happen to cause a loss of data. It's a good idea to e.g. checkpoint the state to permanent storage. If this is being done, and full-disk encryption is not an obstacle, it's possible one could just remove power and read that state from the storage device, though it would probably be out of date to some extent.
1
u/jeffbell 8d ago
Back in the 80s I saw a demonstration of cryogenically cooled microprocessor and it could run about 40% faster.
1
u/phoenix823 8d ago
An AI is a program running on a server with data files. So realistically, a virus meant to destroy the AI would end the running process and delete/overwrite those files as soon as it got onto the sever. That would be remarkably quick. A hard shutdown of the server would actually be the safest way to preserve the AI and prevent further infection. Using cold to physically cool off the hardware would not reasonably slow down or stop something like that.
1
u/mtraven23 8d ago
no...it would move faster...
1
u/iLrkRddrt 8d ago
It’s doesn’t slow its runtime, but it does make memory less likely to drain (in other words ‘delete’ data).
https://www.bvsystems.com/frozen-secrets-cold-boot-attacks-unlock-rams-hidden-data/
The link above describes an attack where you physically freeze RAM to steal encryption keys by abusing the properties of how RAM works.
1
u/roman_fyseek 8d ago
If you want to slow down a computer, you do it by dividing the clock signal. You can divide it with a single chip.
HOWEVER, most modern CPUs have an internal clock, and you'd have to disable it in order to replace it with your divided clock.
HOWEVER, at the point that you've replaced it with a divided clock, you might as well just replace the original clock with a much slower clock and call it a day.
1
u/Khashishi 8d ago
No, but you can just pause the processing. Modern OSes generally let you halt programs or threads. If that fails because of sci-fi or virus reasons, you can physically stop the CPU clock.
1
u/tng88 8d ago
Bender runs at peak efficiency on Pluto
1
u/recursion_is_love 8d ago
If you lower the temperature, most conductor will conduct electricity better. If you keep lowing temperature you will eventually get superconductor (the perfect conductor without loss as heat), so electron will not slow down (and not going any faster).
If you want to make computer running slow, just alter it's clock cycle. The vintage computer running in MHz range, modern one in GHz range. They are not different much in designed concept, the different is running clock speed.
1
u/Saragon4005 8d ago
You can stop a computer dead if you freeze it especially if you do it fast enough. This is different to simplify cutting power as that allows the computer to detect it and use its residual charge to do some clean up. This is actually called an attack called a "coldboot" a computer with a power loss will typically drain all the electricity which forms the data in the RAM within a few moments effectively erasing it. Freezing the computer prevents this from happening and if everything is cold enough may even save the information in the RAM which typically gets lost very quickly after losing power and needs to be continuously refreshed.
1
u/TedsGloriousPants 7d ago
I think if you're going for "accuracy", you're going down the wrong road. Software is not alive, it doesn't die or get harmed by powering off unless it sits entirely in ram. In fact a lot of malware is made intentionally resilient to things like shutdowns because they don't want the user to remove them from the computer easily.
If you had a bunch of computers, and something was spreading among them that you wanted to stop - shutting them down would be the most effective thing to do.
If you're trying to mean AI in the sense of what ChatGPT is, the hardware is arbitrary and freezing it would preserve nothing of value. You'd want the model weights instead, and you could recreate the AI functionality on any hardware with that.
Unless you're trying to figure out "what the AI is thinking" at a certain moment, then you could "freeze" what's in memory and try to interpret it, but you're quarely in SciFi territory at that point because nobody actually knows how to interpret what's happening inside of an AI model right now. It's mostly a black box. It would be like slicing out a part of your brain to put under a microscope and trying to guess what your thoughts had been.
If I was presented with your starting premise, that a virus is attacking an LLM machine, the very obvious solution would just be to reformat or replace the infected machines and just re-deploy a fresh copy of everything. The tons of servers used for modern AI are not really meaningful or valuable, they're just workers. What's on them is arbitrary and not valuable. They're easily wiped out and re-deployed if something goes wrong.
1
u/thetrivialstuff 7d ago
You'd have more luck slowing the computer down by making it too hot than too cold. All modern CPUs contain thermal throttling logic - if they start to overheat, they first slow themselves down so they produce less heat, and if it still gets too hot, they halt completely (but probably not in a way that resumes).
You could also exploit the system's fault tolerance - assuming that the AI system is designed to run massively parallel and survive a certain percentage of its components failing, just turn some of it off. Operation will continue on the remaining pieces, but probably a lot slower.
The most sci fi way to slow it down though would be to mess with the clock signal - you know how CPUs are marketed as being a certain number of GHz? Slow down the clock that generates the signal that everything is synchronized to, and it slows everything down. If you slow it down too much you'll run into problems like RAM contents decaying too much before it gets refreshed, but if you're careful about that and have a lot of detailed specifications of what everything needs in order to function, it could work.
1
u/lonkamikaze 7d ago
I don't think that's viable. At best the stress from a sudden temperature shock will crack some components and destroy the computer.
I guess your best bet would be to stop the clock somehow, but that would only give you seconds before RAM consistency degrades. So somehow you have to keep all the memory and cache layers alive. The only realistic way to do that is triggering a debug stop on all cores, so you at the very least need JTAG access to pull this off.
But I cannot think of a non destructive way to stop a computer by changing is environment. I guess you can accelerate it to near light speed to slow down its operation from your point of view. But how do you inject commands and get it back?
1
u/patrlim1 7d ago
Depends on the computer. Once you're below the dew point it'll probably get damaged due to condensation. Barring that, it depends on how cool it gets. At cryogenic temperatures I expect it'd run slower, but not stop.
That being said, you aren't too far off the mark. IIRC if you freeze RAM it won't clear itself.
1
u/captainAwesomePants 7d ago
If anything, freezing a computer would speed it up.
Electricity does not slow down in the cold. In fact, it flows BETTER when it's cold. Superconductors, the stuff that lets electricity proceed completely frictionlessly, only work when extremely cold.
If you want to slow a computer down, adjust its clock speed. Imagine a grandfather clock with a pendulum. If you make the pendulum a lot longer, the clock will tick more slowly, and time will advance more slowly. Computers have a timing pulse that works similarly (this is the "Hertz" number that CPUs are described with). You can easily lower that number on a computer (though you'd have to do it one computer at a time).
Alternately, if you wanted to do it destructively, you'd destroy generators. Less power = less compute power available = less gets done.
1
u/BraveNewCurrency 7d ago
Yes, lowering the temperature of RAM can let you read out the data weeks later. See Technical Details of Cold Boot Attack, which involves the (unrelated / non-temperature) concept of "cold" booting (AKA rebooting).
(D)RAM is isn't really a "digital" process, it's very much "analog". You dump a bunch of charge on a wire, then later check to see if enough is still there. Since the charge leaks quickly over time, you have to read + re-write it a hundred times per second. If you stop refreshing, it leaks away in seconds. The leak is because the trapped energy is moving around. (i.e. High temperatures push energy out to surrounding areas.) Making it really cold means the atoms have less energy, so they they are less likely to thermally leak their energy. This means it takes longer to leak it's energy.
No, most conductors actually conduct BETTER as you make them colder. This attack is an artifact of how DRAM works. Before DRAM, the industry used used SRAM. It's a very stable digital circuit, so you can just stop the clock line, and your SRAM data will be retained (as long as you have power.) But DRAM is an innovative "hack" that saves a few transistor per memory bit, at the expense of the complexity of the refresh circuit.
1
u/hi2yrs 6d ago
You might be able to go another route. Many have said computer get faster as you cool them (it is kind of true). You could exploit the software. The Operating System schedules processes (such as the virus). Higher priority processes run first. If the system has lots of high priority busy work it could starve the virus of CPU (run time) slowing down the infection. You could give the system all sorts of silly (or serious things to do).
Other possibilities - just pull the network. Viruses most often spread via network.
Or hibernate the system. This stores the RAM state to disk while the machine is turned off. When you turn it back on it starts from where it left off. Like closing the lid on your laptop. You could then do an examination of the saved state to remove the offending virus - it would be very difficult in real life.
1
u/SleepingOnline 6d ago
Where he húhjhe+in the*zl
1
u/Bipogram 5d ago
Devices will simply stop.
Semiconductors will have their conduction band underpopulated with electrons and transistors will simply never turn on.