YouTube2Text

[CS61C FA20] Lecture 37.2 - Data Centers, Cloud Computing (WSC): Warehouse Scale Computers — Transcript

by CS 61C Departmental · 5,502 words · 881 segments · language en · Watch on YouTube

Full transcript

  1. 0:00and welcome back now let's finally see
  2. 0:03it
  3. 0:03a warehouse scale computer how does it
  4. 0:05even work
  5. 0:07so why cloud computing now let's talk
  6. 0:08about why this didn't happen 10 years
  7. 0:10ago or 20 years ago
  8. 0:12um these extremely large data centers 10
  9. 0:15000 commodity pcs
  10. 0:16um more users built out of the demand um
  11. 0:21in the early days so let's go back 20
  12. 0:23years there were
  13. 0:24every company used to have their own it
  14. 0:27department they probably had some
  15. 0:28servers in their basement
  16. 0:30and they ran their they basically rolled
  17. 0:31their own everybody every kind of
  18. 0:33reasonable size company was rolling
  19. 0:34their own
  20. 0:35and then as you had big companies the
  21. 0:37google's the amazons of the world
  22. 0:40i guess apple and somewhere in there
  23. 0:42facebook is in there as well
  24. 0:43they realized they needed a much larger
  25. 0:45scale than just a basement you know set
  26. 0:47of computers that they'd have
  27. 0:48and that large scale allowed them to
  28. 0:50think about well as we're growing if
  29. 0:52we're paying this much money for it
  30. 0:53what how should we build these well they
  31. 0:55started to build them out of
  32. 0:56commodity pcs they re i mentioned before
  33. 0:59they realized that build not having the
  34. 1:00highest end gaming machine and putting
  35. 1:02you know multiples of those in there but
  36. 1:04having the cheapest best value per
  37. 1:06dollar
  38. 1:06really it's about commodity pcs um and
  39. 1:09they just decided
  40. 1:10there's a higher higher failure rate for
  41. 1:12these higher for those machines but
  42. 1:14we'll live with that we'll work with
  43. 1:16that um it's definitely better so the
  44. 1:18economy scale was
  45. 1:19um it's it's it's actually five or seven
  46. 1:22times cheaper
  47. 1:23than provisioning a medium-sized
  48. 1:24facility per per machine
  49. 1:26per instance they also had more
  50. 1:29pervasive broadband internet
  51. 1:31so they could actually you know access
  52. 1:33these things uh
  53. 1:34efficiently and again commoditization of
  54. 1:36hardware software
  55. 1:38to help help with that it was certainly
  56. 1:39standardization of software stacks
  57. 1:42so i looked up recently what the
  58. 1:44instance prices were
  59. 1:46if you want if you did the reading then
  60. 1:47you'll see that they talked about a
  61. 1:49particular example in the reading the
  62. 1:50warehouse scale computing
  63. 1:52and this is amazon web services aws and
  64. 1:55this is right here this guy this
  65. 1:58particular one here
  66. 2:00is the sim is the example that's closest
  67. 2:02to the example they talked about in that
  68. 2:04reading
  69. 2:05which is about 33 cents an hour
  70. 2:08or three to three three hours per dollar
  71. 2:12in terms of the ratio of the smallest
  72. 2:14you can buy a very minimally provisioned
  73. 2:16machine
  74. 2:16a very military machine you know the two
  75. 2:18gibby bytes of ram
  76. 2:20two cores very small very small cheap
  77. 2:22two cents an hour
  78. 2:24remarkable uh but if you want a little
  79. 2:26bit more you know a little bit more
  80. 2:27power
  81. 2:28you've got uh you know eight virtual
  82. 2:30cores 32gb of ram
  83. 2:32i appreciate that but again three you
  84. 2:34know three hours per
  85. 2:36dollar so it starts to it starts to add
  86. 2:37up if you leave it if you leave it on
  87. 2:39and forget forget it's running and you
  88. 2:41know i can probably leave this on
  89. 2:42at this price is 16 times more expensive
  90. 2:44i could leave this guy on
  91. 2:46uh for a while and not worry about it
  92. 2:47too much but the one below it you really
  93. 2:49want to watch out for that
  94. 2:51um and what's incredible is and so
  95. 2:54there's a whole you can you know there's
  96. 2:55tons of knobs you can choose i want to
  97. 2:57have more memory i want to have higher
  98. 2:59high cpu and so you can
  99. 3:00decide what you want they do give you
  100. 3:03what's what's called
  101. 3:04ec2 or compute integer unit this is a
  102. 3:06number kind of a spec
  103. 3:07a specification tells you what you're
  104. 3:09buying um and so you can really say well
  105. 3:11i need to have this much power
  106. 3:12but a high memory system well not
  107. 3:14actually this power because of this this
  108. 3:15is a cpu
  109. 3:16it's really a cpu you look at your data
  110. 3:19you look at your data and you say
  111. 3:21what what is this computation really
  112. 3:23needing is it needing a lot of memory is
  113. 3:25it not a lot of compute
  114. 3:27i don't know a lot of cpu cycles but
  115. 3:28it's a lot of memory load the whole
  116. 3:29matrix in to do a couple of searches but
  117. 3:31i don't have to go to disk
  118. 3:32so i want a high memory machine or maybe
  119. 3:34it's not a lot of memory needed but a
  120. 3:36lot of cpu but i'm going to be crunching
  121. 3:37on
  122. 3:37a couple small data sets so you're
  123. 3:40playing with where you want high cpu
  124. 3:41high memory or just a standard setup
  125. 3:43that's a little bigger than that so you
  126. 3:44decide what you want in terms of that
  127. 3:46but there's a whole scale there what's
  128. 3:49amazing to me is that at these low rates
  129. 3:50it feels like low rates to me to have
  130. 3:52just a machine somebody's going to keep
  131. 3:53a machine
  132. 3:53and they'll keep all the worry about
  133. 3:55making machine up failures all those
  134. 3:57things they'll take care of it i just
  135. 3:58have to rent the machine that's a pretty
  136. 3:59good deal
  137. 4:00i appreciate that just for compute or
  138. 4:02storage too they also have
  139. 4:04elastic block storage um and they have a
  140. 4:0710 cents per gigabit
  141. 4:09uh this is gigabit per month or
  142. 4:12for a hard drive or a spinning drive
  143. 4:14it's four uh four
  144. 4:15four cents um gigabit take a bite sorry
  145. 4:18gigabyte gigabyte per month
  146. 4:20gigabyte month i said gigabyte month so
  147. 4:22if you want more gigabytes or more
  148. 4:24months
  149. 4:24it's a gigabyte month remember that it's
  150. 4:26not getting by per month it's gigabyte
  151. 4:27month
  152. 4:28also important you can also get any of
  153. 4:29these machines with an attached ssd if
  154. 4:31you need to have some local stuff that
  155. 4:32you play with and you can choose
  156. 4:34and explore your space with that
  157. 4:37so again here's the idea you've got this
  158. 4:39massive data center
  159. 4:41100 000 to 10 000 servers all in one
  160. 4:43building
  161. 4:44um emphasizing cost efficiency but you
  162. 4:47really need to pay attention to power so
  163. 4:49cooling keeping these guys cool is
  164. 4:51really where a lot of your engineering
  165. 4:53goes
  166. 4:53and a lot of your thought goes a lot of
  167. 4:55your square footage goes is to thinking
  168. 4:56about keeping those things cool
  169. 4:58um it's relatively homogeneous so yes
  170. 5:01okay that that was version one of the
  171. 5:03commodity version you know upgraded them
  172. 5:04so now as i upgrade maybe some of them
  173. 5:05are still version one some other version
  174. 5:07two but mostly they're homo you know
  175. 5:09homogeneous in terms of hardware and
  176. 5:10software you offer
  177. 5:12incredible amounts of software as a
  178. 5:15virtual platform
  179. 5:16uh social networking video sharing you
  180. 5:18can allow companies to buy
  181. 5:19time on the on your rack and this is
  182. 5:21very exciting for many companies
  183. 5:24very high availability we call it nine
  184. 5:26five five nines of availability so
  185. 5:28less than an hour of downtime per year
  186. 5:30which is credible and in fact sometimes
  187. 5:33you know you can look up on some of the
  188. 5:34news articles where you see oh uh if
  189. 5:36amazon goes
  190. 5:37goes down you know some particular
  191. 5:38amazon warehouse slows down what will
  192. 5:40happen
  193. 5:40is many companies will go down with them
  194. 5:43why was this site offline well because
  195. 5:45it's
  196. 5:46served on that particular thing you
  197. 5:47remember that there was a flood on the
  198. 5:48eastern seaboard that took a lot took
  199. 5:50away a lot of services and the services
  200. 5:52go down with it so it's not just
  201. 5:53amazon's going to suffer that they've
  202. 5:54got a ton of redundancy across that you
  203. 5:55probably won't notice on the amazon side
  204. 5:57but you'll notice on the smaller compute
  205. 5:58side they might have had they might not
  206. 6:00have been paying for that redundancy in
  207. 6:01their systems
  208. 6:02so sometimes services will go down
  209. 6:04because they're running on the aws
  210. 6:06local system which itself went offline
  211. 6:08who knows
  212. 6:09anyway two researchers said warehouse
  213. 6:11scale computers are no less worthy of
  214. 6:13the expertise of computer system
  215. 6:14architects than any other class of
  216. 6:15machines
  217. 6:16you could deal with a really small micro
  218. 6:18level they're kind of the the smart dust
  219. 6:20level
  220. 6:20all the way up to a particular cpu we
  221. 6:23spent a lot of time talking about
  222. 6:24building it building
  223. 6:24faster chips to building a faster
  224. 6:27computer with a lot of chips in it to
  225. 6:29building
  226. 6:29now a warehouse of lots of those
  227. 6:31computers so that's a it's a fun it's a
  228. 6:33fun space it's at the macro scale
  229. 6:35we're dealing with here now i give you
  230. 6:38a really fat check 10 million dollars or
  231. 6:41more and i say build one of these
  232. 6:42warehouses for you
  233. 6:43what are your design goals what are you
  234. 6:45thinking of when you're building these
  235. 6:46this warehouse scale system
  236. 6:48a ton of parallelism just incredible
  237. 6:50number parallelism largely number
  238. 6:52independent data sets
  239. 6:53independent processing we call this
  240. 6:54again data data level process data level
  241. 6:56data level parallelism what are the
  242. 6:59issues of
  243. 7:00scale and what are the opportunities um
  244. 7:03well there are not many of them if you
  245. 7:06may say well go look around the world
  246. 7:07for other
  247. 7:08warehouse scale systems to model years
  248. 7:10after there aren't that many of them
  249. 7:12there's just a handful of these very
  250. 7:13wealthy companies building these systems
  251. 7:15um so it's not it's it's not like well
  252. 7:17there have been
  253. 7:18four billion in uh implementations of a
  254. 7:21particular
  255. 7:22chip let's look at the four billion and
  256. 7:24first okay that's i looked
  257. 7:26what did they do wrong what did they do
  258. 7:27right this is hard it's hard to if
  259. 7:29there's only four or five of these that
  260. 7:30has ever occurred or four or five
  261. 7:31different models they've ever occurred i
  262. 7:33mean there's certainly many more of this
  263. 7:34that totally occurred but in terms of
  264. 7:35how many different models you've got a
  265. 7:36facebook model you've got amazon's mod i
  266. 7:38got google's model apple's mob
  267. 7:39not many it starts to sh how many more
  268. 7:42there's not that many more of these big
  269. 7:44big companies running these big
  270. 7:45warehouse scale systems
  271. 7:46um you can certainly get price breaks
  272. 7:49uh from purchases of commodity thinking
  273. 7:51look i'm about to buy a million of your
  274. 7:52computers
  275. 7:53how low can you go because if you don't
  276. 7:54go there i'm going to this company so
  277. 7:55you can keep playing against each other
  278. 7:57to get some of those numbers down
  279. 7:58um and you're going to have a high
  280. 7:59number of component failures so you have
  281. 8:01to have somebody and by the way if
  282. 8:02you've seen these i'm going to show you
  283. 8:03some videos at the end of this
  284. 8:04there are people videos of people who
  285. 8:05are replacing drives because
  286. 8:07there's a job who's this there's a job
  287. 8:09whose title is you're the drive
  288. 8:11replacement person
  289. 8:12now you could be worse you could you
  290. 8:13know be shoveling something you know
  291. 8:15shuggling poop or something but
  292. 8:16the point is your job is just to skate
  293. 8:18around and they have
  294. 8:19rollerblades and they skate around and
  295. 8:22they bring the
  296. 8:22hard drive swap bubble up done hard
  297. 8:24drive swap into a raid system these raid
  298. 8:26systems allow for hard drive failures
  299. 8:27without data loss
  300. 8:28something normally if you don't think
  301. 8:29about a raid you have a single drive and
  302. 8:31your home computer
  303. 8:32once it fails you've lost data well not
  304. 8:34if you have redundancy there we're going
  305. 8:35to see this in a lecture a little
  306. 8:37bit later i can have enough redundancy
  307. 8:39that can have one or maybe even two
  308. 8:40fails depending on what level of raid
  309. 8:41you have
  310. 8:42so you can lose it drive replace the
  311. 8:43drive as long as you don't have past a
  312. 8:45certain limit
  313. 8:46then you won't have any failures so this
  314. 8:47whole system this whole particular
  315. 8:49configuration
  316. 8:50you could have a drive fail and because
  317. 8:52i have redundancy i don't lose the data
  318. 8:54that's amazing so
  319. 8:55you have somebody whose job is just to
  320. 8:56skateboard around
  321. 8:58rollerblade around and replace drives
  322. 9:00pretty incredible
  323. 9:01good job fun um here's the other key
  324. 9:04piece of this is
  325. 9:05the cost of equipment purchase the first
  326. 9:07you know the check you write is not a
  327. 9:09one-time check to build this system i
  328. 9:10built the system
  329. 9:11but now the cost of ownership is far
  330. 9:14greater than the cost of
  331. 9:15purchasing it initially you've got power
  332. 9:18you've got cooling you've got
  333. 9:19manpower all those things replacing hard
  334. 9:21drives all those ownership the cost of
  335. 9:23ownership is far greater than
  336. 9:25the cost of the initial purchase so it's
  337. 9:26not just well thank you for the check
  338. 9:28but i need to i'm gonna be needing a
  339. 9:29check uh every month to pay for
  340. 9:31all the overhead i have to put into the
  341. 9:32system here's the first picture
  342. 9:35here's google's horizon google's oregon
  343. 9:38warehouse scale computer
  344. 9:40and what a couple things you notice
  345. 9:43it's in the middle of nowhere first
  346. 9:45thing i'm seeing
  347. 9:46it's beautiful it's beautiful picture
  348. 9:48it's middle of nowhere
  349. 9:50and the reason for that privacy you've
  350. 9:53got
  351. 9:53you've got corporate sensitive data here
  352. 9:55who knows who what company is borrowing
  353. 9:57your system to put their stuff there
  354. 9:58they
  355. 9:58don't just have an easy location you
  356. 10:00want to be very hard to get there that's
  357. 10:01number one
  358. 10:02two land is cheap you're the middle of
  359. 10:05nowhere land is
  360. 10:06cheap so go buy if you have this much
  361. 10:07land go buy it where the cost of the
  362. 10:09land isn't very high where no one's
  363. 10:11gonna competing with you
  364. 10:11put this in the middle of the city
  365. 10:12that's the worst place to put it ever
  366. 10:13obviously
  367. 10:15it's in oregon what's oregon telling you
  368. 10:18it's cool in oregon
  369. 10:19it's not in you know the the heart of
  370. 10:22the hottest
  371. 10:23state in the union oregon's pretty cool
  372. 10:25place um
  373. 10:27so temperature is an important thing you
  374. 10:29don't have to you don't
  375. 10:30put this in a place where there's gonna
  376. 10:32be snow and you have to deal with
  377. 10:33keeping this warm blah blah blah there's
  378. 10:34a little bit of that as well but you
  379. 10:35don't want to
  380. 10:36deal with a lot of temperature
  381. 10:37variations and you're near a river
  382. 10:40you might not have thought about that
  383. 10:42what's that mean well maybe you can be
  384. 10:44very clever in terms of bringing some of
  385. 10:46that some of that water in
  386. 10:47and helping with your cooling system and
  387. 10:49maybe warming it out there so there's
  388. 10:51maybe a way to keep uh to work on saving
  389. 10:55saving um saving cost by using can be
  390. 10:58water controlled uh
  391. 11:00water controlled cooling thinking about
  392. 11:01that in fact here's the zooming here's a
  393. 11:04zoomed in version of that
  394. 11:05and then if you look down here if i zoom
  395. 11:07into that even more you know what that
  396. 11:08is
  397. 11:09that whole building in fact you can see
  398. 11:10that from a distance that whole building
  399. 11:12is the cooling center that is such a big
  400. 11:16part of this
  401. 11:17that keeping these servers which
  402. 11:18generates so much heat
  403. 11:20cool requires an entire building to just
  404. 11:22refrigerate them that system so
  405. 11:24we'll talk about that a little later but
  406. 11:26that's a very big consideration design
  407. 11:27consideration is making sure you
  408. 11:29you've handled cooling well inside what
  409. 11:32they've discovered
  410. 11:33is they build these containers you know
  411. 11:35the same shipping containers you see on
  412. 11:37the big boats taking things from to and
  413. 11:38from
  414. 11:39uh other countries on the on the oceans
  415. 11:41they decided to
  416. 11:42just and by the way we had one in soda
  417. 11:44hall we as we had a trial
  418. 11:46uh container in the backside of sort of
  419. 11:48hall um
  420. 11:49for a while this is we we used to have a
  421. 11:52sand volleyball pit then we had a
  422. 11:54warehouse scale
  423. 11:54we made one of these containers with
  424. 11:56with servers in them to practice to
  425. 11:58to play with them to explore that space
  426. 12:00um so we had one of these at sodahold
  427. 12:01for a while it was really fun
  428. 12:04so what you've got is they stacked them
  429. 12:05too high which is an interesting model
  430. 12:09they uh have
  431. 12:12access they put them in and had put them
  432. 12:14in they don't just put they put them in
  433. 12:16an angle it's almost like
  434. 12:16when you park a car in a parking lot and
  435. 12:19then inside a container is just an
  436. 12:20incredible incredible high density of
  437. 12:23servers
  438. 12:24um typically what you're seeing by the
  439. 12:27way
  440. 12:28is this the back they put them all
  441. 12:31this aisle this aisle is all the user
  442. 12:33facing parts so this is all the parts
  443. 12:34where you would
  444. 12:35maybe swap in a hard drive and do that
  445. 12:37and then the back side where the usually
  446. 12:38exhaust is and the wiring is
  447. 12:40that's on the far side so there's not a
  448. 12:41lot of wiring you're seeing here the
  449. 12:42wiring usually is on the back side of
  450. 12:44that so that's the nice thing
  451. 12:45also this could be sorry this could be
  452. 12:47the wiring aisle i'm looking at it here
  453. 12:49i think this is the wiring aisle see all
  454. 12:50those wires that come out of that there
  455. 12:52is another side so
  456. 12:53there are different this is the the back
  457. 12:54side out that's the front side it's the
  458. 12:56back side is the front side aisle you'll
  459. 12:57see that
  460. 12:58um so this is you have to have better
  461. 12:59you have to have easy flow you can't
  462. 13:01just have well i can't move it all in
  463. 13:02the wiring aisle you may have
  464. 13:04flow and move as you wire and you
  465. 13:05tighten them up you better be very
  466. 13:06organized with your wiring of it
  467. 13:08you have a lot of cable ties that keep
  468. 13:09these things otherwise it can be insane
  469. 13:11how many wires go around
  470. 13:13there'll be another aisle which is where
  471. 13:14you'd be swapping the hard drives out
  472. 13:16that'd be the front of these servers for
  473. 13:17there but that i think is the back side
  474. 13:18with all the lights i believe
  475. 13:22so what do you see inside that system
  476. 13:24you saw kind of a big picture of of one
  477. 13:26of the one of the aisles
  478. 13:28it starts with a server these are often
  479. 13:30called 1u servers they're about one and
  480. 13:32three quarter three
  481. 13:33they're very heavy by the way and very
  482. 13:34deep it's much deeper than you realize
  483. 13:36you think oh it's a computer it's a gray
  484. 13:38beige box on the side of you
  485. 13:39no not at all at all it looks like a
  486. 13:41pizza box
  487. 13:42um it's about one and three quarters
  488. 13:43inch wide night high
  489. 13:4519 inches uh wide and the size you're
  490. 13:48six feet
  491. 13:4919 inches wide and then 16 to 20 inches
  492. 13:51deep so it's really very heavy
  493. 13:53uh very flat uh inside that is a normal
  494. 13:56computer you've got an
  495. 13:57eight cores you know 16 gb big bites or
  496. 13:59more of dram and maybe four
  497. 14:01one terabytes or four four terabyte
  498. 14:02disks that's the first level so that's
  499. 14:03that little slicey guy
  500. 14:06then you've got a rack this is often
  501. 14:08seven feet high and you put 40 to 80
  502. 14:10servers
  503. 14:11in that rack um you've got a local area
  504. 14:13network of ten one to
  505. 14:15gibby bytes per second give me bits per
  506. 14:17second a switch in the middle
  507. 14:18and that's called the rack switch so
  508. 14:20right here is your switch okay
  509. 14:22placed locationally right in the middle
  510. 14:24of it so it's easy to get to and also
  511. 14:26kind of equidistant from all of them if
  512. 14:27you think about that space
  513. 14:30finally you've got an array and that
  514. 14:32array we often call a cluster
  515. 14:34that's 16 to 32 server racks in that
  516. 14:37and there's also then this would be a
  517. 14:38larger cluster switch these are the
  518. 14:40racks
  519. 14:41a larger and much more expensive cluster
  520. 14:43switch to be able to hand that
  521. 14:44typically 10 times faster but the cost
  522. 14:47is a hundred times because
  523. 14:48there's not there's fewer of these and
  524. 14:50the people say well you need it you got
  525. 14:51to pay it through the nose for that
  526. 14:53so it's a function typically n squared
  527. 14:54in terms of the cost for that
  528. 14:56switch versus the local switch here's
  529. 14:59again a picture of a server
  530. 15:01sra server there's a rack and there's an
  531. 15:04array
  532. 15:05and i believe this is the front side of
  533. 15:06that this is the user serviceable so you
  534. 15:08see
  535. 15:08the wiring is on the back side and this
  536. 15:10is the front side i put an f there it's
  537. 15:12the front side of this area
  538. 15:14and there's a lot more room here between
  539. 15:15them they want to be able to get between
  540. 15:16you see this little air that's that's
  541. 15:18loss of space
  542. 15:19so typically if you have the higher end
  543. 15:21systems they don't have that those those
  544. 15:22racks but this is kind of a smaller
  545. 15:24scale
  546. 15:24cluster what's inside one of those
  547. 15:28machines
  548. 15:29so that's the traditional way you build
  549. 15:31them when google did it
  550. 15:32google said why do we need the case
  551. 15:35let's build it ourselves they literally
  552. 15:36build much many of these things
  553. 15:37ourselves
  554. 15:38so here's a google computer if you can
  555. 15:40see what are you seeing here
  556. 15:42what am i seeing well there's your power
  557. 15:44supply
  558. 15:46uh there's your two cpus okay two double
  559. 15:48cpus there double fans on that
  560. 15:50here's our memory obviously here's our
  561. 15:53here's our hard drives
  562. 15:54um and here's some connection isn't that
  563. 15:57nothing else interesting
  564. 15:58here's a switch that here's a has a slot
  565. 16:00that isn't being used
  566. 16:01um is that there's another probably
  567. 16:04something there that's a that's a heat
  568. 16:05sink on that
  569. 16:06maybe some gpu possibly
  570. 16:10this this is right here this is the most
  571. 16:13important and interesting piece of it
  572. 16:15it's a battery so this is
  573. 16:18and you can tell us about it because it
  574. 16:20has just two leads to it right batteries
  575. 16:21typically don't have more than that
  576. 16:24this is their version of an
  577. 16:26uninterruptible power supply
  578. 16:28they've thought about having one big you
  579. 16:31know unintentional power supply
  580. 16:32basically says the power goes out
  581. 16:34how do we handle this how do you both um
  582. 16:36clean the power sometimes the power
  583. 16:38is not a perfect 60 hertz uh 120 volts
  584. 16:41peak to peak
  585. 16:42what you typically see alternating
  586. 16:44current you typically have
  587. 16:45um that someone has noise in the system
  588. 16:47that can be a problem for that
  589. 16:49and what happens when power goes out you
  590. 16:50don't want to lose your system you know
  591. 16:51let's say the power just bloop power
  592. 16:52went out for it for a second for five
  593. 16:54seconds for a minute for an hour
  594. 16:56for a day you want to be able to keep
  595. 16:57your computer up for as long as you can
  596. 16:59for the battery there's obviously a
  597. 17:00limit to that
  598. 17:00um and they played with the experiment
  599. 17:02with this at a hospital level
  600. 17:04you put a big uninterpretable power
  601. 17:06supply in the hospital basement
  602. 17:08that powers the whole hospital you don't
  603. 17:09have a ups at each floor at each table
  604. 17:12you don't do that you put a big one in
  605. 17:13the basement because it's a hospital
  606. 17:16google and other folks have tried that
  607. 17:18having a big ups
  608. 17:19and they realized it was more efficient
  609. 17:22to have a localized ups
  610. 17:24for each one there's something about
  611. 17:25scale and cost and
  612. 17:27and uh and heat and other elements that
  613. 17:29are involved with putting a big massive
  614. 17:30ups in the basement to handle the power
  615. 17:32for the whole system
  616. 17:33the power draw is incredible they
  617. 17:35decided it's actually more efficient
  618. 17:37to buy a localized ups battery supply
  619. 17:40here so that is the
  620. 17:42uninterruptible power supply in case
  621. 17:43power goes out they can still have that
  622. 17:45computer compute for a little while
  623. 17:46before the battery eventually dies
  624. 17:49so now let's take a step back and think
  625. 17:51about what performance is um
  626. 17:53what does it mean to say something is
  627. 17:55faster than something else so here's an
  628. 17:57example
  629. 17:572009 ferrari 599 gtb
  630. 18:00holds two passengers and 11.1 seconds
  631. 18:03for the quarter mile
  632. 18:03let's call it 10 seconds make it easy
  633. 18:06and this is
  634. 18:07a school bus 2009 type d school bus
  635. 18:1054 54 passengers quarter mile time say
  636. 18:13it's a minute okay
  637. 18:16when you say what's the performance of a
  638. 18:18system we have to ask it's almost like
  639. 18:20you tell the computer on star trek you
  640. 18:21say i want tea earl grey it'll say
  641. 18:23hot or cold two different flavors if i
  642. 18:26say i want to know this is the best
  643. 18:27performance they say well do you mean
  644. 18:28response time
  645. 18:29what do you mean latency sorry
  646. 18:32do you mean response time or latency
  647. 18:34which is the same thing or do you mean
  648. 18:35throughput
  649. 18:37so response time or latency means the
  650. 18:39time between start and completion of a
  651. 18:41single task
  652. 18:42i just need one thing i just need you to
  653. 18:43take this
  654. 18:45this raw metal and make it into a shape
  655. 18:47well i'm just
  656. 18:48i'm not doing a million i'm doing one of
  657. 18:49them what's my total latency between
  658. 18:51when i give you this
  659. 18:52until it's all done in this case what's
  660. 18:55the time between
  661. 18:56taking and moving a single person a
  662. 18:58quarter mile that would be the response
  663. 19:00time
  664. 19:01throughput says how many of these can
  665. 19:03you do over time so it's amount of work
  666. 19:05in a given time and for here we're
  667. 19:08thinking about passenger miles in a
  668. 19:10one-hour system
  669. 19:12so those are the two models so do you
  670. 19:14try to move a lot of people or you're
  671. 19:15trying to move
  672. 19:16a single person
  673. 19:19so let's think about that how long would
  674. 19:23it take you to
  675. 19:24move one person in the
  676. 19:27one person the quarter mile in the
  677. 19:29ferrari
  678. 19:30well that's just 10 seconds
  679. 19:33for a quarter mile how will take you how
  680. 19:35how how long would it take you to move
  681. 19:37one person in the bus a minute so the
  682. 19:39ferrari is much better than the bus in
  683. 19:41that model
  684. 19:43how long would it take you to move 54
  685. 19:46people
  686. 19:47a quarter mile well it takes a minute
  687. 19:50for the bus fill the bus
  688. 19:52up maybe there's some filling time and
  689. 19:53draining time fill the pipeline drain
  690. 19:55the pipeline
  691. 19:55but assume that that's a free thing
  692. 19:59and by the way assume you can go back
  693. 20:00instantly just for this way back
  694. 20:02instantly okay
  695. 20:03so in the case of moving one person or
  696. 20:06you certainly want the response time or
  697. 20:07latency of the ferrari
  698. 20:09but in terms of moving 54 people boy
  699. 20:12it's one minute to take a bus full of
  700. 20:13people a quarter mile
  701. 20:15how long will it take it would take
  702. 20:16sounds like i'm counting on
  703. 20:1827 10 seconds that's a lot worse than
  704. 20:21one minute
  705. 20:23so that's the throughput so the bus wins
  706. 20:25in terms of throughput
  707. 20:27the ferrari wins in terms of response
  708. 20:29time and these are important as you're
  709. 20:30thinking of
  710. 20:31response times of our system let's
  711. 20:33actually look at this
  712. 20:34and we talk about the array remember my
  713. 20:36server rack and array i've got this
  714. 20:37array now
  715. 20:38room full of computers i've got a local
  716. 20:41system
  717. 20:42i've got a rack and i've got my array
  718. 20:44and as i look at this there it's a
  719. 20:45really interesting little chart here
  720. 20:48i've got one rack in a rack and 30 racks
  721. 20:50in my array that's let's go to the high
  722. 20:52end here
  723. 20:53one server on my local computer 80
  724. 20:56max this number out 80 in my rack and
  725. 20:592400
  726. 21:00in my array eight cores
  727. 21:04640 cores 19 000 cores huh
  728. 21:07pretty juicy right don't you want this
  729. 21:08in your basement that'd be amazing
  730. 21:10look at this though look at this number
  731. 21:11so the numbers 16 gb for dram
  732. 21:141280 and 38 000.
  733. 21:18okay dram capacity
  734. 21:21disk capacity for tubby 320 and 9600 boy
  735. 21:25that's a huge data file that's very good
  736. 21:27okay nine pebby bytes right tabby and
  737. 21:30pepe bytes 9.6 pebby bytes
  738. 21:33now let's look at this following i have
  739. 21:34got dram latency
  740. 21:36so that's the time for one byte to be
  741. 21:38written to dram in terms of microseconds
  742. 21:41and disk latency one byte we written to
  743. 21:43disk look at the difference
  744. 21:46this by the way means this this means
  745. 21:48local rack array what this says is
  746. 21:50i'm gonna not only have a distributed
  747. 21:52file system but distributed memory
  748. 21:54system
  749. 21:55meaning i could write to another
  750. 21:57computer's dram
  751. 21:58if you allow for that in the of you have
  752. 22:00an os a distributed operating system as
  753. 22:01well
  754. 22:02that allows for that that's incredible
  755. 22:04it means that i can think of
  756. 22:05how much ram my computer can run not
  757. 22:07just what i locally have which is
  758. 22:0916 gb but i could think of my computer
  759. 22:11being able to have 38
  760. 22:13400 gibby pretty incredible so that's
  761. 22:16important you understand this idea that
  762. 22:18i'm going to be able to read and write
  763. 22:19not only to my local drive to my local
  764. 22:21memory but to my
  765. 22:23arrays any any drive on my array or any
  766. 22:27memory
  767. 22:28in my array as well that's important so
  768. 22:30now let's
  769. 22:31let's let's actually look at this and
  770. 22:32green is better and red is bad here
  771. 22:35so if i were to now look at the latency
  772. 22:38to write a single byte
  773. 22:39well remember disk is like going to
  774. 22:41andromeda
  775. 22:42so to write a single byte here is
  776. 22:4610 000 microseconds
  777. 22:49basically 10 milliseconds okay how about
  778. 22:53if i'm rather than writing to my own
  779. 22:55disc
  780. 22:56what if i could write to your when i say
  781. 22:58yours and other computers
  782. 23:00memory in my sam array your ram
  783. 23:03what if i could write it right to your
  784. 23:04ram if i had stuff that i can't
  785. 23:06you know here's my capacity of my here's
  786. 23:08my capacity
  787. 23:09of my of my disk four time bytes well
  788. 23:12let's look at this i've got dram
  789. 23:16of 38 tabi bytes
  790. 23:20so look i have got four versus 38.
  791. 23:23i if i had a thing that's oh you know
  792. 23:25it's like three teddy bytes
  793. 23:26well it's more than my ram has but
  794. 23:29certainly not more than my array has
  795. 23:31so really interesting conversations when
  796. 23:33you think of using ram
  797. 23:35as a disk my network ram as a disk
  798. 23:38really interesting
  799. 23:38and it is faster look at this by a lot
  800. 23:42to write to your ram rather than right
  801. 23:44to my disk as long as i can fit it
  802. 23:46all in that or maybe not just one person
  803. 23:49just one
  804. 23:49not just one machine but a collection of
  805. 23:51that really interesting if the os can do
  806. 23:53that for you
  807. 23:53and now let's look at how about if i
  808. 23:56have to just stream i can just stream
  809. 23:58data just
  810. 23:59stream stuff not just one but throughput
  811. 24:03higher bandwidth of another throughput
  812. 24:05here to local disk
  813. 24:07okay so this is now this by the way this
  814. 24:10is
  815. 24:11i want smaller numbers if i talk about
  816. 24:12latency i want a smaller number
  817. 24:14in bandwidth i want a higher number this
  818. 24:17is meg
  819. 24:17megabytes per second thinking about that
  820. 24:21so what am i doing here i am
  821. 24:25writing to my own disc
  822. 24:29twice as fast as i can write to your
  823. 24:32dram so remember thinking all right i
  824. 24:35can write to my own disk
  825. 24:36your disk my ram your ram certainly
  826. 24:38right into my ram is better but if i
  827. 24:39have a lot of data
  828. 24:41and i have to be just streaming it out
  829. 24:42there it makes more sense to write to my
  830. 24:45disk versus your
  831. 24:46ram and certainly the worst is your disk
  832. 24:49right that's even worse it takes all the
  833. 24:51penalty so it's interesting it's a
  834. 24:53really interesting conversation to have
  835. 24:54this
  836. 24:55last slide on this particular lecture to
  837. 24:57think that
  838. 24:58you might i mean the whole it's like
  839. 25:00you're like mind-blown
  840. 25:02where you can think of a system an os
  841. 25:04handling and allowing a particular
  842. 25:06machine
  843. 25:07to not just write to its own ram and its
  844. 25:08own disk which is what you thought of
  845. 25:10all along
  846. 25:11but to write to someone else's that's a
  847. 25:13distributed file system
  848. 25:14someone else's disk that's not so crazy
  849. 25:16your disk is on the network somewhere
  850. 25:17that's fine
  851. 25:18but also someone else's ram to think
  852. 25:20what's where what's the ram that i have
  853. 25:21access to
  854. 25:22it's all the ram in my array that's
  855. 25:24pretty interesting
  856. 25:25and that sometimes you want to write to
  857. 25:27my ram to to ram that is
  858. 25:29far away rather than your own ram or
  859. 25:31rather than uh not in your own random if
  860. 25:32you can that's your
  861. 25:33your old ram is going to be the fastest
  862. 25:34but rather than write to your own disk
  863. 25:36or someone else's ram right to their ram
  864. 25:38pretty incredible so i hope this opens
  865. 25:40your eyes a little bit about what
  866. 25:41they're doing in these systems to get
  867. 25:43the performance that they're getting
  868. 25:44now you remember spark was do it in ram
  869. 25:47look at all the ram you think about
  870. 25:48array having all the ram being able to
  871. 25:49be used
  872. 25:50and no one's ever touching disk at all
  873. 25:52except to initially probably read the
  874. 25:53file
  875. 25:54at the beginning of the day or being in
  876. 25:55the job and write the file at the end of
  877. 25:57the job but all the intermediate
  878. 25:58competition was done
  879. 25:58in ram that's why spark is better than
  880. 26:01mapreduce
  881. 26:02we'll see you at the next video

About this transcript

This page contains the full transcript of [CS61C FA20] Lecture 37.2 - Data Centers, Cloud Computing (WSC): Warehouse Scale Computers by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 5,502 words across 881 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.