Ubuntu snap deduplication

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Ubuntu Ubuntu snap deduplication

I think the ubuntu snap is great idea.
However the fact that it may contain duplications has two disadvantages.
1) eating more space in the storage.
2) eating more space in the internal memory (RAM), it will load the same library more than once to the memory.

Now the solution for this is simple.
We can have one directory that is called the repository, and it will contain all the libraries and binaries of all the snap packages.
The name of the file in this repositories will be the sha-256 of their content, so only if the two files are identical, they will override each other, but in this case it won't matter because they are the same.
The snap package itself will contain hard link to the libraries and binaries that it is using from the repositories.
So if two different snap package will use exactly the same version of Java/python (etc etc..), it will be stored only once, and will be load only once.
We can also count the number of hard link for every file in central repositories, and if it only one, then it mean that no snap repositories is any more using this binaries, and it can be deleted.

This way all snap package are isolated, but we have no duplication.

Now I say nothing new here, other said it already, I am just repeating what they have said.

What I don't understand is they are not implementing it ?
I mean it sound like an easy problem to solve.

What is holding back the snap developer from doing it?

Are there any obstacle that I am not aware of ?

can any of the snap developers tell me what prevent them from implementing this?

I mean it sound not very easy , but maybe I am not aware of issues.

So I hope someone can explain to me why this is not implemented?
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
SNAP EDR issue.
Hi, Does anybody use Enterprise Data Replicator for Network Attached Storage replication. If you do, Do you get the following message in replication logs. "Replication Source file agent No heart beats from the remote target agent on snap01 for 300 seconds: Assuming connection failure" ...... Red Hat
Red Hat
snap file for other system?
Hi all For AIX we can snap -gc gather the info how abt other systems is solaris and linux? thanks in advance jiajin... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers
UNIX and Linux

Unix (trademarked as the UNIX certification mark) is a very mature family of multitasking, multiuser computer operating systems that evolved from the original AT&T Unix. Unix development starting in the 1970s by legendary Bell Labs programmers Ken Thompson, Dennis Ritchie, and others. Unix was first targeted for the Bell System and AT&T licensed Unix to outside parties. In the 1970s time period, this lead to a variety of for-profit as well as not-for-profit Unix variants.
In the early days, this included the University of California, Berkeley (BSD), Microsoft (Xenix), IBM (AIX), and Sun Microsystems (Solaris). In the early 1990s, AT&T sold their Unix rights to Novell. In 1995 Novell sold their Unix business to the Santa Cruz Operation (SCO). The UNIX trademark was passed to The Open Group, a "neutral" industry consortium. The Open Group promoted the use of the UNIX trademark for certified operating systems that comply with the Single UNIX Specification (SUS). In 2014 Apple's macOS became the Unix version with the largest global install base and macOS remains the largest Unix-user base today.
Linux is a family of open source Unix-like operating systems based on the Linux kernel. The Linux kernel is an operating system kernel first released by Linus Torvalds on 17 September 1991. Linux distributions include the Linux kernel, system software and libraries. Popular free open source Linux distributions include Debian, Fedora, and Ubuntu. Commercial Linux distributions include Red Hat Enterprise Linux and SUSE Linux Enterprise Server. Linux may be freely modified and redistributed. Anyone on the planet may create a Linux distribution for any purpose.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.