Presumably you have some vintage applications from third-party makers
that may need upgrade or purchase of later versions to continue their use.
Some may or may not have been carried forward, so to look to their makers
sites to see if they have been, before upgrading to a fully newer level of OS
is a fair idea. From Yosemite you may choose to try El Capitan 10.11.6, and
you could try Sierra 10.12.x ~ because there are support pages with links.
According to what I see in these, your iMac 27-inch Late 2009 model could
use any of them; but your other-party software may need purchase upgrade.
And in any event, you should upgrade RAM with correct grade & type chips.
Enter your model build info & see examples of Mac upgrades:
MY UPGRADES
And if the Hard Drive requires attention (or optical drive) they offer good choices.
OWC DIY Drive Upgrade/Install Kits for Apple iMac Models
(To upgrade more than RAM, study instructions & videos (owc/ifixit) for details.
These may require a skilled Apple trained service provider, and ask if they can
help, if you chose to get parts elsewhere; as some won't use ones you bought.)
About El Capitan 10.11.6:
How to download OS X El Capitan - Apple Support
About Sierra 10.12.x :
How to download macOS Sierra - Apple Support
About High Sierra 10.13.x :
How to download macOS High Sierra - Apple Support
The 27-inch Late 2009 iMac would love for you to upgrade the RAM to as
much as it could use; any Mac OS X or macOS would appreciate more RAM.
See how to add or remove memory chips in iMac:
• Install memory in an iMac - Apple Support
iMac 27-inch (Late 2009) information:
{from MacTracker spec database}
Introduced October 2009
Discontinued July 2010
Model Identifier iMac10,1 (Core 2 Duo) -or- iMac11,1 (Core i5, i7)
Model Number A1312
EMC 2309 (Core 2 Duo) -or- EMC 2374 (Core i5, i7)
Order Number MB952LL/A (3.06 GHz), -or- MB953LL/A (2.66 GHz)
Locate your 'build year model' 27-inch iMac (Late 2009) from among these:
iMac Intel 27" Repair - iFixit
{Note the EMC number as it relates to using guides such as iFixit and
also to detail what you have. An other method would be to use serial
number lookup site for your information only, to see exactly when your
Mac was built, where, and what its configuration had at that time.}
Mac Serial Number info - Lookup your Apple Serial Number (don't post here)
https://www.powerbookmedic.com/identify-mac-serial.php
You could probably DIY that with instructions from Apple or iFixit guides. And
the upgrade RAM from crucial.com or owc/macsales usually are top-notch.
As both of these providers have guaranteed product, OWC tests in actual Mac
per each category; so if you know and order what it needs, they guarantee it.
Maximum Memory 32 GB (Core i5 or Core i7 Actual) 16 GB (Apple)
Memory Slots 4 - 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM
{An older Mac may be needing a replacement hard drive or upgrade to higher
capacity; some are better suited. Others not so much. OWC page does tell of
those which may need an additional 'sensor kit' or special cables to the fans
do not run excessively. This happens when an upgrade or replacement HDD
has no built-in sensor for heat and fan control, while original one did. So there
is a work-around that satisfies the hardware requirement for a working sensor.}
Hopefully you can have more good years ahead with your iMac 27-inch model...
But you may wish to read up on what may be weak points, now there's a history.
