Sometimes the easiest way to kill all background tasks, free up some memory and make the device run faster is Rebooting it. To schedule auto restart on Galaxy S7 and Galaxy S& Edge, do as follows:
1. Open the Settings app on your S7 (Edge)
2. Go to the Backup and Reset settings
3. Under the Device Management, tap the Auto Restart option
4. Make sure it's toggled on, and then use the Time and Days options to schedule the automatic restart on Galaxy S7 and S7 Edge.
Note that, the restart won't happen if the screen of your devices in ON and you are using it.