SearcharxivSearch

arXiv subjects

Vojin Jovanovic

Publications and source records attributed to Vojin Jovanovic.

12 recordsLinked to original sources

Hydra: Virtualized Multi-Language Runtime for High-Density Serverless Platforms

Serverless is an attractive computing model that offers seamless scalability and elasticity; it takes the infrastructure management burden away from users and enables a pay-as-you-use billing model. As a result, serverless is becoming increasingly popular to support highly elastic and bursty workloads. However, existing platforms are supported by bloated virtualization stacks, which, combined with bursty and irregular invocations, lead to high memory and latency overheads. To reduce the virtualization stack bloat, we propose Hydra, a virtualized multi-language runtime and platform capable of hosting multiple sandboxes running concurrently. To fully leverage Hydra's virtualized runtime, we revisit the existing serverless platform design to make it colocation-aware across owners and functions, and to feature a caching layer of pre-allocated Hydra instances that can be used by different functions written in different languages to reduce cold starts. We also propose a snapshotting mechanism to checkpoint and restore individual sandboxes. By consolidating multiple serverless function invocations through Hydra, we improve the overall function density (ops/GB-sec) by 2.41x on average compared to OpenWhisk runtimes, the state-of-the-art single-language runtimes used in most serverless platforms, and by 1.43x on average compared to Knative runtimes supporting invocation colocation within the same function. When reproducing the Azure Functions trace, our serverless platform operating Hydra instances reduces the overall memory footprint by 21.3-43.9% compared to operating OpenWhisk instances and by 14.5-30% compared to operating Knative instances. Hydra eliminates cold starts thanks to the pool of pre-warmed runtime instances, reducing p99 latency by 45.3-375.5x compared to OpenWhisk and by 1.9-51.4x compared to Knative.

cs.DC

Construction and Applications of Trisections of Low Genus on Del Pezzo Surfaces of Degree One

Consider a rational elliptic surface over a field $k$ with characteristic $0$ given by $\mathcal{E}: y^2 = x^3 + f(t)x + g(t)$, with $f,g\in k[t]$, $\text{deg}(f) \leq 4$ and $\text{deg}(g) \leq 6$. If all the bad fibres are irreducible, such a surface comes from the blow-up of a del Pezzo surface of degree one. We are interested in studying multisections, curves which intersect each fibre a fixed number of times, specifically, trisections (three times). Many configurations of singularities on a trisection lead to a lower genus. Here, we focus on of several them: by specifying conditions on the coefficients $f,g$ of the surface $\mathcal{E}$, and looking at trisections which pass through a given point three times, we obtain a pencil of cubics on such surfaces. Our construction allows us to prove in several cases the Zariski density of the rational points. This is especially interesting since the results in this regard are partial for del Pezzo surfaces of degree one.

math.AG

Comparing Rapid Type Analysis with Points-To Analysis in GraalVM Native Image

Whole-program analysis is an essential technique that enables advanced compiler optimizations. An important example of such a method is points-to analysis used by ahead-of-time (AOT) compilers to discover program elements (classes, methods, fields) used on at least one program path. GraalVM Native Image uses a points-to analysis to optimize Java applications, which is a time-consuming step of the build. We explore how much the analysis time can be improved by replacing the points-to analysis with a rapid type analysis (RTA), which computes reachable elements faster by allowing more imprecision. We propose several extensions of previous approaches to RTA: making it parallel, incremental, and supporting heap snapshotting. We present an extensive experimental evaluation of the effects of using RTA instead of points-to analysis, in which RTA allowed us to reduce the analysis time for Spring Petclinic, a popular demo application of the Spring framework, by 64% and the overall build time by 35% at the cost of increasing the image size due to the imprecision by 15%.

cs.PL

Swinging a playground swing: torque controls for inducing sustained oscillations

Models of a playground swing have been studied since the 1960s. However, in most of them, the position of the swinger is controlled directly. This simplifies the problem but hides the mechanics of torques applied to keep the swing moving in a regular pattern. This article studies these mechanics. Two models of a swing with torques as controls that we consider are identical to popular models of modern robotics: the Acrobot and reaction wheel pendulum. However, the control task of sustaining the swing's regular oscillations by a static feedback control is new and challenging, especially when damping in the joint connecting the swing to the frame is considered. We develop two types of controls to accomplish this task. One works for small damping and is based on linearizing the undamped system by a suitable preliminary feedback control. The other works for large damping. In the steady state, the resulting closed-loop system describes a harmonically driven damped pendulum (a simple system known for its complex behavior), including chaotic motion for some parameter values. To address such complexities, we build free parameters into the controls, then adjust them based on simulations to avoid chaos and achieve regular oscillations that are seen on playgrounds.

physics.class-ph

A Compiler-Compiler for DSL Embedding

In this paper, we present a framework to generate compilers for embedded domain-specific languages (EDSLs). This framework provides facilities to automatically generate the boilerplate code required for building DSL compilers on top of extensible optimizing compilers. We evaluate the practicality of our framework by demonstrating several use-cases successfully built with it.

cs.PL

Compiling Database Application Programs

There is a trend towards increased specialization of data management software for performance reasons. In this paper, we study the automatic specialization and optimization of database application programs -- sequences of queries and updates, augmented with control flow constructs as they appear in database scripts, UDFs, transactional workloads and triggers in languages such as PL/SQL. We show how to build an optimizing compiler for database application programs using generative programming and state-of-the-art compiler technology. We evaluate a hand-optimized low-level implementation of TPC-C, and identify the key optimization techniques that account for its good performance. Our compiler fully automates these optimizations and, applied to this benchmark, outperforms the manually optimized baseline by a factor of two. By selectively disabling some of the optimizations in the compiler, we derive a clinical and precise way of obtaining insight into their individual performance contributions.

cs.DB

Realization of Nonholonomic Constraints and Singular Perturbation Theory for Plane Dumbbells

We study the dynamics of pairs of connected masses in the plane, when nonholonomic (knife-edge) constraints are realized by forces of viscous friction, in particular its relation to constrained dynamics, and its approximation by the method of matching asymptotics of singular perturbation theory when the mass to friction ratio is taken as the small parameter. It turns out that long term behaviors of the frictional and constrained systems may differ dramatically no matter how small the perturbation is, and when this happens is not determined by any transparent feature of the equations of motion. The choice of effective time scales for matching asymptotics is also subtle and non-obvious, and secular terms appearing in them can not be dealt with by the classical methods. Our analysis is based on comparison to analytic solutions, and we present a reduction procedure for plane dumbbells that leads to them in some cases.

physics.class-ph

D'Alembert sums for vibrating bar with viscous ends

We describe a new method for finding analytic solutions to some initial-boundary problems for partial differential equations with constant coefficients. The method is based on expanding the denominator of the Laplace transformed Green's function of the problem into a convergent geometric series. If the denominator is a linear combination of exponents with real powers one obtains a closed form solution as a sum with finite but time dependent number of terms. We call it a d'Alembert sum. This representation is computationally most effective for small evolution times, but it remains valid even when the system of eigenmodes is incomplete and the eigenmode expansion is unavailable. Moreover, it simplifies in such cases. In vibratory problems d'Alembert sums represent superpositions of original and partially reflected traveling waves. They generalize the d'Alembert type formulas for the wave equation, and reduce to them when original waves can undergo only finitely many reflections in the entire course of evolution. The method is applied to vibrations of a bar with dampers at each end and at some internal point. The results are illustrated by computer simulations and comparisons to modal and FEM solutions.

math-ph

The Ritz method with Lagrange multipliers

We develop a general form of the Ritz method for trial functions that do not satisfy the essential boundary conditions. The idea is to treat the latter as variational constraints and remove them using the Lagrange multipliers. In multidimensional problems in addition to the trial functions boundary weight functions also have to be selected to approximate the boundary conditions. We prove convergence of the method and discuss its limitations and implementation issues. In particular, we discuss the required regularity of the variational functional, the completeness of systems of the trial functions, and conditions for consistency of the equations for the trial solutions. The discussion is accompanied by a detailed examination of examples, both analytic and numerical, to illustrate the method.

math.NA

A Fourier series solution for the longitudinal vibrations of a bar with viscous boundary conditions at each end

This paper presents the generalized Fourier series solution for the longitudinal vibrations of a bar subjected to viscous boundary conditions at each end. The model of the system produces a non-selfadjoint eigenvalue problem which does not yield a self-orthogonal set of eigenfunctions with respect to the usual inner product. Therefore, these functions cannot be used to calculate the coefficients of expansion in the Fourier series. Furthermore, the eigenfunctions and eigenvalues are complex-valued. The eigenfunctions can be utilized if the space of the wave operator is extended and a suitable inner product is defined. It is further demonstrated that the series solution contains the solutions for free-free, fixed-damper, fixed-fixed and fixed-free bar cases. The presented procedure is applicable in general to other problems of this type. As an illustration of the theoretical discussion, the results from numerical simulations are presented.

math.AP

Synchronization of Huygens' clocks and the Poincare method

We study two models of connected pendulum clocks synchronizing their oscillations, a phenomenon originally observed by Huygens. The oscillation angles are assumed to be small so that the pendulums are modeled by harmonic oscillators, clock escapements are modeled by the van der Pol terms. The mass ratio of the pendulum bobs to their casings is taken as a small parameter. Analytic conditions for existence and stability of synchronization regimes, and analytic expressions for their stable amplitudes and period corrections are derived using the Poincare theorem on existence of periodic solutions in autonomous quasi-linear systems. The anti-phase regime always exists and is stable under variation of the system parameters. The in-phase regime may exist and be stable, exist and be unstable, or not exist at all depending on parameter values. As the damping in the frame connecting the clocks is increased the in-phase stable amplitude and period are decreasing until the regime first destabilizes and then disappears. The results are most complete for the traditional three degrees of freedom model, where the clock casings and the frame are consolidated into a single mass.

math-ph

Explicit solution for vibrating bar with viscous boundaries and internal damper

We investigate longitudinal vibrations of a bar subjected to viscous boundary conditions at each end, and an internal damper at an arbitrary point along the bar's length. The system is described by four independent parameters and exhibits a variety of behaviors including rigid motion, super stability/instability and zero damping. The solution is obtained by applying the Laplace transform to the equation of motion and computing the Green's function of the transformed problem. This leads to an unconventional eigenvalue-like problem with the spectral variable in the boundary conditions. The eigenmodes of the problem are necessarily complex-valued and are not orthogonal in the usual inner product. Nonetheless, in generic cases we obtain an explicit eigenmode expansion for the response of the bar to initial conditions and external force. For some special values of parameters the system of eigenmodes may become incomplete, or no non-trivial eigenmodes may exist at all. We thoroughly analyze physical and mathematical reasons for this behavior and explicitly identify the corresponding parameter values. In particular, when no eigenmodes exist, we obtain closed form solutions. Theoretical analysis is complemented by numerical simulations, and analytic solutions are compared to computations using finite elements.

math-ph