Potluck: Cross-Application Approximate Deduplication for Computation-Intensive Mobile Applications

Total Page:16

File Type:pdf, Size:1020Kb

Potluck: Cross-Application Approximate Deduplication for Computation-Intensive Mobile Applications Session 3B: Mobile Applications ASPLOS’18, March 24–28, 2018, Williamsburg, VA, USA Potluck: Cross-Application Approximate Deduplication for Computation-Intensive Mobile Applications Peizhen Guo Wenjun Hu Yale University Yale University [email protected] [email protected] Abstract 1 Introduction Emerging mobile applications, such as cognitive assistance Many emerging mobile applications increasingly interact and augmented reality (AR) based gaming, are increasingly with the environment, process large amounts of sensory in- computation-intensive and latency-sensitive, while running put, and assist the mobile user with a range of tasks. For on resource-constrained devices. The standard approaches example, a personal assistance application can “see” the to addressing these involve either ooading to a cloud(let) environment and generate alerts or audio information for or local system optimizations to speed up the computation, visually-impaired users [8]. A driving assistance applica- often trading o computation quality for low latency. tion [44] can render 3D scenes overlaid on the physical en- Instead, we observe that these applications often operate vironment to help the driver to visualize the surroundings on similar input data from the camera feed and share com- beyond the immediate views. These applications are usually mon processing components, both within the same (type of) computation-intensive and latency-sensitive, while running applications and across dierent ones. Therefore, dedupli- on resource-constrained devices. cating processing across applications could deliver the best The standard approaches to resolving these challenges of both worlds. involve either ooading to a cloud(let) [18, 21, 40, 43] or local In this paper, we present Potluck, to achieve approximate system optimizations to speed up the computation [15, 32], deduplication. At the core of the system is a cache service often trading o computation quality for low latency. that stores and shares processing results between applica- Instead, we observe that these applications often operate tions and a set of algorithms to process the input data to on similar, correlated input data with and share common maximize deduplication opportunities. This is implemented processing components, both within the same (type of) ap- as a background service on Android. Extensive evaluation plications and across dierent ones. While the input data shows that Potluck can reduce the processing latency for are rarely the same, they share temporal, spatial, or seman- our AR and vision workloads by a factor of 2.5 to 10. tic correlation due to the scene change behavior or the re- quirements of the applications. Moreover, a vast majority ACM Reference Format: of these applications exhibit a unique computation feature Peizhen Guo and Wenjun Hu. 2018. Potluck: Cross-Application in common: correlated and similar input values often yield Approximate Deduplication for Computation-Intensive Mobile Ap- the same processing results. Being lifestyle applications, it plications. In Proceedings of 2018 Architectural Support for Program- is highly probable for these applications to be installed on ming Languages and Operating Systems (ASPLOS’18). ACM, New York, NY, USA, 14 pages. hps://doi.org/hp://dx.doi.org/10.1145/ the same device [34]. This suggests that deduplicating pro- 3173162.3173185 cessing across applications and inputs could deliver the best of both worlds, i.e., achieving good performance within the resource constraints. Section 2 discusses these opportunities in detail. Deduplication is orthogonal to both ooading and Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies local system optimizations, and can be combined with either are not made or distributed for prot or commercial advantage and that for further optimization. copies bear this notice and the full citation on the rst page. Copyrights While recent works involve sharing computation, we ar- for components of this work owned by others than the author(s) must gue for more generic deduplication. Specically, StarFish [33] be honored. Abstracting with credit is permitted. To copy otherwise, or shares some intermediate results at the library level for com- republish, to post on servers or to redistribute to lists, requires prior specic permission and/or a fee. Request permissions from [email protected]. puter vision applications, MCDNN [23] enables sharing re- ASPLOS’18, March 24–28, 2018, Williamsburg, VA, USA sults from some layers of the deep neural network for dif- © 2018 Copyright held by the owner/author(s). Publication rights licensed ferent applications operating on top, and FlashBack [14] to the Association for Computing Machinery. relies on matching pre-dened sensing input and retrieving ACM ISBN ISBN 978-1-4503-4911-6/18/03...$15.00 pre-computed results for virtual reality (VR) applications. hps://doi.org/hp://dx.doi.org/10.1145/3173162.3173185 271 Session 3B: Mobile Applications ASPLOS’18, March 24–28, 2018, Williamsburg, VA, USA However, all of these were designed for (almost) exact match- being co-installed, even though they may not be running si- ing of the input (images), for specic (type of) applications multaneously. Further, they often operate in similar physical only and operate within the same type of applications. In environments, share common processing steps, and map a contrast, we take an unusual approach to deduplicate compu- group of similar input values to the same output. We discuss tation across correlated input values, across (dierent types these in detail next. of) applications, and in a fashion agnostic to the exact im- plementation of the processing procedures. 2.2 Input correlation and similarity In this paper, we present Potluck, a cross-application ap- The above applications all take input from the environment proximate deduplication service to achieve the above goal. or some context, directly or indirectly. Such input exhibits Potluck essentially stores and shares processing results be- similarity, within an application or across applications, due to tween applications and leverages a set of algorithms to assess the activities of the mobile user showing spatial and temporal the input similarity to maximize deduplication opportuni- correlation. ties, as detailed in Section 3. We carefully design an input Temporal correlation. We can view the combined video in- matching algorithm to improve the processing performance put to all the applications as a continual camera feed. In other without compromising the accuracy of the results. Potluck words, assuming there is a never-ending centralized camera is implemented as a background service on Android that feed to the mobile device, dierent applications simply take a provides support across applications (Section 4). Extensive subset of the frames as needed. From standard video analysis, evaluation shows that our system can potentially reduce the signicant temporal correlation exists between successive processing latency for our benchmark augmented reality and frames because the scene rarely changes completely within vision applications by a factor of 2.5 to 10 (Section 5). a short interval, and this has been leveraged extensively in In summary, we make the following contributions: video compression. In most cases, the main objects of interest First, we highlight deduplication opportunities across emerg- in these scenes are slightly distorted versions of one another ing vision-based and AR-based mobile applications. These by some translation and/or scaling factor. arise from various sources of correlation in their input, com- mon processing components they leverage, and the co-installation Spatial correlation. It is common for humans to follow of these applications. along recurrent trajectories, for example, due to their regular Second, in view of the opportunities above, we propose a commuting schedules or frequenting a favorite restaurant set of cross-application approximate deduplication technique from time to time. Therefore, there is some level of recurrence to achieve both fast processing and accurate results. To the of the scenes obtained as part of those activities, though po- best of our knowledge, this is the rst such attempt. tentially taken from dierent view points and partially dier- Third, we build the system as a background service. Ex- ent environments, such as dierent lighting conditions and tensive evaluation conrms its benet is signicant. surrounding backgrounds. The actual images might show dierent color bias, for example. Such correlation can be 2 Motivation identied using SURF [12] like approaches. Semantic correlation. A further situation arises when the 2.1 Motivating applications same object or the same type of objects appears in com- Among the fastest growing applications, vision-based cog- pletely unrelated background scenes and at dierent times. nitive assistance applications and augmented reality (AR) For example, when a road sign is detected at dierent places based applications are two representative categories. and times, regardless of the exact sign, a driver assistance As an example cognitive application, Google Lens [10] app simply generates an alert. Since many applications in- continuously captures surrounding scenes via the camera, terpret the scene to related abstract notions of objects or recognizes objects using deep learning techniques, and then faces, many seemingly dierent images can be classied to presents related
Recommended publications
  • 'Artificial Intelligence for Plant Identification on Smartphones And
    Artificial Intelligence for plant identification on smartphones and tablets Artificial Intelligence for plant identification on smartphones and tablets HAMLYN JONES n recent years there has been an explosion in the rarely, if at all, identified correctly. For each image availability of apps for smartphones that can be the success of the different apps at identifying to Iused to help with plant identification in the field. family, genus or species is shown. Several of the There are a number of approaches available, ranging sample images were successfully identified to species from those apps that identify plants automatically by all apps, while a few were not identified by any based on the use of Artificial Intelligence (AI) and app. In practice, I found it very difficult to predict automated Image Recognition, through those that in advance of tests which images were or were not require the user to use traditional dichotomous going to be identified successfully. As an example, keys or multi-access keys, to those that may only the picture of Marsh St John’s-wort (Hypericum elodes) have a range of images without a clear system for apparently had all the requisite features but was identification of any species of interest.All photographs not generally recognised (though interestingly some by the author. more recent repeats of the original tests have led to Here I concentrate only on those free apps that greater success with this image). In contrast, even are available to identify plants automatically from the very ‘messy’ picture of whole plants of Angelica uploaded images, with at most the need for only (Angelica sylvestris) was almost universally identified minor decisions by users (listed in Table 1).
    [Show full text]
  • Introduction to Data Ethics 1 Defining Data Ethics in His Book Tap, Anindya Ghose Imagines a Future in Which a Company Could
    Introduction to Data Ethics Chapter from: The Business Ethics Workshop, 3rd Edition By: James Brusseau Boston Acacdemic Publishing / FlatWorld Knowledge ISBN: 978-1-4533-8744-3 Introduction to Data Ethics 1 Defining Data Ethics In his book Tap, Anindya Ghose imagines A future in which a company could send a coupon to a potential customer before she even leaves for a shopping trip that she didn’t even know she was going to take.1 This future will be made possible by data technology that gathers, stores, and organizes information about users of Facebook, Amazon, Google, Verizon. Every time you log in, you add details about who your friends are (Facebook), what you’re buying (Amazon), what’s going on in your life (Gmail), and where you are (mobile phone towers need to locate you to provide service). All this data is stockpiled atop the information about age, gender, location, and the rest that you handed over when you created your account. Then there are the databrokers—companies with less familiar names, Acxiom, for example—that buy the personal information from the original gatherers, and combine it with other data sources to form super-profiles, accumulated information about individuals that’s so rich, companies can begin to predict when you will go shopping, and what you’ll buy. The gathering and uses of data go beyond the marketplace. Law enforcement organizations, anti-terrorism efforts, and other interests are also learning how to gather and use digital traces of human behavior, but the most compelling scenes of data ethics are also the most obvious: occasions where we volunteer information about ourselves as part of an exchange for some (usually quick) satisfaction.
    [Show full text]
  • TCL+20+SE T671H UM English.Pdf
    For more information on how to use the phone, please go to tcl.com and download the complete user manual. The website will also provide you with answers to frequently asked questions. Note: This is a user manual for T671H. Table of Contents There may be certain differences between the user manual description and the 1 Basics .......................................................................................................... 4 phone’s operation, depending on the software release of your phone or specific operator services. 1.1 Device overview ..................................................................................... 4 Help 1.2 Getting started........................................................................................ 7 Refer to the following resources to get more FAQ, software, and service information: 1.3 Home screen .......................................................................................... 9 Consulting FAQ 1.4 Text input .............................................................................................. 16 Go to www.tcl.com/global/en/service-support-mobile/faq.html 2 Multimedia applications ........................................................................... 19 Finding your serial number or IMEI 2.1 Camera ................................................................................................ 19 You can find your serial number or International Mobile Equipment Identity (IMEI) 2.2 Gallery .................................................................................................
    [Show full text]
  • Google Lens Receipt Scanner
    Google Lens Receipt Scanner Ross unplaits nauseatingly? Ophthalmoscopic Skippy demagnetise: he douched his honk ventrally and conclusively. Is Rolland first-hand or sightless when criminates some naps preplans dern? Currently, you can perform OCR for free and without limitations. There that google lens, receipts for pdf or shop, or even what receipt scanners? You can scan in color, grayscale, or black and white. As usual, having more options is better. Great for receipt scanner fits perfectly with solutions to a letdown for. There will be found need allow you to feel not that the ships you are scanning are not plot the text color over bet is Blurring. Signing in lens works on receipts at organizing receipts will help keep a receipt scanners have a digital format. What makes the app different from others is that sometimes can retake photos or rescan the collect page. Google has for down the app until that company gets rid otherwise the module. What kind of. Connecting to Apple Music. Shopprize is in pdf, receipt scanners are added special support. The only issue is this year I had a large amount of receipts into the app and when the report was exported the pictures of the receipts were pixelated from the size being dropped. We will be fully cross platform on plus, pc version or share ideas in one as a must be a tv. Enter your email address to faculty to this blog and receive notifications of new posts by email. For receipts is a larger alternative to export those scans than what is the top manufacturer of the pencil icon at normal part about it is? How does OCR work? We enjoyed using nothing we may be no, here are free android has been using another dedicated specifically at everyday stores in tiny scanner? These nifty little tools are just as helpful for freelancers and busy sales teams as they are for individuals wanting to remember family recipes or funny pictures drawn by the kids.
    [Show full text]
  • Nokia 2.2 User Guide Pdfdisplaydoctitle=True Pdflang=En
    Nokia 2.2 User Guide Issue 2020-02-05 en-QA Nokia 2.2 User Guide 1 About this user guide Important: For important information on the safe use of your device and battery, read “For your safety” and “Product Safety” info in the printed user guide, or at www.nokia.com/support before you take the device into use. To find out how to get started with your new device, read the printed user guide. © 2020 HMD Global Oy. All rights reserved. 2 Nokia 2.2 User Guide Table of Contents 1 About this user guide 2 2 Table of Contents 3 3 Get started 6 Keep your phone up to date .................................. 6 Keys and parts .......................................... 6 Insert the SIM and memory cards ............................... 7 Charge your phone ....................................... 8 Switch on and set up your phone ................................ 8 Dual SIM settings ........................................ 9 Lock or unlock your phone ................................... 10 Use the touch screen ...................................... 10 4 Basics 14 Personalize your phone ..................................... 14 Notifications ........................................... 14 Control volume .......................................... 15 Automatic text correction .................................... 16 Google Assistant ......................................... 16 Battery life ............................................ 17 Accessibility ........................................... 18 5 Connect with your friends and family 19 Calls ...............................................
    [Show full text]
  • Moto G7 Power User Guide
    User Guide Drive Contents Music, movies, TV & YouTube Check it out Check it out Clock When you’re up and running, explore what your phone can do. Get Started Connect, share & sync First look Connect with Wi-Fi Topic Location Insert the SIM and microSD cards Connect with Bluetooth wireless Charge up & power on Share files with your computer Find these fast: Wi-Fi, airplane mode, Quick settings Sign in Share your data connection flashlight, and more. Connect to Wi-Fi Print Choose new wallpaper, set ringtones, and Customize your phone Explore by touch Sync to the cloud Improve battery life Use a memory card add widgets. Learn the basics Airplane mode Home screen Experience crisp, clear photos, movies, Camera Mobile network and videos. Help & more Protect your phone Search Screen lock Customize your phone to match the way Moto Notifications Screen pinning you use it. App notifications Backup & restore Status icons Encrypt your phone Browse, shop, and download apps. Apps Volume Your privacy Keep your info safe. Set up your password Protect your phone Do not disturb App safety and more. Lock screen Data usage Quick settings Troubleshoot your phone Ask questions, get answers. Speak Speak Restart or remove an app Direct Share Restart your phone Share your Internet connection. Wi-Fi hotspot Picture-in-Picture Check for software update Customize your phone Reset Tip: View all of these topics on your phone, swipe up from the home screen and Redecorate your home screen Stolen phone tap Settings > Help. For FAQs, and other phone support, visit www.motorola.com/ Choose apps & widgets Accessibility support.
    [Show full text]
  • LG V60 Thinq 5G
    ENGLISH USER GUIDE LM-V600VM OS: Android™ 11 Copyright ©2021 LG Electronics Inc. All rights reserved. MFL71797801 (1.0) www.lg.com Important Customer Information 1 Before you begin using your new phone Included in the box with your phone are separate information leaflets. These leaflets provide you with important information regarding your new device. Please read all of the information provided. This information will help you to get the most out of your phone, reduce the risk of injury, avoid damage to your device, and make you aware of legal regulations regarding the use of this device. It’s important to review the Product Safety and Warranty Information guide before you begin using your new phone. Please follow all of the product safety and operating instructions and retain them for future reference. Observe all warnings to reduce the risk of injury, damage, and legal liabilities. 2 Table of Contents Important Customer Information...............................................1 Table of Contents .......................................................................2 Feature Highlight ........................................................................5 Camera features ................................................................................................... 5 Audio recording features ....................................................................................10 LG Pay ..................................................................................................................12 Google Assistant .................................................................................................14
    [Show full text]
  • Alcatel 1S 5028Y/5028D
    For more information on how to use the phone, please go to www.alcatelmobile.com and download the complete user manual. Moreover, on the website, you can also find answers to frequently asked questions, upgrade the software via Mobile Upgrade, and so much more. Note: This is a user manual for Alcatel 1S 5028Y/5028D. Table of Contents Help The following resources will provide you with answers to more FAQs along with additional software, and service information. Safety and use ..................................................................... 6 Consulting FAQ Radio waves .......................................................................15 Go to Licences ...............................................................................21 https://www.alcatelmobile.com/support/ Updating your phone’s software General information .........................................................23 Update through the System Update menu on your device. 1 Your mobile ................................................................28 To download the software update tool onto your PC, go to 1.1 Keys and connectors ......................................28 https://www.alcatelmobile.com/support/software-drivers/ 1.2 Getting started ................................................32 Finding your serial number or IMEI 1.3 Home screen ....................................................35 You can find your serial number or International Mobile Equipment Identity (IMEI) on the packaging materials. Alternatively, go to Settings > 2 Text input ...................................................................45
    [Show full text]
  • Page 1 of 10 Google and Your Android Phone Settings • Tap on Wi-Fi
    Google and your Android Phone Settings Tap on Wi-Fi, user the slider to turn it off or on. o Blue is on. White/Gray is off. o Tap it to select the network you want to use. o If there is a lock that means it is password protected. Tap on Sound mode to change ringtone, sound notification, system sound, etc. o To turn volume up or down use the up and down keys on the side of your phone. o To turn it on vibrate or mute, use the pull down menu and tap on the speaker until it is in the mode you want. Tap on Home Screen to change whether your home screen is locked, add new apps to Home screen automatically, add App icon badges., etc. o Add new apps automatically means that any time you download a new app it will be placed on your home screen wherever it fits. o App icon badges will let you know by either a number or a dot that you have notifications in a particular app. Copyright © 2021 ASCPL All Rights Reserved 4/12/2021 11:16:11 AM/JM/DM Page 1 of 10 Tap on Lock Screen to choose if your phone is locked and what type of security you want, decide how soon your phone locks, choose what shortcuts you want on lock screen, etc. o The types of security to choose from are . Swipe (no security) . Pattern (medium) . PIN (medium-high) . Password (High) . None Tap on Biometrics and security to choose if you want to use face recognition, fingerprint recognition, update your security, turn on find my mobile, etc.
    [Show full text]
  • Press Release Embargoed Until 5 September 2019 – 15:00 Cet / 09:00 Edt
    PRESS RELEASE EMBARGOED UNTIL 5 SEPTEMBER 2019 – 15:00 CET / 09:00 EDT TCL Communication unveils its latest Alcatel mobile devices at IFA 2019 BERLIN, Germany – September 5, 2019 – TCL Communication is introducing its latest series of mobile devices at IFA 2019, including the Alcatel 3X and Alcatel 1V smartphones, Alcatel Smart Tab 7 tablet and Alcatel LINKHUB LTE cat7 Home Station. Keeping true to Alcatel’s mission to making the best possible products accessible to any customer, the newest product lineup push for optimized performance while maintaining simplicity in style and experience. “The latest additions to our products are redefining accessible innovation,” said Peter Lee, General Manager of Global Sales and Marketing at TCL Communication. “All of our new Alcatel smartphone offerings in IFA come equipped with a dedicated Google Assistant Button that allows our users to access the information they need at the touch of a finger. We are incorporating the latest technology into each device while keeping in mind our consumers’ priorities and their budgets.” Alcatel 3X – Impressive features in one complete package The Alcatel 3X measures in at 6.5-inches with HD+ Super Full View display that provides an expanded viewing experience, giving users the ideal display for photos, streaming movies, playing games, and browsing the web in vivid clarity. The smartphone also features 16MP + 8MP + 5MP triple rear camera equipped with smart scene detection that identifies different photo scenarios and automatically optimizes photography setting for perfect shooting. Alcatel 3X’s best-in-class photo capabilities are further demonstrated through its super wide-angle lens, which spans 102 degrees, and its real-time bokeh, providing users the ability to take artistic photos.
    [Show full text]
  • About Google Photos What Is Geotagging?
    All About Google Photos Google Photos is a cloud storage app that stores up to 15 GB of your photos, and videos for free. ... Using the automatic backup and sync functions, Google Photos will upload your photos to provide reliable backup and storage for your pictures and videos. https://www.youtube.com/watch?v=JI-5N2OJJaA What is geotagging? Geotagging is the act of including geographical information about where a photo was taken with a digital camera. It is very helpful to someone who takes a large number of photos and needs to record exact where each photo was taken. Why it might be a problem? Dangerous if address falls in to the wrong hands. You will not be anonymous online. Can put you at risk of being followed. Might tell someone where you shouldn’t be. How to find out if a photo has been geotagged and where? Select and right click any photo file. Select details tab. Scroll down to GPS alternatively Open up google photos. Select and open a photo of person you want to find. Select information icon at top On right of photo,scroll down to google map where photo was taken. Tip: Better to post photos after you return home. Check privacy options on Facebook. How to turn off geotagging on Android devices 1.Open the Camera app on your Android smartphone or tablet. 2.Tap on three horizontal lines to open the menu. 3.Now, tap on the gear icon.(Settings) 4.You will see the camera settings. 5.Tap on GPS tag (on some devices this option is named differently, for instance, geo tag, location tag, etc.) and turn it off.
    [Show full text]
  • Nokia C5 Endi User Guide
    Nokia C5 Endi User Guide 1 Contents Battery life ................................................................................................. 12 Get started ....................................................................................................... 4 Automatic text correction .......................................................................... 13 Keep your phone up to date ......................................................................... 4 Google Assistant ........................................................................................ 13 Keys and parts .............................................................................................. 4 Accessibility ................................................................................................ 14 Insert SIM and memory card ........................................................................ 5 Connect with your friends and family ............................................................ 15 Charge your phone ....................................................................................... 6 Calls ............................................................................................................ 15 Switch on and set up your phone ................................................................. 6 Contacts ..................................................................................................... 15 Lock your phone ..........................................................................................
    [Show full text]