Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Hot swapping
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Concept in computing}} {{Redirect|Hot swap|battery hot swapping|Battery swapping}} {{refimprove|date=December 2008}} [[Image:IBM TotalStorage Exp400.jpg|thumb|right|250px|Hot-swapping a [[hard drive]] in a storage server]] '''Hot swapping''' is the replacement or addition of components to a [[Computer|computer system]] without stopping, [[shutdown (computing)|shutting down]], or [[Reboot|rebooting]] the system.<ref>{{cite book|last1=Hennessy|first1=John L.|last2=Patterson|first2=David A.|title=Computer Architecture: A Quantitative Approach|series=The Morgan Kaufmann Series in Computer Architecture and Design|year=2002|publisher=Morgan Kaufmann|isbn=9780080502526|page=707}}</ref> '''Hot plugging''' describes only the addition of components to a running computer system.<ref name="Hot swap vs. Hot plug">{{cite web|url=http://searchstorage.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid5_cid403082,00.html|publisher=[[TechTarget]]|title=Hot Swap and Hot Plug|website=Searchstorage.techtarget.com|access-date=2013-08-18}}</ref> Components which have such functionality are said to be ''hot-swappable'' or ''hot-pluggable''; likewise, components which do not are ''cold-swappable'' or ''cold-pluggable''. Although the broader concept of hot swapping can apply to [[Electrical network|electrical]] or [[Machine|mechanical]] systems, it is usually mentioned in the context of computer systems. An example of hot swapping is the express ability to pull a [[Universal Serial Bus]] (USB) [[peripheral]] device, such as a [[USB flash drive|thumb drive]], [[computer mouse|mouse]], [[computer keyboard|keyboard]], or [[printer (computing)|printer]] out of a computer's USB slot without powering down the computer first. Most desktop [[computer hardware]], such as CPUs and memory, are only cold-pluggable. However, it is common for mid to high-end [[Server (computing)|servers]] and [[Mainframe computer|mainframes]] to feature hot-swappable capability for hardware components, such as [[CPU]], [[Random-access memory|memory]], [[PCI Express|PCIe]], [[Serial ATA|SATA]] and [[Serial Attached SCSI|SAS]] drives. Most smartphones and tablets with tray-loading holders can interchange SIM cards without powering down the system. Dedicated [[digital camera]]s and [[camcorder]]s usually have readily accessible [[memory card]] and [[Electric battery|battery]] compartments for quick changing with only minimal interruption of operation. Batteries can be cycled through by recharging reserve batteries externally while unused. Many cameras and camcorders feature an internal memory to allow capturing when no memory card is inserted. ==Rationale== Hot swapping is primarily used whenever it is desirable to change the configuration or repair a working system without interrupting its operation.<ref>{{cite conference |title=Present and future of distributed power systems |first1=W.A. |last1=Tabisz |first2=M.M. |last2=Jovanovic |first3=F.C. |last3=Lee |date= 23โ27 February 1992 |conference=Seventh Annual Applied Power Electronics Conference and Exposition, 1992. APEC '92. Conference Proceedings 1992. |publisher=IEEE |pages=11โ12 |isbn=0-7803-0485-3 |doi=10.1109/APEC.1992.228437 |quote=A properly designed parallel configuration allows the on-line replacement (hot-swapping) of defective modules. This provides means for non-interrupting maintenance and repair, a very desirable feature in high-reliability systems operating in a continuous fashion.}}</ref> A typical example of needing to keep a system running at all times is in the case of a [[Server (computer)|server]], a computer that provides access to essential data and applications needed by other computers called [[Client (computing)|clients]]. At other times, hot swapping is implemented simply to avoid the delay and nuisance of shutting down and then restarting a device, such as in the case of charging a smartphone. Hot swapping is used to add or remove [[computer peripheral|peripheral]]s or components and to replace faulty modules without interrupting equipment operation. For example, a machine may have dual hot-swappable [[power supply|power supplies]], each adequate enough to power the machine on its own. If one of those power supplies breaks and shuts down, the machine will not shut down, as it will draw power from the other, functional power supply. The faulty power supply can be replaced during operation of the machine, eventually bringing the machine back to a state of [[Redundancy (engineering)|redundancy]]. In the context of servers, important [[expansion card|expansion cards]], such as [[disk controller|disk controllers]] or [[host adapter|host adapters]], may be designed with specialized redundancy features in order for these to be replaceable without necessitating interruption of server operation. Another use case of hot swapping is to enable faster data synchronization between two devices by not having to power down either device before connecting them together. For example, plugging an [[iPhone]] to a [[Mac (computer)|Mac computer]] via a USB cable to synchronize data between them does not require powering down either the iPhone or the Mac and waiting for them to restart.<ref name="Use the Finder to sync your iPhone, iPad, or iPod touch with your Mac">{{cite web |title=Use the Finder to sync your iPhone, iPad, or iPod touch with your Mac |url=https://support.apple.com/en-us/102471 |website=Apple Support |access-date=7 April 2025}}</ref> For even more convenience, data synchronization can be configured to start automatically without user input. It is also possible to interrupt the data synchronization at any time simply through unplugging the devices, although it's not recommended to do so until instructed to avoid [[data corruption]]. ==Mechanical and electrical design considerations== Machines that support hot swapping need to be able to modify their operation for the changed [[computer configuration|configuration]], either automatically on detecting the change, or by user intervention. All electrical and mechanical connections associated with hot-swapping must be designed so that neither the equipment nor the user can be harmed while hot-swapping. Other components in the system must be designed so that the removal of a hot-swappable component does not interrupt operation. === Protection against electrostatic damage === Protective covering plates, shields, or bezels may be used on either the removable components or the main device itself to prevent operator contact with live powered circuitry, to provide antistatic protection for components being added or removed, or to prevent the removable components from accidentally touching and shorting out the powered components in the operating device. Additional guide slots, pins, notches, or holes may be used to aid in proper insertion of a component between other live components, while mechanical engagement latches, handles, or levers may be used to assist in proper insertion and removal of devices that either require large amounts of force to connect or disconnect, or to assist in the proper mating and holding together of power and communications connectors. === Component shutdown procedure before unplugging === Some implementations require a component shutdown procedure prior to removal. This usually results in a simpler design, but such devices are not robust in the case of component failure. In such cases, if a component is removed while it is being used, the operations to that device fail and the user is responsible for retrying if necessary. In practice, this can be an advantageous trade-off for certain designs where cost matters more than reliability. More complex implementations may recommend but do not require that the component be shut down. In the suboptimal case a component is removed without being shut down, these implementations usually have sufficient [[redundancy (engineering)|redundancy]] to allow essential operation to continue. In these systems hot swap is normally used for regular maintenance to the computer, or to replace a broken component. === Connectors === [[Image:SPARCstation20 scsi cradle with drive.jpg|thumb|Sun SPARCstation hot swappable [[Single Connector Attachment]] (SCA) drive cradle{{cn|date=February 2017}}<!--See talk page: https://en.wikipedia.org/w/index.php?title=Talk%3AHot_swapping&type=revision&diff=763222423&oldid=760279983 -->]] Most modern hot-swap methods use a specialized connector with staggered pins, so that certain pins are certain to be connected before others. Most staggered-pin designs have ground pins longer than the others, ensuring that no sensitive circuitry is connected before there is a reliable system ground. The other pins may all be the same length, but in some cases three pin lengths are used so that the incoming device is grounded first, data lines connected second, and power applied third, in rapid succession as the device is inserted. Pins of the same nominal length do not necessarily make contact at exactly the same time due to mechanical tolerances, and angling of the connector when inserted. At one time staggered pins were thought to be an expensive solution,{{Citation needed|date=January 2013}} but many contemporary connector families now come with staggered pins as standard; for example, they are used on all modern serial SCSI disk-drives. Specialized hot-plug power connector pins are now commercially available with repeatable DC current interruption ratings of up to 16 A. [[Printed circuit board]]s are made with staggered edge-fingers for direct hot-plugging into a backplane connector. Although the speed of plugging cannot be controlled precisely, practical considerations will provide limits that can be used to determine worst-case conditions. For a typical staggered pin design where the length difference is 0.5 mm, the elapsed time between long and short pin contact is between 25 ms and 250 ms. It is quite practical to design hot-swap circuits that can operate at that speed. [[Image:Connector corners.svg|thumb|right|350px|Hot-swap connector corner pins]] As long as the hot-swap connector is sufficiently rigid, one of the four corner pins will always be the first to engage. For a typical two-row connector arrangement this provides four first-to-make corner pins that are usually used for grounds. Other pins near the corners can be used for functions that would also benefit from this effect, for example sensing when the connector is fully seated. This diagram illustrates good practice where the grounds are in the corners and the power pins are near the center. Two sense pins are located in opposite corners so that fully seated detection is confirmed only when both of them are in contact with the slot. The remaining pins are used for all the other data signals. === Power electronics === The DC power supplies to a hot-swap component are usually [[pre-charge]]d by dedicated long pins that make contact before the main power pins. These pre-charge pins are protected by a circuit that limits the inrush current to an acceptable value that cannot damage the pins nor disturb the supply voltage to adjacent slots. The pre-charge circuit might be a simple series [[resistor]], a [[negative temperature coefficient]] (NTC) resistor, or a [[current-limiter]] circuit. Further protection can be provided by a "soft-start" circuit that provides a managed ramp-up of the internal DC supply voltages within the component. A typical sequence for a hot-swap component being plugged into a slot could be as follows: #Long ground pins make contact; basic electrical safety and ESD protection becomes available. #Long (or medium) pre-charge pins make contact; decoupling capacitors start to charge up. #Real time delay of tens of milliseconds. #Short power/signal pins make contact. #Connector becomes fully seated; power-on reset signal asserted within component #Soft-start circuit starts to apply power to the component. #Real time delay of tens of milliseconds. #Soft-start circuit completes sequence; power-on reset circuit deasserted #Component begins normal operation. Hot-swap power circuits can now be purchased commercially in specially designed [[Application-specific integrated circuit|ASICs]] called hot-swap power managers (HSPMs). === Signal electronics === Circuitry attached to signal pins in a hot-swap component should include some protection against [[electrostatic discharge]] (ESD). This usually takes the form of clamp diodes to ground and to the DC power supply voltage. ESD effects can be reduced by careful design of the mechanical package around the hot-swap component, perhaps by coating it with a thin film of conductive material. Particular care must be taken when designing systems with bussed signals which are wired to more than one hot-swap component. When a hot-swap component is inserted its input and output signal pins will represent a temporary short-circuit to ground. This can cause unwanted ground-level pulses on the signals which can disturb the operation of other hot-swap components in the system. This was a problem for early [[parallel SCSI]] disk-drives. One common design solution is to protect bussed signal pins with series diodes or resistors. CMOS buffer devices are now available with specialized inputs and outputs that minimize disturbance of bussed signals during the hot-swap operation. If all else fails, another solution is to [[quiesce]] the operation of all components during the hot-swap operation. ==Applications== {{Expand section|date=April 2022|small=no|with=Major uses including server components and USB peripherals (currently mentioned in lead but not discussed in body). Other uses (not currently mentioned but shouldn't be hard to find reliable sources) include [[uninterruptible power supply]] batteries, electric car batteries.}} === Radio transmitters === Modern day [[radio transmitter]]s (and some [[TV transmitter]]s as well) use high power RF transistor power modules instead of [[vacuum tube]]s. Hot swapping power modules is not a new technology, as many of the radio transmitters manufactured in the 1930s were capable of having power tubes swapped out while the transmitter was runningโbut this feature was not universally adopted due to the introduction of more reliable high power tubes. In the mid-1990s, several radio transmitter manufactures in the US started offering swappable high power RF transistor modules. * There was no industry standard for the design of the swappable power modules at the time. * Early module designs had only limited patent restrictions. * By the early 2000s, many transmitter models were available that used many different kinds of power modules. The reintroduction of power modules has been good for the radio transmitter industry, as it has fostered innovation. Modular transmitters have proven to be more reliable than tube transmitters, when the transmitter is properly chosen for the conditions at the transmitting site. Power limitations: * Lowest power modular transmitter: generally 1.0 kW, using 600 W modules. * Highest power modular transmitter: 1.0 MW (for [[Longwave|LW]], [[Mediumwave|MW]]). * Highest power modular transmitter: 45 kW (FM, TV). ===Gaming=== Although most contemporary [[video game]] systems can interchange games and multimedia (e.g. [[Blu-ray]]s) without powering down the system, older generations of systems varied in their support of hot-swapping capabilities. For example, whereas the Sony PlayStation and PlayStation 2 could eject a game disc with the system powered on, the Nintendo Game Boy Advance and the Nintendo 64 would freeze up and could potentially become corrupt if the game cartridge was removed with the power on. Manufacturers specifically warned against such practices in the owner's manual or on the game cartridge.<ref name="Health & Safety Precautions for Cartridge-Based Consoles">{{cite web|url=https://www.nintendo.com/consumer/manuals/precautions_console_pak_english.jsp|publisher=[[Nintendo]]|title=Health & Safety Precautions for Cartridge-Based Consoles|website=nintendo.com|access-date=2014-04-22}}</ref> It was supposedly for this reason that [[Stop 'N' Swop]] was taken out of the [[Banjo-Kazooie|Banjo-Kazooie series]] and ''[[Donkey Kong 64]]''. With the [[Sega Genesis|Sega Genesis/Mega Drive]] system, it was sometimes possible to apply [[Cheating in video games|cheats]] (such as a player having infinite lives) and other temporary software alterations to games by hot swapping cartridges, even though the cartridges were not designed to be hot swappable.<ref>{{cite book |title=Sega Genesis Games Secrets Greatest Tips |edition=2nd |publisher=[[Prima Publishing]] |year=1994 |page=217 |url=https://books.google.com/books?id=jjmZAmgTRWIC |author=The editors of [[GamePro|GamePro magazine]] |access-date=2014-05-12|isbn=9781559584012 }}</ref> === Keyboards === {{See also|Keyboard technology}}Hot-swappable keyboards enable changing the [[List of keyboard switches|switches]] without having to disassemble the keyboard.<ref name=":02">{{Cite web |date=2022-09-15 |title=What are hot-swappable keyboard switches? |url=https://www.digitaltrends.com/computing/what-are-hot-swappable-switches/ |access-date=2022-12-02 |website=Digital Trends |language=en}}</ref> On standard mechanical-switch keyboards, the switch is directly [[Solder|soldered]] to the [[Printed circuit board|PCB]]. Hot-swappable keyboards instead have a socket in its place that allows the switch to be freely replaced without re-soldering.<ref>{{Cite web |title=The 8 Best Hot Swappable Mechanical Keyboards โ Review Geek |url=https://www.reviewgeek.com/34512/the-4-best-hot-swappable-mechanical-keyboards/ |access-date=2022-12-02 |website=www.reviewgeek.com |date=9 February 2020 |language=en-US}}</ref> Due to hot-swappable keyboards being less common, they often require being custom built or bought from custom keyboard manufacturers.<ref name=":02" /> They can be found in a variety of sizes and [[Keyboard layout|layouts]], including more specialized [[Ergonomic keyboard|ergonomic]] layouts. === Software development === {{Further information|Dynamic software updating|Interactive programming}} Hot swapping can also refer to the ability to alter the running code of a program without needing to interrupt its execution. [[Interactive programming]] is a [[programming paradigm]] that makes extensive use of hot swapping, so the programming activity becomes part of the program flow itself. Only a few [[programming language]]s support hot swapping natively, including [[Pike (programming language)|Pike]], [[Lisp (programming language)|Lisp]], [[Erlang (programming language)|Erlang]], [[Smalltalk]], Visual Basic 6 (not [[VB.NET]]), [[Java (programming language)|Java]] and most recently [[Elm (programming language)|Elm]]<ref>{{cite web|url = http://elm-lang.org/blog/Interactive-Programming.elm|title = Interactive programming โ Hot-swapping in Elm|publisher = elm-lang.org|access-date = 2015-02-15|archive-date = 2013-10-06|archive-url = https://web.archive.org/web/20131006235603/http://elm-lang.org/blog/Interactive-Programming.elm|url-status = dead}}</ref> and [[Elixir (programming language)|Elixir]]. [[Microsoft Visual Studio]] supports a kind of hot swapping called Edit and Continue, which is supported by [[C Sharp (programming language)|C#]], VB.NET and [[C (programming language)|C]]/[[C++]] when running under a debugger.<ref>{{cite web|url=http://msdn.microsoft.com/en-us/library/bcew296c(VS.80).aspx|title=MSDN Article for Edit and Continue|publisher=Msdn.microsoft.com|access-date=2013-08-18|archive-date=2010-07-31|archive-url=https://web.archive.org/web/20100731042922/http://msdn.microsoft.com/en-us/library/bcew296c(VS.80).aspx|url-status=dead}}</ref> Hot swapping is the central method in [[live coding]], where programming is an integral part of the runtime process. In general, all programming languages used in live coding, such as [[SuperCollider]], [[TidalCycles]], or [[Extempore_(software)|Extempore]] support hot swapping. Some web-based frameworks, such as [[Django (Web framework)|Django]], support detecting module changes and reloading them on the fly. However, although the same as hotswapping for most intents and purposes, this is technically just a [[cache (computing)|cache]] purge, triggered by a new file. This does not apply to markup and programming languages such as [[HTML]] and [[PHP]] respectively, in the general case, as these files are normally reinterpreted on each use by default. There are a few [[Content management system|CMSes]] and other PHP-based frameworks (such as [[Drupal]]) that employ caching, however. In these cases, similar abilities and exceptions apply. Hot swapping also facilitates developing systems where large amounts of data are being processed, as in entire genomes in bioinformatics algorithms.<ref>{{cite journal | title = HotSwap for bioinformatics: A STRAP tutorial| year = 2006|publisher=Biomedcentral.com| doi = 10.1186/1471-2105-7-64| last1 = Gille| first1 = Christoph| last2 = Robinson| first2 = Peter N.| journal = BMC Bioinformatics| volume = 7| page = 64| pmid = 16469097| s2cid = 18283272| pmc = 1386713| doi-access = free}}</ref> ==Trademarks== The term "HOT PLUG" was registered as a trademark in the United States in November 1992 to [[Core International|Core International, Inc.]], and cancelled in May 1999.<ref>{{cite web|url=http://tsdr.uspto.gov/#caseNumber=74140414&caseType=SERIAL_NO&searchType=statusSearch|title=Trademark Status & Document Retrieval (TSDR); Mark: HOT PLUG; US Serial Number: 74140414; Application Filing Date: Feb. 19, 1991; US Registration Number: 1732038; Registration Date: Nov. 10, 1992|publisher=USPTO|access-date=27 November 2016}}</ref> ==See also== * [[udev]] * [[Downtime]] * [[High availability]] ==References== {{Reflist|30em}} {{DEFAULTSORT:Hot Swapping}} [[Category:Computer peripherals]] [[Category:Fault-tolerant computer systems]] [[Category:Live coding]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Citation needed
(
edit
)
Template:Cite book
(
edit
)
Template:Cite conference
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Cn
(
edit
)
Template:Expand section
(
edit
)
Template:Further information
(
edit
)
Template:Redirect
(
edit
)
Template:Refimprove
(
edit
)
Template:Reflist
(
edit
)
Template:See also
(
edit
)
Template:Short description
(
edit
)